/* Brampton, Burlington, Hamilton. Layout only. Tokens and the locked form stay in fx.css and home.css. */

.wx-page .fx-grid,
.wx-page .wx-floor__photo,
.wx-page .wx-schedules__row,
.wx-page .wx-pair,
.wx-page .wx-places,
.wx-page .fx-area-card,
.wx-page .fx-lead,
.wx-page .fx-body {
  min-width: 0;
}

.wx-page .fx-area-card {
  grid-template-columns: minmax(0, 1fr);
}

.wx-page .fx-area-card p,
.wx-page .fx-display-s {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.wx-page h1,
.wx-page h2,
.wx-page h3,
.wx-page p,
.wx-page li {
  overflow-wrap: break-word;
}

.wx-page .fx-lead,
.wx-page .fx-body,
.wx-page .wx-schedules__row p {
  max-width: 62ch;
}

.wx-page .fx-acc { margin-top: 48px; }

.wx-page .fx-acc summary {
  align-items: flex-start;
  min-width: 0;
}

.wx-page .fx-acc summary span,
.wx-page .wx-links a {
  min-width: 0;
  overflow-wrap: break-word;
}

.wx-page .fx-acc summary span {
  flex: 1 1 auto;
}

.wx-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin: 36px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--fx-line);
}

/* Brampton: one square, then the heading. Copy stays under the photograph. */

.wx-floor__photo {
  display: grid;
  max-width: min(100%, 640px);
  margin-top: 28px;
}

.wx-floor h1 { margin-top: 28px; }

.wx-floor .fx-lead { margin-top: 22px; }

.wx-schedules {
  background: var(--fx-paper);
  padding: var(--fx-section) 0;
  border-top: 1px solid var(--fx-line);
}

.wx-schedules h2,
.wx-shore h2,
.wx-rooms h2,
.wx-water h2,
.wx-midrise h2 {
  max-width: min(22ch, 100%);
  margin: 0;
}

.wx-shore h2,
.wx-rooms h2 {
  margin-top: 48px;
}

.wx-schedules__list {
  margin: 36px 0 0;
  padding: 0;
  border-top: 1px solid var(--fx-line);
}

.wx-schedules__row {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 22px 0;
  border-bottom: 1px solid var(--fx-line);
}

.wx-schedules__row h3 {
  margin: 0;
  font-family: var(--fx-serif);
  font-weight: 300;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.wx-schedules__row p { margin: 0; }

/* Burlington: both floors in the open, then waterfront versus inland. */

.wx-pair {
  display: grid;
  gap: 28px;
  margin-top: 32px;
  align-items: end;
}

.wx-water,
.wx-midrise {
  background: var(--fx-paper);
  padding: var(--fx-section) 0;
  border-top: 1px solid var(--fx-line);
}

/* Hamilton: place names, one linked square, then the mid-rise note. */

.wx-places {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.wx-places li {
  flex: 0 0 auto;
  margin: 0;
  padding: 0 20px;
  border-right: 1px solid var(--fx-line);
  font-family: var(--fx-serif);
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.wx-places li:first-child { padding-left: 0; }

.wx-places li:last-child {
  border-right: 0;
  padding-right: 0;
}

.wx-rooms .fx-area-card {
  max-width: min(100%, 640px);
  margin-top: 28px;
}

@media (max-width: 799px) {
  .wx-places {
    flex-direction: column;
    align-items: flex-start;
  }

  .wx-places li {
    width: 100%;
    padding: 14px 0;
    border-right: 0;
    border-bottom: 1px solid var(--fx-line);
  }

  .wx-places li:last-child {
    border-bottom: 0;
    padding-right: 0;
  }
}

@media (min-width: 800px) {
  .wx-schedules__row {
    grid-template-columns: minmax(0, 18ch) minmax(0, 1fr);
    column-gap: 36px;
    align-items: start;
  }

  .wx-pair {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    column-gap: 24px;
  }
}

@media (min-width: 1024px) {
  body.wx-page.has-bar { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .wx-page .fx-acc summary::after,
  .wx-page .fx-link__arrow { transition: none; }
}
