/**
 * The Churchill Experience sub-pages — About Us (`106:11968`), Property Amenities
 * (`106:13233`), Blog (`106:12160`) and Accessibility (`106:14846`).
 * They share a centered title, a prose column and the closing Amenities strip, so one
 * stylesheet serves all four.
 */

.subpage {
  padding-top: 60px;
}

.subpage__title {
  margin-bottom: 60px;
  font-size: var(--text-h2);
  line-height: 64px;
  font-weight: var(--weight-medium);
  letter-spacing: -1.12px;
  text-align: center;
  color: var(--color-grey-dark);
}

/* ============================================================
   Prose beside a photograph
   ============================================================ */

/* Figma `106:11972`: the copy takes the remaining width against a fixed 585px photo,
   and the content frame keeps 90px below its last block. The spacing sits on the block
   rather than on the page, because what follows varies — the industry pages put a teal
   band straight after it and a rule keyed to the last child never reaches them. */
.subpage__split {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  padding-bottom: var(--space-22);
}

/* A full-width Q&A grid in place of the split keeps the same 90px to whatever follows. */
.subpage__faq {
  padding-bottom: var(--space-22);
}

.subpage__prose {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-5);
  font-size: 18px;
  line-height: 32px;
  color: var(--color-grey-dark);
}

/* Figma sets the phone number and address inside the prose in bold body color rather
   than as tinted links; they stay clickable here but take the design's weight. */
.subpage__prose a {
  font-weight: var(--weight-semibold);
  color: inherit;
}

.subpage__prose a:hover {
  color: var(--color-green-primary);
}

.subpage__figure {
  flex: none;
  width: 585px;
  height: 374px;
  border-radius: var(--radius-control-lg);
  overflow: hidden;
}

.subpage__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   Standard amenities — four columns of grouped lists
   ============================================================ */

/* Figma rules off the lede with a hairline across the full content width. */
.subpage__lede {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-grey-light);
  font-size: var(--text-h3);
  line-height: 30px;
  text-align: center;
  color: var(--color-grey-dark);
}

/* Figma `106:13240`: four 358px columns on a 40px gutter. */
/* Figma `106:13235`: the content frame runs 90px past its last block before the white
   strip, same as .subpage__split. The columns are that last block here. */
.amenity-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-10);
  align-items: start;
  padding-bottom: var(--space-22);
}

.amenity-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

.amenity-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.amenity-group__head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-h3);
  line-height: 24px;
  font-weight: var(--weight-semibold);
  color: var(--color-grey-dark);
}

.amenity-group__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 50px;
  height: 50px;
  color: var(--color-green-primary);
}

.amenity-group__list {
  padding-left: 27px;
  list-style: disc;
  font-size: 18px;
  line-height: 32px;
  color: var(--color-grey-dark);
}

/* ============================================================
   Blog index
   ============================================================ */

/* Figma `106:12164`: a 1092px post column beside a 400px sidebar on a 60px gutter. */
.blog {
  display: grid;
  grid-template-columns: minmax(0, 1092fr) minmax(0, 400fr);
  gap: 60px;
  align-items: start;
  padding-bottom: var(--space-22);
}

.blog__main {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.blog__main > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.post {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-grey-light);
}

.post__title {
  font-size: var(--text-h3);
  line-height: 30px;
  font-weight: var(--weight-semibold);
  color: var(--color-green-primary);
}

.post__title a {
  color: inherit;
}

.post__excerpt {
  font-size: 18px;
  line-height: 32px;
  color: var(--color-grey-dark);
}

/* --- Single post (Websites/FhWebsiteV2/Blog/Index.cshtml) ---
   No detail frame in the Figma file; the ramp follows the list. The body arrives
   from the CMS with fixed pixel sizes on its images — past the column they yield,
   which is what keeps a 390px phone from scrolling sideways (RE-1653). */

.post__body {
  overflow-wrap: break-word;
}

.post__body p {
  margin-top: var(--space-4);
  font-size: var(--text-body);
  line-height: 28px;
  color: var(--color-grey-dark);
}

.post__body a {
  color: var(--color-green-primary);
  text-decoration: underline;
}

.post__body img {
  max-width: 100%;
  height: auto;
}

.post__body iframe {
  max-width: 100%;
}

/* A CMS table keeps its drawn column widths and scrolls inside the post instead
   of pushing the page wide — the last 81px of sideways scroll on phones. */
.post__body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

/* --- Pagination --- */

.pagination {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.page-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0.8px solid var(--color-grey-light);
  border-radius: var(--radius-sm);
  background: transparent;
  font-size: var(--text-sm);
  line-height: 20px;
  font-weight: var(--weight-medium);
  color: var(--color-grey-secondary);
}

/* The design draws these as buttons; they are links here so each page has a real URL. */
a.page-btn:hover {
  text-decoration: none;
}

.page-btn.is-current {
  border-color: var(--color-green-primary);
  background: var(--color-green-primary);
  color: var(--text-inverse);
}

.page-btn.is-disabled {
  opacity: 0.3;
  cursor: default;
}

.page-ellipsis {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  font-size: var(--text-body);
  line-height: 24px;
  color: var(--color-grey-secondary);
}

/* --- Sidebar --- */

/* Figma `106:12180`: a white card on a hairline, 20px padding, with the entries ruled
   off from one another. */
