/* sg-heading.css: owner 11/12 heading spec (H1 / H2 sizes, letter-spacing, Kalam sizes, heading block spacing, dotted dividers).
   Loaded last on 11 pages; every rule is scoped to the page root class. Bands: P <=479, M 480-767, T 768-1279, D >=1280.
   owner 11/14「改法甲」: H2 is 30px (Kalam 32px) from 768 up — T no longer uses 40/43, so the title does not grow at 1279 and shrink again
   at 767 when the window is dragged narrower. T spacing re-measured for the 30px title (hcheck-t30.mjs: 40 above / 32 under). */

/* ============================== coaches (.cr) ============================== */
.cr .cr-hero__title { letter-spacing: .08em; }
.cr .cr-dots { margin-top: 44px; }
.cr .cr-dots + .cr-sec { padding-top: 37px; }
.cr .cr-head { margin-bottom: 31px; }
@media (min-width: 480px) and (max-width: 767px) {
  .cr .cr-dots + .cr-sec { padding-top: 36px; }
}
@media (min-width: 768px) {
  .cr { --cr-h2: 30px; --cr-kalam: 32px; }
  .cr .cr-dots { margin-top: 40px; }
  .cr .cr-dots + .cr-sec { padding-top: 33px; }
  .cr .cr-head { margin-bottom: 24.2px; }
}
@media (min-width: 1280px) {
  .cr { --cr-h2: 30px; --cr-kalam: 32px; }
  .cr .cr-dots + .cr-sec { padding-top: 33px; }
  .cr .cr-head { margin-bottom: 24.2px; }
}
/* en/instructors: the H1 is the English word "Instructors", whose letters start lower in their line than Chinese ones: the text
   column moves up so navbar bottom -> H1 letters is 45 / 23 / 39.2 / 37.7 as on /reserve (the same as en/contact) */
