/* Page CSS: only what the Taste kit has no class for. Every value follows DESIGN.md.
   The logo, the season switch, the day line, photo frames and the summer tokens. */

/* ---- summer: the same palette, the mist ground warmed a step towards leaf green ---- */
html[data-season="summer"] { --p-bg: #f0f4ec; --p-surface: #e0ead9; }

/* ---- what one season shows and the other hides ---- */
html[data-season="winter"] .only-summer,
html[data-season="summer"] .only-winter { display: none; }

/* ---- the logo: the mark over nothing, the word beside it ---- */
.logo { display: inline-flex; align-items: center; gap: var(--s-3); color: var(--ink); text-decoration: none; }
.logo__mark { width: 58px; height: 29px; flex: none; overflow: visible; }
.logo__word { font-family: var(--font-text); font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; line-height: 1; }

/* ---- the season switch: two words, a thin rule round them, the chosen one filled ---- */
.season { display: inline-flex; flex: none; flex-direction: row; align-self: end; width: max-content; white-space: nowrap; border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 2px; }
.season__opt { appearance: none; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 500;
  height: 36px; padding-inline: var(--s-4); border-radius: calc(var(--r-sm) - 2px); cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.season__opt:hover { color: var(--ink); }
.season__opt[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.season__opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.season--lg .season__opt { height: 52px; padding-inline: var(--s-6); font-size: var(--t-body); }
@media (max-width: 1023px) {
  .nav.is-open .nav__actions .season { order: 3; align-self: center; }
  .nav.is-open .nav__actions .season__opt { height: 44px; }
  .season--lg .season__opt { height: 48px; }
}

/* "Showing now" beside a season's name */
.now { display: block; margin-top: var(--s-2); font-family: var(--font-text); font-size: var(--t-small); font-weight: 500; letter-spacing: 0; color: var(--accent); }
  letter-spacing: 0; color: var(--accent); vertical-align: 0.2em; }
.now::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: var(--s-2); border-radius: 999px; background: currentColor; vertical-align: 0.08em; }
.ground-inverse .now { color: var(--ink); }

/* ---- the day line: one stroke, level from Mississauga, falling at the Falls, on along the gorge ---- */
.dayline { margin-top: clamp(var(--s-6), 5vw, var(--s-8)); }
.dayline__art { display: block; width: 100%; height: auto; overflow: visible; }
.dayline__art * { vector-effect: non-scaling-stroke; }
.dayline__line { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.dayline__water { fill: none; stroke: var(--ink); stroke-width: 1; stroke-linecap: round; opacity: 0.55; }
.dayline__end { fill: var(--accent); }
.dayline__stop { fill: none; stroke: var(--ink); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.dayline__stop > circle:first-child { fill: var(--bg); stroke-width: 1.5; }
.dayline__stops { list-style: none; margin: var(--s-4) 0 0; padding: 0; position: relative; height: 4.2em; font-size: var(--t-small); color: var(--muted); line-height: 1.35; }
.dayline__stops li { position: absolute; top: 0; left: calc(var(--x) * 100%); transform: translateX(-50%); width: 13%; text-align: center; }
.dayline__stops li.is-start { transform: none; text-align: left; }
.dayline__stops li.is-end { left: auto; right: 0; transform: none; text-align: right; }
.dayline__stops b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 18px; letter-spacing: var(--display-tracking); color: var(--ink); }
@media (max-width: 899px) {
  /* a phone reads the day downwards: the same line, turned on its side as a rule with a dot per stop */
  .dayline__art { display: none; }
  .dayline__stops { height: auto; margin-top: 0; border-left: 1.5px solid var(--ink); padding-left: var(--s-5); }
  .dayline__stops li, .dayline__stops li.is-start, .dayline__stops li.is-end { position: relative; left: auto; right: auto; transform: none; width: auto; text-align: left; padding-block: var(--s-2); }
  .dayline__stops li::before { content: ""; position: absolute; left: calc(-1 * var(--s-5) - 5px); top: calc(var(--s-2) + 0.45em); width: 8px; height: 8px; border-radius: 999px;
    background: var(--bg); border: 1.5px solid var(--ink); }
  .dayline__stops li:first-child::before, .dayline__stops li:last-child::before { background: var(--accent); border-color: var(--accent); }
  .dayline__stops b { display: inline; margin-right: var(--s-2); }
}

/* ---- photographs beside a list: square corners off the frame, a set ratio, cover ---- */
.shot { margin: 0; aspect-ratio: 4 / 5; max-height: 600px; width: 100%; overflow: hidden; border-radius: var(--r-sm); background: var(--p-surface); }
.shot--43 { aspect-ratio: 4 / 3; }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.shot:hover img { transform: scale(1.025); }
@media (max-width: 1023px) { .shot, .shot--43 { aspect-ratio: 3 / 2; } }
@media (prefers-reduced-motion: reduce) { .shot img { transition: none; } .shot:hover img { transform: none; } }

/* ---- small text under a price list, the booking facts, the form total ---- */
.note { margin-top: var(--s-5); font-size: var(--t-small); color: var(--muted); max-width: 52ch; }
.form__total, .form__quote { grid-column: 1 / -1; }
.form__quote { font-size: var(--t-small); color: var(--muted); }
.form__total strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.shot--book { aspect-ratio: 6 / 5; max-height: 520px; }
@media (max-width: 1023px) { .shot--book { aspect-ratio: 3 / 2; } }
.section-head--split > .season { display: inline-flex; max-width: none; gap: 0; }

/* ---- the browser's own surfaces, in the palette ---- */
::selection { background: var(--p-ink); color: var(--p-bg); }
.ground-inverse ::selection { background: var(--p-bg); color: var(--p-ink); }
:root { accent-color: var(--p-accent); caret-color: var(--p-accent); scrollbar-color: var(--p-muted) var(--p-bg); }

/* ---- screens: one or two per section at every width (layout-v4, section 2) ---- */
/* a short desktop screen (1024x768): the season pictures give up height */
@media (min-width: 1024px) and (max-height: 820px) { #seasons .panel { --p-h: 176px; } }
/* tablet: the day takes two screens; the three splits stay side by side */
@media (min-width: 640px) and (max-width: 1023px) {
  #day { --h: 2; }
  .keep2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 24px; align-items: start; }
  .keep2 > * { grid-column: auto; }
  .keep2 .shot, .keep2 .shot--43 { aspect-ratio: auto; height: min(68svh, 760px); max-height: none; }
}
/* phone: the day and the seasons take two screens; a split is its words on one screen, its picture on the next */
@media (max-width: 639px) {
  #day, #seasons { --hm: 2; }
  #seasons .panel { --p-h: 400px; }
  .g2m > .wrap > .shot { aspect-ratio: auto; height: 100%; max-height: none; }
}
/* the day at rest (stacked, under 1024): two whole screens */
@media (max-width: 1023px) { main > #day[data-moment]:not(.is-live) { min-height: 200vh; min-height: 200svh; } }
@media (max-width: 639px) {
  main > #day[data-moment]:not(.is-live) { min-height: 200lvh; }
  #book .form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--s-3); }
  #book .form .field:not(.field--full) { grid-column: auto; }
  #book .form > :not(.field) { grid-column: 1 / -1; }
}

/* season cards: their titles in the display face, like every other heading beside a picture */
#seasons .card h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--t-h3); letter-spacing: var(--display-tracking); }
@media (min-width: 640px) and (max-width: 1023px) {
  #seasons .panel { --p-h: 38svh; }
  #day:not(.is-live) .mo-pc__visual > img { width: 100%; aspect-ratio: 16 / 9; max-height: 40svh; object-fit: cover; }
}
@media (max-width: 639px) { .season--lg { width: 100%; } .season--lg .season__opt { flex: 1; } }

/* the hero's words: a box narrower than the picture, so the Falls show beside and above it */
@media (min-width: 640px) and (max-width: 1023px) { .hero--film .hero__over > :first-child { max-width: 520px; justify-self: start; } }
@media (max-width: 639px) { .hero--film .hero__over > :first-child { max-width: 78vw; justify-self: start; } }
/* the day at rest on a tablet: the four stops share the two screens, each picture as tall as its stop */
@media (min-width: 640px) and (max-width: 1023px) {
  #day:not(.is-live) .mo-pc__step { min-height: 36svh; }
  #day:not(.is-live) .mo-pc__visual > img { width: 100%; height: 34svh; max-height: none; aspect-ratio: auto; object-fit: cover; }
}
/* the day line on a tablet: the list reads larger, so the screen is filled */
@media (min-width: 640px) and (max-width: 899px) {
  .dayline__stops li, .dayline__stops li.is-start, .dayline__stops li.is-end { padding-block: var(--s-4); }
  .dayline__stops b { font-size: 22px; }
  .dayline__stops li::before { top: calc(var(--s-4) + 0.55em); }
}

/* the booking form under its heading, in the text column */
#book .form { margin-top: var(--s-6); }
@media (max-width: 639px) { #book .form { margin-top: var(--s-5); row-gap: var(--s-3); } }
.shot picture { display: contents; }
@media (min-width: 1024px) and (max-height: 820px) { #book .form { margin-top: var(--s-5); row-gap: var(--s-3); } }
@media (min-width: 1024px) and (max-height: 820px) { .rows > li { padding-block: var(--s-3); } }
#seasons .card p { color: var(--p-inv-muted); }

/* ---- fact rows: a name, and a fact that may wrap (DESIGN.md, Rows) ---- */
.rows--facts > li { grid-template-columns: minmax(7ch, 30%) minmax(0, 1fr); align-items: baseline; }
.rows--facts .rows__name { font-weight: 400; color: var(--muted); }
.rows__fact { grid-column: 2; grid-row: 1; }
/* ---- body paragraphs and a link out of a split (DESIGN.md, Inner pages) ---- */
.prose { font-size: 18px; line-height: 1.55; max-width: 56ch; }
.prose + .prose { margin-top: var(--s-4); }
.prose + .rows, .rows + .rows, .prose + .rows--facts { margin-top: var(--s-6); }
.more { margin-top: var(--s-5); }
/* ---- questions (DESIGN.md, Questions): the kit's open list, in columns from a tablet up ---- */
.faq--two .faq__item h3 { font-size: calc(var(--t-h3) * 0.8); }
.faq--two .faq__item p { font-size: 16px; line-height: 1.55; }
@media (min-width: 640px) {
  .faq--two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .faq--two > .faq__item:nth-child(-n+2) { padding-top: 0; }
}
@media (min-width: 640px) and (max-width: 1023px) { .faq--two > .faq__item, .faq--two > .faq__item:nth-child(-n+2) { padding-block: var(--s-3); } }
/* a short desktop screen: four columns, two rows */
@media (min-width: 1024px) and (max-height: 820px) {
  .faq--two { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .faq--two > .faq__item, .faq--two > .faq__item:nth-child(-n+2) { padding-block: var(--s-3); gap: var(--s-1); }
  #faq .section-head { margin-bottom: var(--s-5); }
  .faq--two .faq__item p { font-size: 15px; line-height: 1.5; }
}
@media (max-width: 639px) { #faq { --hm: 2; } }
/* ---- the film's pause control: a small disc on the frame, top right ---- */
.film-pause { position: absolute; z-index: 3; top: var(--s-4); right: var(--s-4); width: 44px; height: 44px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--p-ink); color: var(--p-bg); display: grid; place-items: center; }
.film-pause::before { content: ""; width: 12px; height: 14px; border-inline: 4px solid currentColor; box-sizing: border-box; }
.film-pause[data-state="paused"]::before { width: 0; height: 0; border-block: 8px solid transparent; border-inline: 0; border-left: 13px solid currentColor; margin-left: 3px; }
.film-pause:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* ---- a removed or missing page: one screen ---- */
.notice h1 { max-width: 18ch; }
.notice .t-lead { margin-top: var(--s-5); max-width: 44ch; }
@media (max-width: 639px) { .rows--facts > li { padding-block: var(--s-3); } }

/* ---- add-ons: the rows under the two attraction cards, and the tick list in the booking form ---- */
.bcloser__more { margin: var(--s-7, 56px) 0 var(--s-3); font-size: clamp(22px, 2vw, 28px); }
.addons .rows__name { display: grid; gap: 4px; }
.addons .rows__name strong { font-weight: 600; }
.addons__desc { font-size: var(--t-small); color: var(--muted); max-width: 60ch; }
.addons .rows__value { white-space: nowrap; }
.addons small { font-size: var(--t-small); color: var(--muted); }
@media (max-width: 639px) { .addons li { display: grid; gap: 6px; } .addons .rows__value { white-space: normal; } }
.field__hint { font-size: var(--t-small); color: var(--muted); font-weight: 400; margin: 0; }
.form__addons { grid-column: 1 / -1; border: 0; padding: 0; margin: 0; display: grid; gap: 0; min-width: 0; }
.form__addons legend { padding: 0; margin-bottom: var(--s-2); font-size: var(--t-small); font-weight: 500; }
.addon { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: var(--s-3); row-gap: 2px; min-height: 48px; padding: 8px 0; border-top: 1px solid var(--line, rgba(15,50,56,.16)); font-size: var(--t-small); cursor: pointer; }
.addon:last-child { border-bottom: 1px solid var(--line, rgba(15,50,56,.16)); }
.addon input { width: 20px; height: 20px; accent-color: var(--p-ink, #0f3238); margin: 0; }
.addon__price { color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.addon__off { grid-column: 2 / -1; color: var(--muted); }
.addon:has(input:disabled) { cursor: default; }
.addon:has(input:disabled) .addon__name { color: var(--muted); }
@media (max-width: 639px) { .addon { grid-template-columns: auto minmax(0, 1fr); } .addon__price { grid-column: 2; text-align: left; } }
.form .field { align-content: start; }

/* ---- inner pages: sections take the height of their content, as on the homepage (DESIGN.md, owner change) ---- */
main > section:not(.hero):not(.bhero) { min-height: 0 !important; height: auto !important; padding-block: clamp(56px, 7vw, 104px); }
.booking-embed { grid-column: 1 / -1; margin-top: var(--s-5); min-height: 480px; }
.booking-embed iframe { width: 100%; border: 0; display: block; }
/* the real booking form takes the full width; the picture beside the stand-in is not shown */
#book:has(.booking-embed) .shot { display: none !important; }
#book:has(.booking-embed) > .wrap > .span-6 { grid-column: 1 / -1 !important; max-width: 1040px; }
#book:has(.booking-embed) > .wrap { display: block !important; }
.rows__fact, .rows__fact a { overflow-wrap: anywhere; min-width: 0; }