.blog__side {
  padding: 20px;
  border: 1px solid rgba(217, 217, 217, 0.6);
  border-radius: var(--radius-control-lg);
  background: var(--color-white);
  box-shadow: 0 2px 12px rgba(2, 117, 131, 0.05);
}

.blog__side-heading {
  margin-bottom: var(--space-4);
  font-size: var(--text-h3);
  line-height: 30px;
  font-weight: var(--weight-medium);
  color: var(--color-grey-dark);
}

.blog__side-list {
  display: flex;
  flex-direction: column;
}

.blog__side-list li + li {
  border-top: 1px solid var(--color-grey-light);
}

.blog__side-list a {
  display: block;
  padding-block: var(--space-4);
  font-size: var(--text-sm);
  line-height: 22px;
  font-weight: var(--weight-semibold);
  color: var(--color-green-primary);
}

.blog__side-list li:first-child a {
  padding-top: 0;
}

.blog__side-list a:hover {
  text-decoration: underline;
}

/* ============================================================
   Closing Amenities strip
   ============================================================ */

/* Figma `163:18416`: white band, 90px of padding top and bottom, 60px to the tiles.
   The band butts straight against whatever precedes it — the content frame above
   carries the 90px of page-background spacing. */
.explore {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  padding: 90px 80px;
  background: var(--color-white);
}

.explore__title {
  font-size: var(--text-h2);
  line-height: 64px;
  font-weight: var(--weight-medium);
  letter-spacing: -1.12px;
  text-align: center;
  color: var(--color-grey-dark);
}

.explore__tiles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.explore__tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  width: 250px;
  height: 152px;
  padding-block: var(--space-5);
  border-radius: var(--radius-control-lg);
}

a.explore__tile {
  color: inherit;
  transition: background var(--duration-fast) var(--ease-out);
}

a.explore__tile:hover {
  background: rgba(2, 117, 131, 0.06);
  text-decoration: none;
}

.explore__icon {
  display: grid;
  place-items: center;
  width: 85px;
  height: 85px;
  color: var(--color-green-primary);
}

.explore__label {
  font-size: 22px;
  line-height: 22px;
  font-weight: var(--weight-semibold);
  color: var(--color-grey-dark);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1180px) {
  .amenity-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .subpage__figure {
    width: 40%;
    height: auto;
    aspect-ratio: 585 / 374;
  }
}

@media (max-width: 900px) {
  .subpage {
    padding-top: var(--space-22);
  }

  .subpage__title {
    margin-bottom: var(--space-8);
    line-height: normal;
  }

  /* Figma `115:15863`: 30/34, no tracking; the band's own 32px gap carries the
     spacing, so no margin on top of it. */
  .explore__title {
    font-size: 30px;
    line-height: 34px;
    letter-spacing: normal;
  }

  /* The page title runs to the content edge on mobile (`120:16571`, `126:17337`).
     The Amenities heading below it does not — `163:18164` keeps that one centered. */
  .subpage__title {
    text-align: left;
  }

  .subpage__split {
    flex-direction: column;
    gap: var(--space-6);
  }

  .subpage__figure {
    order: -1;
    width: 100%;
  }

  .subpage__prose {
    font-size: var(--text-body);
    line-height: 28px;
  }

  .subpage__lede {
    font-size: var(--text-lead);
    line-height: 28px;
    text-align: left;
  }

  .amenity-columns {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  /* minmax(0) — a bare 1fr keeps an auto minimum, and a long post title pushes the
     column past the viewport. */
  .blog {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-10);
  }

  .blog__main,
  .blog__main > div:first-child {
    gap: var(--space-8);
  }

  /* The mobile frame keeps the 24px teal post titles. */
  .post__title {
    font-size: 24px;
    line-height: 30px;
  }

  .post__excerpt {
    font-size: var(--text-body);
    line-height: 28px;
  }

  /* Compact controls keep < 1 2 3 … 20 > on a single row at 390. */
  .pagination {
    justify-content: center;
    gap: 4px;
  }

  .page-btn,
  .page-ellipsis {
    width: 34px;
    height: 34px;
  }

  .blog__side {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .blog__side-heading {
    font-size: 22px;
    line-height: 30px;
  }

  .amenity-column {
    gap: var(--space-8);
  }

  .amenity-group__head {
    font-size: var(--text-h4);
    line-height: 26px;
  }

  .amenity-group__list {
    font-size: var(--text-body);
    line-height: 28px;
  }

  .explore {
    padding: 48px var(--gutter);
    gap: var(--space-8);
  }

  .explore__tiles {
    width: 100%;
    gap: var(--space-4);
  }

  /* Figma `163:18164` lays the strip two-up and centers the odd tile underneath. Half the
     row less half the gap is what makes exactly two fit, and the wrap plus the centered
     justification already on .explore__tiles does the rest — no rule keyed to a count.
     The flex items are the list rows; the tile itself (an anchor inside, or the row
     when it has no link) then fills whichever row carries it. */
  .explore__tiles > li {
    flex: 0 1 calc(50% - var(--space-4) / 2);
  }

  .explore__tile {
    width: 100%;
    height: auto;
    min-height: 152px;
  }

  /* Figma `113:15643`: Inter SemiBold 18/22 under the 85px icon. */
  .explore__label {
    font-size: 18px;
  }
}
