/* Toronto alone: lake blue, station stone and three distinct travel clocks. */
/* Match Montreal's proven warm-light kicker on Toronto's dark hero fields. */
body[data-page="ca-toronto"] .ca-hub-hero .ca-kicker,
body[data-page^="ca-toronto-"] .ca-field-hero .ca-kicker {
  color: #f4e4c1;
}

body[data-page="ca-toronto"] .ca-hub,
body[data-page^="ca-toronto-"] .ca-field {
  --ca-family: #177d89;
  --ca-family-dark: #183c4b;
  --ca-family-soft: #e7f1f0;
}

body[data-page="ca-toronto-downtown-waterfront"] .ca-field {
  --ca-family: #247f94;
  --ca-family-dark: #183c4b;
  --ca-family-soft: #e6f1f4;
}

body[data-page="ca-toronto-annex-kensington-museums"] .ca-field {
  --ca-family: #aa6344;
  --ca-family-dark: #493832;
  --ca-family-soft: #f5ede7;
}

body[data-page="ca-toronto-toronto-islands"] .ca-field {
  --ca-family: #547c5d;
  --ca-family-dark: #294337;
  --ca-family-soft: #eaf1e8;
}

body[data-page="ca-toronto"] .ca-toronto-hub-hero {
  border-bottom: .65rem solid #247f94;
  background: #183c4b;
}

body[data-page="ca-toronto"] .ca-toronto-hub-hero::before {
  opacity: .25;
  background:
    repeating-linear-gradient(164deg, transparent 0 2.3rem, rgba(255,255,255,.2) 2.36rem 2.42rem, transparent 2.5rem 3.6rem),
    radial-gradient(ellipse at 77% 72%, rgba(36,127,148,.48), transparent 53%);
}

body[data-page="ca-toronto"] .ca-toronto-hub-hero figure {
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
}

body[data-page="ca-toronto"] .ca-toronto-hub-hero .ca-map-index {
  border-color: rgba(255,255,255,.76);
  background: rgba(24,60,75,.92);
}