@media (max-width: 767px) {
  html[lang="en"] .cr .cr-hero__copy { margin-top: -3px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  html[lang="en"] .cr .cr-hero__copy { margin-top: -4px; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  html[lang="en"] .cr .cr-hero__copy { margin-top: 12.2px; }
}
@media (min-width: 1280px) {
  html[lang="en"] .cr .cr-hero__copy { margin-top: 9.7px; }
}
/* en/instructors: its Kalam line under the H1 ("Faces behind the goggles") reaches lower, so the ribbon starts 6px lower: Kalam letters ->
   ribbon band 17.2 / 21.3 as on the other pages */
html[lang="en"] .cr .cr-ribbon { margin-top: 16px; }
@media (min-width: 768px) {
  html[lang="en"] .cr .cr-ribbon { margin-top: 20px; }
}
/* en/instructors section title: Latin letters sit lower in their line (the Kalam line "Tips before you pick!" has descenders) */
html[lang="en"] .cr .cr-dots + .cr-sec { padding-top: 36px; }
html[lang="en"] .cr .cr-head { margin-bottom: 36px; }
@media (min-width: 480px) and (max-width: 767px) {
  html[lang="en"] .cr .cr-dots + .cr-sec { padding-top: 35px; }
}
@media (min-width: 768px) {
  html[lang="en"] .cr .cr-dots + .cr-sec { padding-top: 32px; }
  html[lang="en"] .cr .cr-head { margin-bottom: 29.2px; }
}
@media (min-width: 1280px) {
  html[lang="en"] .cr .cr-dots + .cr-sec { padding-top: 32px; }
  html[lang="en"] .cr .cr-head { margin-bottom: 29.2px; }
}
/* /coaches phones 400-479, Chinese page: once the ribbon fits one line (from about 428), the lead's first line runs under the small cyan
   dot cr-fl--5 at its right end (it did so on production before 11/12 too); the dot is left out on these widths (owner 11/13「照這樣修」) */
@media (min-width: 400px) and (max-width: 479px) {
  html[lang="zh-TW"] .cr .cr-fl--5 { display: none; }
}

/* ============================== reserve, en/reserve (.rs) ============================== */
.rs .rs-hero__title { letter-spacing: .08em; }
.rs .rs-dots { margin-top: 44px; }
.rs #choose { padding-top: 34px; }
.rs #fees, .rs #process, .rs #notice { padding-top: 37px; }
.rs .rs-head:has(.rs6-sub--merged) { margin-bottom: 30.8px; }   /* en/reserve fees: one more English line in the block */
@media (min-width: 480px) and (max-width: 767px) {
  .rs { --rs-h2: 30px; }
  .rs .rs-hero__title { font-size: 36px; }
  .rs #choose { padding-top: 32.5px; }
  .rs #fees, .rs #process, .rs #notice { padding-top: 36px; }
}
/* owner 11/14: with five languages the last row of the two-column features (600-767) ends in text, not an icon: 想學什麼 measured
   47.5 (en 45.5) above -> 44 */
@media (min-width: 600px) and (max-width: 767px) {
  .rs #choose { padding-top: 29px; }
  html[lang="en"] .rs #choose { padding-top: 31px; }
}
@media (min-width: 768px) {
  .rs { --rs-h2: 30px; --rs-kalam: 32px; }
  .rs .rs-dots { margin-top: 40px; }
  .rs #choose { padding-top: 27.5px; }
  .rs #fees, .rs #process, .rs #notice { padding-top: 33px; }
  .rs .rs-head { margin-bottom: 21.2px; }
  .rs .rs-head:has(.rs6-sub--merged) { margin-bottom: 26px; }
}
@media (min-width: 1024px) {
  .rs #choose { padding-top: 26px; }
}
/* owner 11/14「改法甲」: en/reserve's feature texts above 想學什麼 end lower than the Chinese ones at these widths (measured 1px more short) */
@media (min-width: 768px) and (max-width: 1023px) {
  html[lang="en"] .rs #choose { padding-top: 28.5px; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  html[lang="en"] .rs #choose { padding-top: 27px; }
}
@media (min-width: 1280px) {
  .rs { --rs-h2: 30px; --rs-kalam: 32px; }
  .rs #choose { padding-top: 27px; }
  .rs #fees, .rs #process, .rs #notice { padding-top: 33px; }
  .rs .rs-head { margin-bottom: 21.2px; }
  .rs .rs-head:has(.rs6-sub--merged) { margin-bottom: 26px; }
}

/* /reserve phones, Chinese page: the lead wraps normally now (owner 11/12「正常換行 就好」), so its first line runs to the right edge
   under the cyan asterisk and the snow dot that sat beside it; they go one line down, beside the short second line (from 480 the lead is
   one line and they sit just under it). The English lead is two long lines, so en/reserve keeps the kit's places. */
@media (max-width: 767px) {
  html[lang="zh-TW"] .rs .rs-fl--3 { top: 168px; }
  html[lang="zh-TW"] .rs .rs-fl--4 { top: 178px; }
}

/* ============================== contact, en/contact (.ct) ============================== */
.ct .ct-hero__title { letter-spacing: .08em; }
.ct #ask { padding-top: 31px; }
.ct #contact, .ct #follow { padding-top: 37px; }
.ct #ask .ct-head { margin-bottom: 33px; }
.ct #follow .ct-head { margin-bottom: 22px; }
html[lang="en"] .ct #follow .ct-head { margin-bottom: 29px; }   /* Latin lead under it: its letters start lower */
@media (min-width: 480px) and (max-width: 767px) {
  .ct { --ct-h2: 30px; }
  .ct .ct-hero__title { font-size: 36px; }
  .ct #ask { padding-top: 30px; }
  .ct #contact, .ct #follow { padding-top: 36px; }
}
@media (min-width: 768px) {
  .ct { --ct-h2: 30px; --ct-kalam: 32px; }
  .ct #ask { padding-top: 26px; }
  .ct #contact, .ct #follow { padding-top: 33px; }
  html[lang="en"] .ct #contact, html[lang="en"] .ct #follow { padding-top: 32px; }
  .ct .ct-head { margin-bottom: 21.2px; }
  .ct #ask .ct-head { margin-bottom: 26.2px; }
  .ct #follow .ct-head { margin-bottom: 15.2px; }
  html[lang="en"] .ct #follow .ct-head { margin-bottom: 22.2px; }
}
@media (min-width: 1024px) {
  .ct #ask { padding-top: 30.5px; }
  .ct #ask .ct-head { margin-bottom: 24.2px; }
}
/* owner 11/14「改法甲」: en/contact's lead ends lower above 你想問什麼 at 768-1023 (measured 2px more short than the Chinese page) */
@media (min-width: 768px) and (max-width: 1023px) {
  html[lang="en"] .ct #ask { padding-top: 28px; }
}
@media (min-width: 1280px) {
  .ct { --ct-h2: 30px; --ct-kalam: 32px; }
  .ct #contact, .ct #follow { padding-top: 33px; }
  html[lang="en"] .ct #contact, html[lang="en"] .ct #follow { padding-top: 32px; }
  .ct .ct-head { margin-bottom: 21.2px; }
  .ct #ask .ct-head { margin-bottom: 24.2px; }
  .ct #follow .ct-head { margin-bottom: 15.2px; }
  html[lang="en"] .ct #follow .ct-head { margin-bottom: 22.2px; }
}

/* ============================== tickets, en/tickets (.rental-a.eb) ============================== */
.rental-a.eb .eb-list { padding-top: 30.6px; }
.rental-a.eb .eb-list .ra-head { margin-bottom: 22px; }
.rental-a.eb .eb-tips .ra-head { margin-bottom: 25px; }
.rental-a.eb .ra-ch3.eb-ch3 { padding-top: 37px; }
.rental-a.eb .eb-related .ra-head { margin-bottom: 28px; }
.rental-a.eb.eb--en .eb-list { padding-top: 33.6px; }   /* the English hero's last line ends higher in its line */
@media (min-width: 480px) and (max-width: 767px) {
  .rental-a.eb .eb-list { padding-top: 29px; }
  .rental-a.eb .ra-ch3.eb-ch3 { padding-top: 36px; }
  .rental-a.eb.eb--en .eb-list { padding-top: 32px; }
}
@media (min-width: 768px) {
  .rental-a.eb { --ra-h2: 30px; --ra-kalam: 32px; }
  .rental-a.eb .eb-list { padding-top: 26px; }
  .rental-a.eb div.eb-sep { margin-top: 33.8px; }
  .rental-a.eb .eb-sep + .ra-sec.eb-tips { padding-top: 33px; }
  .rental-a.eb .ra-ch3.eb-ch3 { padding-top: 33px; }
  .rental-a.eb .eb-list .ra-head { margin-bottom: 15.2px; }
  .rental-a.eb .eb-tips .ra-head { margin-bottom: 18.2px; }
  .rental-a.eb .eb-related .ra-head { margin-bottom: 21.2px; }
  .rental-a.eb.eb--en .eb-list { padding-top: 29px; }
  .rental-a.eb.eb--en div.eb-sep { margin-top: 37px; }
}
@media (min-width: 768px) and (max-width: 1279px) {
  .rental-a.eb.eb--en .eb-tips .ra-head { margin-bottom: 17.2px; }
}
@media (min-width: 1280px) {
  .rental-a.eb { --ra-h2: 30px; --ra-kalam: 32px; }
  .rental-a.eb .eb-list { padding-top: 26px; }
  .rental-a.eb .eb-sep + .ra-sec.eb-tips { padding-top: 33px; }
  .rental-a.eb .ra-ch3.eb-ch3 { padding-top: 33px; }
  .rental-a.eb .eb-list .ra-head { margin-bottom: 15.2px; }
  .rental-a.eb .eb-tips .ra-head { margin-bottom: 18.2px; }
  .rental-a.eb .eb-related .ra-head { margin-bottom: 21.2px; }
  .rental-a.eb.eb--en .eb-list { padding-top: 29px; }
}

/* ============================== introduction, en/introduction (#season-hours) ============================== */
@media (min-width: 480px) and (max-width: 767px) {
  .season-overview.t4 { padding-top: 23px; }
}
@media (min-width: 768px) {
  .season-overview.t4 { padding-top: 9px; }
  #season-hours #season-hours-title { font-size: 30px; }
  #season-hours .t4-en { font-size: 32px; }
  #season-hours .t4-head { margin-bottom: 21.2px; }
}
/* 768-1023: the hero's two columns end 8px apart (the ribbon's own bottom margin and padding in the text column). Once the drawing
   column grows taller than the text column (from about 905px) it sets the hero's bottom, so it gets the same 8px under it: the
   title below keeps 40 whichever column is taller. From 1024 the drawing is always the taller one and the spacing is set for it. */
@media (min-width: 768px) and (max-width: 1023px) {
  .intro-hero--h1 .ih1-art { margin-bottom: 8px; }
}
@media (min-width: 1280px) {
  .season-overview.t4 { padding-top: 9px; }
  #season-hours #season-hours-title { font-size: 30px; }
  #season-hours .t4-en { font-size: 32px; }
  #season-hours .t4-head { margin-bottom: 21.2px; }
}

/* the head's lead under the ribbon (owner 11/12; Chinese page only for now): looks like /reserve's .rs-hero__lead; plain text that
   wraps normally (owner 11/12「正常換行 就好」); the ribbon's band -> the first line's letters 18 */
.intro-hero--h1 .ih1-lead { max-width: 30em; color: #3a5167; font-size: 16px; font-weight: 400; line-height: 1.75; letter-spacing: normal; text-wrap: pretty; }
.intro-hero--h1 .ih1-lead { margin-top: 7px; }   /* the ribbon's own bottom room (5px) is under its band */
@media (min-width: 768px) {
  .intro-hero--h1 .ih1-lead { margin-top: 6px; }   /* 6px + 2px under the band from 768 */
}
@media (min-width: 1024px) {
  .intro-hero--h1 .ih1-lead { font-size: 17px; }
}
/* with the lead, its last line is the nearest thing above 2026-27 營業時間 (or, from 1024, the drawing): 44 / 40 again */
@media (max-width: 479px) {
  .intro-hero--h1:has(.ih1-lead) ~ .season-overview.t4 { padding-top: 22px; }
}
@media (min-width: 480px) and (max-width: 767px) {
  .intro-hero--h1:has(.ih1-lead) ~ .season-overview.t4 { padding-top: 21px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .intro-hero--h1:has(.ih1-lead) ~ .season-overview.t4 { padding-top: 10px; }
}
@media (min-width: 1024px) {
  .intro-hero--h1:has(.ih1-lead) { padding-bottom: 16.5px; }
}
/* en/introduction (lead added 11/13, Codex-written English): its last line has descenders (y, g), so the letters end about 3px lower
   than the Chinese line's; 3px more room keeps 44 / 40 */
@media (max-width: 479px) {
  html[lang="en"] .intro-hero--h1:has(.ih1-lead) ~ .season-overview.t4 { padding-top: 25px; }
}
@media (min-width: 480px) and (max-width: 767px) {
  html[lang="en"] .intro-hero--h1:has(.ih1-lead) ~ .season-overview.t4 { padding-top: 24px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  html[lang="en"] .intro-hero--h1:has(.ih1-lead) ~ .season-overview.t4 { padding-top: 13px; }
}
@media (min-width: 1024px) {
  html[lang="en"] .intro-hero--h1:has(.ih1-lead) { padding-bottom: 19.2px; }
}

/* ============================== qa, en/qa (.qa-v6) ============================== */
/* H1 in the white app bar: the card stays, only its size and letter-spacing follow the spec */
.qa-v6 .qa6-appbar h1 { font-size: 33px; letter-spacing: .08em; }
.qa-v6 .qa6-appbar__en { font-size: 22px; }
/* section titles: navy on a cyan brush stroke with the Kalam line under it, as the other pages' *-head__title (STEP row and trail stay) */
.qa-v6 .qa6-head h2 { position: relative; z-index: 0; display: inline-block; color: #17375a; font-size: 26px; line-height: 1.5; letter-spacing: .02em; }
.qa-v6 .qa6-head h2::after {
  content: ""; position: absolute; z-index: -1; left: -.2em; right: -.2em; top: 68%; height: 30%;
  border-radius: .3em .5em .4em .45em; background: rgba(78, 220, 233, .55); transform: rotate(-1deg); transform-origin: left center;
}
.qa-v6 .qa6-en { margin-top: 14px; font-size: 32px; line-height: 1; color: #43647c; }
@media (min-width: 480px) and (max-width: 767px) {
  .qa-v6 .qa6-appbar h1 { font-size: 36px; }
  .qa-v6 .qa6-head h2 { font-size: 30px; }
  .qa-v6 .qa6-en { margin-top: 12px; }
}
@media (min-width: 768px) {
  .qa-v6 .qa6-appbar h1 { font-size: 48px; }
  .qa-v6 .qa6-appbar__en { font-size: 22px; }
  .qa-v6 .qa6-head h2 { font-size: 30px; line-height: 1.4; }
  .qa-v6 .qa6-en { margin-top: 2px; font-size: 32px; line-height: 1.15; }
}
@media (min-width: 1280px) {
  .qa-v6 .qa6-appbar h1 { font-size: 52px; }
  .qa-v6 .qa6-head h2 { font-size: 30px; }
  .qa-v6 .qa6-en { font-size: 32px; }
}
/* spacing: the STEP row's letters sit 44 / 40 under the last thing above; the Kalam line's letters 36 / 32 above the first question card's
   outline. The stops' own --qa6-sec moves the dot on the trail with the row (the trail still runs from dot to dot). */
.qa-v6 .qa6-stop { --qa6-sec: 25px; }
.qa-v6 .qa6-stop--first { padding-top: 38.2px; scroll-margin-top: calc(var(--qa6-nav) + 16px - 38.2px); }
.qa-v6 .qa6-stop--first .qa6-node { top: 40.2px; }
.qa-v6 .qa6-stop--first .qa6-trail { top: 50.2px; }
.qa-v6 .qa6-head { margin-bottom: 33px; }
.qa-v6 #booking .qa6-head { margin-bottom: 30px; }
.qa-v6 #lesson-day .qa6-head, .qa-v6 #safety .qa6-head { margin-bottom: 38px; }
.qa-v6 #more .qa6-head { margin-bottom: 28px; }
@media (min-width: 768px) {
  .qa-v6 .qa6-stop { --qa6-sec: 21px; }
  .qa-v6 .qa6-stop--first { padding-top: 34.2px; scroll-margin-top: calc(var(--qa6-nav) + 16px - 34.2px); }
  .qa-v6 .qa6-stop--first .qa6-node { top: 27.2px; }
  .qa-v6 .qa6-stop--first .qa6-trail { top: 47.2px; }
  /* the 40px dot's centre on the STEP label's centre (it sat 7px lower, before 11/12 too; owner 11/13「都做」); the trail still runs
     from dot centre to dot centre */
  .qa-v6 .qa6-node { top: calc(var(--qa6-sec) - 7px); }
  .qa-v6 .qa6-trail { top: calc(var(--qa6-sec) + 13px); bottom: calc(-1 * (var(--qa6-sec) + 13px)); }
  .qa-v6 .qa6-head { margin-bottom: 24.2px; }
  .qa-v6 #booking .qa6-head { margin-bottom: 21.2px; }
  .qa-v6 #lesson-day .qa6-head, .qa-v6 #safety .qa6-head { margin-bottom: 29.2px; }
  .qa-v6 #more .qa6-head { margin-bottom: 21.2px; }
}
@media (min-width: 1280px) {
  .qa-v6 .qa6-head { margin-bottom: 24.2px; }
  .qa-v6 #booking .qa6-head { margin-bottom: 21.2px; }
  .qa-v6 #lesson-day .qa6-head, .qa-v6 #safety .qa6-head { margin-bottom: 29.2px; }
  .qa-v6 #more .qa6-head { margin-bottom: 21.2px; }
}

/* ============================== page heads: navbar -> H1 letters as on /reserve (owner 11/12「改對齊課程介紹」; /qa stays) ==============================
   Targets (navbar bottom -> the H1's ink top): 45 up to 767, 23 at 768-1023, 39 at 1024-1279, 38 from 1280. The text column no longer
   floats to the middle of a taller drawing: it starts at the top and its offset is set here, per page and width. */
@media (min-width: 768px) {
  .cr .cr-hero__copy, .intro-hero--h1 .ih1-copy, .rs .rs-hero__copy, .rental-a.eb .ra-hero__copy, .ct .ct-hero__copy { align-self: start; }
}
@media (max-width: 479px) {
  html[lang="en"] .rental-a.eb .ra-hero__copy { margin-top: -3px; }
  html[lang="en"] .ct .ct-hero__copy { margin-top: -2px; }
}
@media (min-width: 480px) and (max-width: 767px) {
  .rental-a.eb .ra-hero__copy, .ct .ct-hero__copy { margin-top: -1px; }
  html[lang="en"] .ct .ct-hero__copy { margin-top: -3px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .rental-a.eb .ra-hero__copy, .ct .ct-hero__copy { margin-top: -1px; }
  html[lang="en"] .ct .ct-hero__copy { margin-top: -4px; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .cr .cr-hero__copy, .intro-hero--h1 .ih1-copy, .rs .rs-hero__copy { margin-top: 16.2px; }
  .rental-a.eb .ra-hero__copy, .ct .ct-hero__copy { margin-top: 15.2px; }
  html[lang="en"] .ct .ct-hero__copy { margin-top: 12.2px; }
}
@media (min-width: 1280px) {
  .cr .cr-hero__copy, .intro-hero--h1 .ih1-copy, .rs .rs-hero__copy, .rental-a.eb .ra-hero__copy, .ct .ct-hero__copy { margin-top: 13.7px; }
  html[lang="en"] .ct .ct-hero__copy { margin-top: 9.7px; }
}
/* /contact: the head is a little taller now, so the room above 你想問什麼？ is set again (40 to the drawing or the head's last line) */
@media (min-width: 1024px) and (max-width: 1279px) {
  .ct #ask { padding-top: 26.8px; }
  html[lang="en"] .ct #ask { padding-top: 27.3px; }
}
@media (min-width: 1280px) {
  .ct #ask { padding-top: 25.2px; }
  html[lang="en"] .ct #ask { padding-top: 27.2px; }
}
/* /tickets: Kalam line -> ribbon and ribbon -> first line as on /reserve (17.2 / 21.3 and 18) */
.rental-a.eb .ra-hero__tag { margin-top: 12px; }
@media (min-width: 768px) {
  .rental-a.eb .ra-hero__tag { margin-top: 16px; }
}
@media (max-width: 1023px) {   /* from 1024 the bold line keeps its own 22px (owner 11/07, early-bird-guide.css) */
  .rental-a.eb .eb-hero__hook { margin-top: 12px; }
}

/* ============================== section titles from 768: cyan stroke -> Kalam line (owner 11/13「都做」) ==============================
   The cyan stroke under a section title ended 4px (768-1279) / 3px (1280 and up) above the Kalam line's letters (reviewer: "too close");
   the Kalam line goes down so that this room is about 7px at every width from 768 (phones keep their 11-13). Only the Kalam line moves:
   the room above the title (40) and under the Kalam line (32) stays as set above. */
@media (min-width: 768px) and (max-width: 1279px) {   /* owner 11/14「改法甲」: the title is 30/32 here too, so the same room as from 1280 */
  .cr { --cr-pair: 6px; }
  .rs { --rs-pair: 6px; }
  .ct { --ct-pair: 6px; }
  .rental-a.eb .ra-head .ra-en { margin-top: 6px; }
  #season-hours .t4-en { margin-top: 4px; }
  .qa-v6 .qa6-en { margin-top: 6px; }
}
@media (min-width: 1280px) {
  .cr { --cr-pair: 6px; }
  .rs { --rs-pair: 6px; }
  .ct { --ct-pair: 6px; }
  .rental-a.eb .ra-head .ra-en { margin-top: 6px; }
  #season-hours .t4-en { margin-top: 4px; }   /* was 2px (+2, as above) */
  .qa-v6 .qa6-en { margin-top: 6px; }
}
