/* ---------- Facility pages (hero from history.css) ---------- */

.page-facility .h-hero::after { background: var(--c-white); }
.page-facility .h-hero__content { padding-bottom: calc(var(--h-curve) + 1.5rem); }
.page-facility .h-hero + .section { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.page-facility .h-hero__title { white-space: normal; }
.page-facility .h-hero__title { font-size: clamp(2.4rem, 1.2rem + 3.6vw, 4rem); }

/* Photographs and content in one band: photos on the left, a sticky maroon content card on the right (photos come first on small screens) */
.fc-feature { background: var(--c-white); }
.fc-feature__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4.5fr); gap: clamp(1.5rem, 3.5vw, 3rem); align-items: start; }

.fc-photo { margin: 0; overflow: hidden; border-radius: 15px; box-shadow: 0 30px 50px -36px rgb(var(--rgb-maroon-950) / 0.55); }
.fc-photo img { display: block; width: 100%; height: auto; }

.fc-feature .fc-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.8rem, 1.6vw, 1.25rem); margin: 0; padding: 0; list-style: none; }
.fc-gallery__item { overflow: hidden; background: var(--c-soft, #f6f2eb); border-radius: 15px; }
.fc-gallery__item img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.6s var(--ease); }
.fc-gallery__item:hover img { transform: scale(1.04); }
.fc-gallery__item h2 { padding: 0.9rem 1.1rem 1.05rem; font-family: var(--f-serif); font-size-adjust: 0.4; font-size: clamp(1.2rem, 1rem + 0.7vw, 1.55rem); font-weight: 600; color: var(--c-maroon-900, var(--c-maroon-950)); border-top: 3px solid var(--c-gold-500); }

.fc-card {
    position: sticky; top: 7rem;
    display: grid; gap: 1.1rem; justify-items: start;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    color: rgb(255 255 255 / 0.85);
    background: radial-gradient(22rem 14rem at 100% 0%, rgb(var(--rgb-gold-500) / 0.2), transparent 62%), linear-gradient(160deg, var(--c-maroon-800) 0%, var(--c-maroon-950) 100%);
    border-top: 4px solid var(--c-gold-500);
    border-radius: 15px;
    box-shadow: 0 30px 50px -34px rgb(var(--rgb-maroon-950) / 0.7);
}
.fc-card .eyebrow::after { content: ""; width: 1.75rem; height: 1px; background: currentColor; }
.fc-card__title { font-family: var(--f-serif); font-size-adjust: 0.4; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: 600; line-height: 1.05; color: var(--c-white); }
.fc-card__lead { font-family: var(--f-serif); font-size-adjust: 0.4; font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); font-weight: 500; line-height: 1.5; color: var(--c-gold-300); }
.fc-card__more { font-size: 1rem; line-height: 1.75; color: rgb(255 255 255 / 0.82); }

.fc-facts { display: grid; gap: 0.75rem; width: 100%; margin: 0.5rem 0 0; }
.fc-facts > div { display: grid; gap: 0.35rem; padding: 1.1rem 1.25rem; background: rgb(255 255 255 / 0.07); border: 1px solid rgb(var(--rgb-gold-500) / 0.35); border-radius: 12px; }
.fc-facts dd { margin: 0; font-family: var(--f-serif); font-size-adjust: 0.4; font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem); font-weight: 600; line-height: 0.95; color: var(--c-gold-300); }
.fc-facts dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; line-height: 1.4; text-transform: uppercase; color: var(--c-white); }

/* Other facilities */
.fc-more { background: var(--c-white); }
.fc-more__head { display: grid; justify-items: center; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3rem); text-align: center; }
.fc-more .eyebrow::after { content: ""; width: 1.75rem; height: 1px; background: currentColor; }
.fc-more .h2 { color: var(--c-maroon-900, var(--c-maroon-950)); }
.fc-more .fc-more__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.fc-more__list a { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; min-height: 4.25rem; padding: 0.9rem 1.2rem; font-family: var(--f-serif); font-size-adjust: 0.4; font-size: 1.25rem; font-weight: 600; line-height: 1.15; color: var(--c-maroon-900, var(--c-maroon-950)); background: var(--c-soft, #f6f2eb); border-left: 3px solid var(--c-gold-500); border-radius: 12px; transition: background-color 0.25s ease, transform 0.25s var(--ease); }
.fc-more__list a:hover { background: var(--c-gold-500); transform: translateY(-3px); }
.fc-more__list .icon { flex: none; width: 1.1rem; height: 1.1rem; }

@media (max-width: 1060px) { .fc-more .fc-more__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) {
    .fc-feature__grid { grid-template-columns: 1fr; }
    .fc-card { position: static; }
}
@media (max-width: 520px) {
    .fc-feature .fc-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fc-more .fc-more__list { grid-template-columns: 1fr; }
}

/* Card parts */
.fc-card__head, .fc-card__text { display: grid; gap: 1.1rem; justify-items: start; min-width: 0; }
.fc-card__text { width: 100%; }

/* Longer descriptions: photo across the top, then a wide two-column card (title on the left, text and facts on the right) */
.fc-feature--long .fc-feature__grid { grid-template-columns: 1fr; }
.fc-feature--long .fc-photo img { max-height: 34rem; object-fit: cover; }
.fc-feature--long .fc-card { position: static; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.fc-feature--long .fc-card__head { padding-right: clamp(1rem, 3vw, 2.5rem); border-right: 1px solid rgb(var(--rgb-gold-500) / 0.35); align-self: stretch; }
.fc-feature--long .fc-card__lead { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.7rem); }
.fc-feature--long .fc-facts { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
@media (max-width: 860px) {
    .fc-feature--long .fc-card { grid-template-columns: 1fr; }
    .fc-feature--long .fc-card__head { padding-right: 0; border-right: 0; }
}
@media (max-width: 800px) { .fc-feature .fc-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .fc-feature .fc-gallery { grid-template-columns: 1fr; } }