body[data-page="ca-toronto"] .ca-toronto-stats article:nth-child(1),
body[data-page="ca-toronto"] .ca-toronto-routes .ca-hub-card:nth-child(1) { border-top: .34rem solid #247f94; }
body[data-page="ca-toronto"] .ca-toronto-stats article:nth-child(2),
body[data-page="ca-toronto"] .ca-toronto-routes .ca-hub-card:nth-child(2) { border-top: .34rem solid #aa6344; }
body[data-page="ca-toronto"] .ca-toronto-stats article:nth-child(3),
body[data-page="ca-toronto"] .ca-toronto-routes .ca-hub-card:nth-child(3) { border-top: .34rem solid #547c5d; }

body[data-page="ca-toronto"] .ca-toronto-routes .ca-hub-card {
  min-height: 100%;
  grid-template-rows: 15rem 1fr;
  transform: none;
  clip-path: none;
}

body[data-page="ca-toronto"] .ca-toronto-routes .ca-hub-card > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

body[data-page="ca-toronto"] .ca-toronto-routes .ca-hub-card strong { margin-top: auto; padding-top: 1rem; }
body[data-page="ca-toronto"] .ca-toronto-plan .ca-city-plan article:nth-child(1) { border-top-color: #247f94; }
body[data-page="ca-toronto"] .ca-toronto-plan .ca-city-plan article:nth-child(2) { border-top-color: #aa6344; }
body[data-page="ca-toronto"] .ca-toronto-plan .ca-city-plan article:nth-child(3) { border-top-color: #547c5d; }

body[data-page="ca-toronto"] .ca-toronto-weather {
  margin: 1rem 0 2.5rem;
  padding: 1.25rem clamp(1rem, 3vw, 2rem);
  border-left: .32rem solid #247f94;
  background: #e7f1f0;
  color: #183c4b;
}

body[data-page="ca-toronto"] .ca-toronto-weather strong { display: block; margin-bottom: .3rem; }
body[data-page="ca-toronto"] .ca-toronto-weather p { margin: 0; max-width: 78ch; }
body[data-page="ca-toronto"] .ca-toronto-faq { padding-top: .5rem; }

body[data-page^="ca-toronto-"] .ca-toronto-brief {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 1.25rem;
  align-items: start;
  margin: 1rem 0 2rem;
  padding: clamp(1rem, 3vw, 1.6rem);
  border: 1px solid rgba(24,60,75,.17);
  border-radius: 1rem;
  background: var(--ca-family-soft);
}

body[data-page^="ca-toronto-"] .ca-toronto-brief-intro h2 { margin: .4rem 0 .75rem; }
body[data-page^="ca-toronto-"] .ca-toronto-brief-intro p { margin: 0; }
body[data-page^="ca-toronto-"] .ca-toronto-quickfacts { display: grid; gap: .8rem; }
body[data-page^="ca-toronto-"] .ca-toronto-quickfacts article { padding: .8rem 1rem; border-left: .22rem solid var(--ca-family); background: #fff; }
body[data-page^="ca-toronto-"] .ca-toronto-quickfacts small { color: var(--ca-family-dark); font-weight: 800; }
body[data-page^="ca-toronto-"] .ca-toronto-quickfacts p { margin: .3rem 0 0; }
body[data-page^="ca-toronto-"] .ca-toronto-route-heading { border-top-color: var(--ca-family); }
body[data-page^="ca-toronto-"] .ca-toronto-fallback .ca-fallback-card { border-left-color: var(--ca-family); }
body[data-page^="ca-toronto-"] .ca-toronto-verify { padding: 1rem 1.25rem; border-left: .25rem solid var(--ca-family); background: var(--ca-family-soft); }
body[data-page^="ca-toronto-"] .ca-toronto-verify > p { max-width: 84ch; }

body[data-page^="ca-toronto-"] .ca-toronto-instrument {
  display: grid;
  gap: .7rem;
  align-content: space-between;
  min-height: 12rem;
  padding: 1.2rem;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: .8rem 2.6rem .8rem .8rem;
  background: linear-gradient(145deg, var(--ca-family-dark), color-mix(in srgb, var(--ca-family-dark) 70%, var(--ca-family)));
  box-shadow: 0 .8rem 2rem rgba(0,0,0,.17);
  color: #fff;
}

body[data-page^="ca-toronto-"] .ca-toronto-instrument span,
body[data-page^="ca-toronto-"] .ca-toronto-instrument small {
  font: 800 .62rem/1.35 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .09em;
  text-transform: uppercase;
}

body[data-page^="ca-toronto-"] .ca-toronto-instrument strong { font: 900 clamp(2.4rem, 4vw, 4rem)/.85 Arial, sans-serif; letter-spacing: -.06em; }
body[data-page^="ca-toronto-"] .ca-route-step { border-top: .25rem solid var(--ca-family); }
body[data-page^="ca-toronto-"] .ca-check-grid article { border-top: .22rem solid var(--ca-family); }

@media (max-width: 720px) {
  body[data-page="ca-toronto"] .ca-city-plan { grid-template-columns: 1fr; }
  body[data-page="ca-toronto"] .ca-toronto-hub-hero { border-bottom-width: .4rem; }
  body[data-page="ca-toronto"] .ca-toronto-hub-hero figure { clip-path: none; }
  body[data-page^="ca-toronto-"] .ca-toronto-brief { grid-template-columns: 1fr; }
  body[data-page^="ca-toronto-"] .ca-toronto-instrument { min-height: 9rem; }
}

/* Narrow-screen width guard for Toronto. A vertical scrollbar can leave a 305px layout viewport on a 320px device. */
body[data-page="ca-toronto"],
body[data-page^="ca-toronto-"] {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
}

body[data-page="ca-toronto"] .page-content,
body[data-page^="ca-toronto-"] .page-content,
body[data-page="ca-toronto"] .ca-hub-hero,
body[data-page^="ca-toronto-"] .ca-field-hero,
body[data-page^="ca-toronto-"] .ca-field-copy,
body[data-page^="ca-toronto-"] .ca-route-grid,
body[data-page^="ca-toronto-"] .ca-check-grid,
body[data-page^="ca-toronto-"] .ca-related-grid,
body[data-page="ca-toronto"] .ca-hub-grid,
body[data-page="ca-toronto"] .ca-city-plan,
body[data-page="ca-toronto"] .ca-hub-stats,
body[data-page^="ca-toronto-"] .ca-toronto-brief,
body[data-page^="ca-toronto-"] .ca-toronto-quickfacts,
body[data-page^="ca-toronto-"] .ca-breadcrumb,
body[data-page="ca-toronto"] figure,
body[data-page^="ca-toronto-"] figure,
body[data-page="ca-toronto"] .ca-hub-card,
body[data-page^="ca-toronto-"] .ca-related-card {
  min-width: 0;
  max-width: 100%;
}

body[data-page="ca-toronto"] img,
body[data-page^="ca-toronto-"] img {
  max-width: 100%;
}

@media (max-width: 360px) {
  body[data-page="ca-toronto"] .ca-hub-copy,
  body[data-page^="ca-toronto-"] .ca-field-copy {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}
