/* The Blue Star Academy. One motif: the logo's four squares (a spreadsheet's cells, star in A1). */
:root {
  --ground: #f4f6ff;
  --band: #e8ecff;
  --paper: #ffffff;
  --ink: #2a2c37;
  --navy-ink: #101433;
  --navy: #1b2559;
  --action: #3552e8;
  --blue: #5271ff;
  --blue2: #758bfd;
  --blue3: #9aabff;
  --blue4: #bac6ff;
  --blue5: #dfe5ff;
  --m: clamp(16px, 5vw, 72px);
  --gap: 16px;
  --s-display: clamp(44px, 5.2vw, 84px);
  --s-h2: clamp(36px, 4.4vw, 64px);
  --s-h3: clamp(22px, 2vw, 28px);
  --s-lead: 20px;
  --s-mid: clamp(30px, 3.4vw, 48px);
  --s-fig: clamp(52px, 5.2vw, 75px);
  --s-body: 17px;
  --s-small: 15px;
  --font: "Quicksand", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 500 var(--s-body)/1.55 var(--font);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: var(--s-h2); line-height: 1.02; letter-spacing: -0.035em; }
h3 { font-size: var(--s-h3); line-height: 1.12; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--navy-ink); outline-offset: 3px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--navy-ink); color: #fff; padding: 12px 18px; z-index: 50; }
.skip:focus { top: 8px; }

/* tones: every filled field says what text sits on it */
.t-a { background: var(--action); color: #fff; }
.t-n { background: var(--navy); color: #fff; }
.t-b { background: var(--blue2); color: var(--navy-ink); }
.t-c { background: var(--blue3); color: var(--navy-ink); }
.t-d { background: var(--blue4); color: var(--navy-ink); }
.t-e { background: var(--blue5); color: var(--navy-ink); }

/* buttons: flat, square, decided once */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 26px; border: 0; border-radius: 0;
  font-weight: 700; font-size: var(--s-body); text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease);
}
.btn-solid { background: var(--action); color: #fff; }
.btn-dark { background: var(--navy-ink); color: #fff; }
.btn-ghost { background: color-mix(in srgb, currentColor 14%, transparent); color: inherit; min-height: 44px; padding: 8px 18px; }
.btn:hover { transform: translateY(-3px); }
.btn-solid:hover { background: var(--navy); }
.btn-dark:hover { background: var(--action); }
.btn-ghost:hover { background: color-mix(in srgb, currentColor 26%, transparent); }
.btn:active { transform: scale(.97); }

/* bar */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px var(--m); position: relative; z-index: 5; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.mark { width: 40px; height: 40px; }
.bar nav { display: flex; align-items: center; gap: 28px; }
.bar nav a { white-space: nowrap; }
.bar nav a:not(.btn) { text-decoration: none; font-weight: 600; font-size: var(--s-small); padding: 8px 0; transition: color .2s; }
.bar nav a:not(.btn):hover { color: var(--action); }

/* hero: the motif, enormous, cropped by the viewport */
.hero { position: relative; min-height: calc(100svh - 76px); display: flex; align-items: center; padding: 0 var(--m); overflow: hidden; }
.hero-copy { position: relative; z-index: 2; max-width: 40vw; padding: 40px 0; }
.hero h1 { font-size: var(--s-display); line-height: .98; letter-spacing: -0.04em; font-weight: 700; }
.lede { margin-top: 32px; font-size: var(--s-lead); max-width: 34ch; }
.hero .btn { margin-top: 36px; }
.motif {
  position: absolute; z-index: 1; width: 112vh; aspect-ratio: 1; left: calc(82% - 56vh); top: 50%;
  transform: translateY(calc(-50% + var(--py, 0px)));
  display: grid; grid-template: 1fr 1fr / 1fr 1fr; gap: 3.2%;
}
.cell { position: relative; overflow: hidden; }
.c-star { background: var(--blue); display: grid; place-items: center; }
.c-star svg { width: 62%; fill: #fff; }
.c-photo { background: var(--blue2); }
.c-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.c-b { background: var(--blue3); }
.c-b img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.c-d { background: var(--blue4); display: flex; align-items: flex-end; padding: 6%; }
.c-d p { font-size: var(--s-mid); font-weight: 700; line-height: 1.02; letter-spacing: -0.035em; color: var(--navy-ink); max-width: 9ch; }

/* sections share the frame */
section { padding: clamp(64px, 8vw, 120px) var(--m); }
.lede-dark { font-size: var(--s-lead); max-width: 46ch; }

/* about: a deep panel inset from the page edges */
.about-wrap { padding: 0 20px; }
.about { background: var(--navy); color: #fff; padding: 56px var(--m); min-height: 640px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; column-gap: var(--gap); overflow: hidden; margin: clamp(40px, 6vw, 80px) 0; position: relative; }
.about h2 { grid-column: 1; grid-row: 1; max-width: 9ch; }
.about-photo { grid-column: 1; grid-row: 2; align-self: end; width: min(38vw, 560px); aspect-ratio: 1; margin-bottom: -76px; margin-top: 40px; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.about-text { grid-column: 2; grid-row: 1 / span 2; padding-left: 8%; padding-top: 12px; display: flex; flex-direction: column; gap: 48px; align-items: flex-start; max-width: 540px; }
.about-text p { font-size: var(--s-body); margin-top: 12px; }
.about-text .btn { margin-top: 8px; }
.quals-list { display: grid; gap: 10px; font-size: var(--s-small); margin-top: 16px; }
.quals-list li { padding-left: 18px; position: relative; }
.quals-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; background: var(--blue3); }

/* courses: staggered tiles, empty cells on purpose */
.courses { padding-top: clamp(40px, 6vw, 80px); }
.courses-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); align-items: stretch; }
.courses-h { grid-column: 3; grid-row: 1; align-self: start; display: grid; gap: 16px; justify-items: start; }
.courses-h p { font-size: var(--s-body); max-width: 28ch; }
.tile { padding: 24px; min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; transition: transform .35s var(--ease); }
.tile:hover { transform: translateY(-6px); }

.tile p { margin-top: 12px; }
.tile-foot { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.tile-meta { font-size: var(--s-small); font-weight: 600; }
.g-wide { grid-column: span 2; }
.g-one { grid-column: span 1; }
.r1 { grid-row: 1; } .r2 { grid-row: 2; } .r3 { grid-row: 3; } .r4 { grid-row: 4; }
.c1 { grid-column-start: 1; } .c2 { grid-column-start: 2; } .c3 { grid-column-start: 3; } .c4 { grid-column-start: 4; }
.g-wide.r1 { grid-column: 1 / span 2; }
.g-wide.r3 { grid-column: 3 / span 2; }
.outline { display: grid; gap: 22px; }
.js .tile .outline { display: none; }
.tile .outline { margin-top: 8px; font-size: var(--s-small); }
.og h4 { font-size: 17px; }
.og ul { margin-top: 6px; display: grid; gap: 4px; }
.og li { padding-left: 16px; position: relative; }
.og li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; background: currentColor; opacity: .55; }

/* prices */
.prices { background: var(--band); }
.prices-top { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap) 8%; align-items: end; margin-bottom: 48px; }
.calc { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: clamp(56px, 6vw, 88px); }
.calc-form { background: var(--paper); padding: 40px; display: grid; gap: 22px; align-content: start; }
.calc-form label, .seg legend { display: grid; gap: 8px; font-weight: 700; }
.seg { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.seg legend { padding: 0; margin-bottom: 8px; }
.seg label { display: block; position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; background: var(--ground); padding: 14px 18px; font-weight: 600; transition: background-color .2s; }
.seg input:checked + span { background: var(--action); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--navy-ink); outline-offset: 3px; }
select, input:not([type=radio]):not([type=range]), textarea { width: 100%; border: 0; border-radius: 0; background: var(--ground); padding: 14px 18px; min-height: 52px; }
input[type=range] { accent-color: var(--action); width: 100%; }
.calc-out { background: var(--action); color: #fff; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 380px; }
.calc-big { font-size: var(--s-fig); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.calc-big small, .calc-pp small { display: block; font-size: var(--s-lead); letter-spacing: 0; font-weight: 600; margin-top: 8px; }
.calc-pp { font-size: var(--s-mid); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.calc-out .btn { align-self: flex-start; background: #fff; color: var(--navy-ink); }
.calc-out .btn:hover { background: var(--navy-ink); color: #fff; }
.menus { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; align-items: start; }
.menu-h { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: var(--s-mid); margin: 24px 0 36px; letter-spacing: -0.03em; }
.menu-h span { font-size: var(--s-body); font-weight: 600; letter-spacing: 0; }
.menu { display: grid; gap: 24px; }
.menu.two { grid-template-columns: 1fr 1fr; gap: 32px 64px; }
.menu.three { grid-template-columns: repeat(3, 1fr); gap: 40px 40px; }
.item { display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; }
.sq { display: block; width: 56px; height: 56px; transition: transform .3s var(--ease); }
.item:hover .sq { transform: rotate(8deg) scale(1.06); }
.item > div { display: grid; grid-template-columns: 1fr auto; column-gap: 20px; row-gap: 6px; }
.item b { font-size: var(--s-body); font-weight: 700; line-height: 1.25; }
.item .price { font-weight: 700; font-size: var(--s-body); white-space: nowrap; color: var(--action); text-align: right; line-height: 1.3; }
.item .price em { font-style: normal; font-weight: 600; font-size: var(--s-small); color: var(--ink); }
.item p { grid-column: 1 / -1; font-size: var(--s-small); max-width: 52ch; }
.item p a { font-weight: 700; }
.item a { text-underline-offset: 3px; }

/* open dates */
.dates-head { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: var(--gap); align-items: end; }
.town { position: relative; aspect-ratio: 1; overflow: hidden; }
.town img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.town:hover img { transform: scale(1.05); }
.town figcaption { position: absolute; left: 0; bottom: 0; background: var(--paper); color: var(--navy-ink); padding: 10px 18px; font-weight: 700; font-size: 20px; }
.dates-note { margin: 32px 0 40px; font-size: var(--s-lead); max-width: 62ch; }
.dates { margin-top: 10px; display: grid; gap: 4px; font-size: var(--s-small); }
.dates li { display: flex; gap: 10px; flex-wrap: wrap; }
.dates time { font-weight: 700; }
.dates span { background: var(--blue5); padding: 0 10px; font-weight: 600; }
.dates-sec .item > div { display: block; }
.dates-sec .item b { display: block; }

/* first aid */
.fa { background: var(--navy); color: #fff; }
.fa .item .price { color: var(--blue4); }
.fa .item .price em { color: #fff; }
.fa .item p a { color: #fff; }
.fa-head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap) 8%; align-items: end; margin-bottom: 48px; }
.fa-head p { font-size: var(--s-lead); max-width: 46ch; }

/* stats: stepped tiles that refuse to line up */
.stats { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; align-items: start; }
.stats h2 { grid-column: 7 / 13; grid-row: 1; margin-bottom: 8px; }
.st { padding: 28px; display: flex; flex-direction: column; justify-content: space-between; }
.st b { font-size: var(--s-fig); line-height: 1; letter-spacing: -0.04em; font-weight: 700; }
.st span { font-size: var(--s-lead); font-weight: 600; max-width: 18ch; }
.st1 { grid-column: 1 / 7; grid-row: 1 / span 2; min-height: 56vh; }
.st2 { grid-column: 7 / 10; grid-row: 2; min-height: 36vh; margin-top: 6vh; }
.st3 { grid-column: 10 / 13; grid-row: 2; min-height: 28vh; margin-top: 14vh; }

/* voices */
.voices { background: var(--band); }
.voices h2 { margin-bottom: 40px; max-width: 16ch; }
.voices-grid { display: grid; grid-template-columns: 4fr 1fr 6fr; align-items: start; }
.voices-photo { aspect-ratio: 1; overflow: hidden; }
.voices-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.voices-quotes { grid-column: 3; display: grid; gap: 40px; padding-top: 56px; }
.quote blockquote p { font-size: var(--s-lead); font-weight: 500; line-height: 1.4; }
.quote figcaption { margin-top: 16px; font-weight: 700; color: var(--action); }
.q1 { margin-left: 10%; } .q2 { margin-left: 3%; }

/* faq */
.faq { display: grid; grid-template-columns: 4fr 8fr; gap: var(--gap) 4%; align-items: start; }
.faq h2 { position: sticky; top: 96px; }
.faq-list { display: grid; gap: 8px; }
.faq-tile { background: var(--band); transition: background-color .3s var(--ease), color .3s var(--ease); }
.faq-tile summary { list-style: none; cursor: pointer; padding: 22px 76px 22px 24px; min-height: 72px; font-size: 20px; font-weight: 600; position: relative; display: flex; align-items: center; }
.faq-tile summary::-webkit-details-marker { display: none; }
.faq-tile summary::before, .faq-tile summary::after { content: ""; position: absolute; right: 28px; top: 50%; width: 18px; height: 3px; background: currentColor; transition: transform .3s var(--ease); }
.faq-tile summary::after { transform: rotate(90deg); }
.faq-tile[open] { background: var(--action); color: #fff; }
.faq-tile[open] summary::after { transform: rotate(0); }
.faq-tile p { padding: 0 24px 26px; max-width: 54ch; }
.faq-tile:not([open]):hover { background: var(--blue5); }

/* free resources */
.free { padding-top: 0; }
.free h2 { margin-bottom: 36px; }

/* contact: the coupon */
.contact { padding-top: 0; }
.coupon { display: grid; grid-template-columns: 46fr 54fr; margin: 0 6%; background: var(--paper); }
.coupon-l { padding: 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.coupon-l h2 { font-size: var(--s-mid); }
.coupon-l a { font-weight: 700; }
.soc { display: flex; gap: 12px; flex-wrap: wrap; }
.soc a { width: 48px; height: 48px; display: grid; place-items: center; background: #fff; color: var(--action); transition: background-color .2s, color .2s, transform .25s var(--ease); }
.soc a:hover { background: var(--navy-ink); color: #fff; transform: translateY(-3px); }
.soc svg { width: 24px; height: 24px; }
.coupon-r { padding: 48px; display: grid; gap: 10px; align-content: start; }
.coupon-r label { display: block; }
.two-in { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.coupon-r textarea { resize: vertical; min-height: 96px; }
.coupon-r .btn { width: 100%; min-height: 56px; margin-top: 6px; }
::placeholder { color: #5b5e70; opacity: 1; }

/* footer: the mark, built large */
.foot { background: var(--navy); color: #fff; padding: clamp(48px, 6vw, 80px) var(--m) 32px; }
.foot-mark { display: flex; align-items: flex-end; gap: 4px; height: 34svh; min-height: 220px; }
.fb { flex: 1 1 0; height: calc(var(--h) * 1%); display: grid; place-items: center; font-weight: 700; font-size: var(--s-fig); line-height: 1; letter-spacing: -0.03em; transition: transform .4s var(--ease); }
.fb { text-decoration: none; }
.fb:hover { transform: translateY(-10px); }
.fb.live { outline: 4px solid #fff; outline-offset: -10px; }
.fb[data-ch]::before { content: attr(data-ch); }
.fb svg { width: 52%; fill: currentColor; }
.foot-cols { margin-top: 40px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px var(--gap); font-size: var(--s-small); }
.foot-cols nav, .foot-cols address { display: grid; gap: 10px; align-content: start; font-style: normal; }
.foot-cols a { text-decoration: none; padding: 2px 0; transition: color .2s; }
.foot-cols a:hover { color: var(--blue3); }
.foot-last { margin-top: 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; font-size: var(--s-small); }
.foot-last p { max-width: 70ch; }
.foot .btn-solid { background: #fff; color: var(--navy-ink); }
.foot .btn-solid:hover { background: var(--blue3); color: var(--navy-ink); }

/* dialog */
dialog { border: 0; padding: 0; width: min(760px, calc(100vw - 32px)); max-height: calc(100svh - 48px); background: var(--paper); color: var(--ink); }
dialog::backdrop { background: rgba(16, 20, 51, .72); }
.od-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 28px; background: var(--action); color: #fff; position: sticky; top: 0; }
.od-bar .btn { background: #fff; color: var(--navy-ink); min-height: 44px; }
#od-body { padding: 28px; }
#od-body .outline { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 36px; font-size: var(--s-small); }

/* course pages */
.tile-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.chero { display: grid; grid-template-columns: 6fr 5fr; gap: var(--gap) 6%; align-items: center; padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(48px, 6vw, 88px); }
.chero h1 { font-size: clamp(40px, 4.6vw, 68px); line-height: 1; letter-spacing: -0.04em; max-width: 14ch; }
.chero .lede { max-width: 38ch; }
.chero .btn { margin-top: 32px; }
.cphoto { aspect-ratio: 1; overflow: hidden; }
.cphoto img, .lphoto img, .rphoto img { width: 100%; height: 100%; object-fit: cover; }
.cphoto img { object-position: 60% 50%; animation: shutter 1.1s var(--ease) .15s backwards, settle 1.6s var(--ease) .15s backwards; }
.pricerow { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--gap); padding-top: 0; padding-bottom: clamp(48px, 6vw, 88px); }
.ptile { padding: 32px; display: grid; gap: 12px; align-content: space-between; min-height: 200px; }
.pt-row { display: flex; flex-direction: column; }
.pt-row b { font-size: var(--s-fig); line-height: 1; letter-spacing: -0.04em; }
.pt-row span { font-size: var(--s-lead); font-weight: 600; }
.pt-small { font-size: var(--s-body); font-weight: 600; }
.pt-note { font-size: var(--s-body); max-width: 32ch; align-self: end; }
.problems h2, .day h2, .more h2 { margin-bottom: 40px; }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.prob:nth-child(3n+2) { margin-top: 40px; }
.prob { padding: 28px; min-height: 230px; display: flex; flex-direction: column; gap: 12px; }
.prob p { font-size: var(--s-body); }
.learn { background: var(--band); }
.learn-head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap) 8%; align-items: end; margin-bottom: 56px; }
.learn-head p { font-size: var(--s-lead); max-width: 46ch; margin-top: 24px; }
.lphoto { aspect-ratio: 16 / 10; overflow: hidden; }
.learn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 40px; }
.learn-grid .og h3 { font-size: var(--s-h3); }
.learn-grid .og ul { margin-top: 10px; gap: 6px; }
.learn-grid .og li::before { background: var(--blue); opacity: 1; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; align-items: start; }
.fact { margin: 0; padding: 28px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.fact:nth-child(2) { margin-top: 5vh; } .fact:nth-child(3) { margin-top: 10vh; } .fact:nth-child(4) { margin-top: 15vh; }
.fact b { font-size: var(--s-mid); line-height: 1; letter-spacing: -0.03em; }
.fact span { font-size: var(--s-body); font-weight: 600; max-width: 24ch; }
.fphoto { padding: 0; position: relative; overflow: hidden; min-height: 280px; }
.fphoto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fphoto figcaption { position: absolute; left: 0; bottom: 0; background: var(--paper); color: var(--navy-ink); padding: 10px 16px; font-weight: 700; font-size: var(--s-body); max-width: 80%; }
.by + .by { margin-top: 40px; }
.by { margin-top: 72px; display: grid; grid-template-columns: 3fr 8fr; gap: 40px; align-items: center; }
.rphoto { margin: 0; aspect-ratio: 1; overflow: hidden; }
.by h3 { font-size: var(--s-mid); letter-spacing: -0.03em; line-height: 1; }
.by p { font-size: var(--s-lead); max-width: 58ch; margin-top: 16px; }
.voice1 { background: var(--band); }
.voice1 .vq { display: grid; gap: 48px; }
.voice1 .quote { max-width: 60ch; margin-left: 8%; }
.voice1 .quote:nth-child(2) { margin-left: 18%; }
.voice1 .quote blockquote p { font-size: var(--s-h3); line-height: 1.3; }
.more-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); align-items: stretch; }
.mtile { padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; text-decoration: none; transition: transform .35s var(--ease); }
a.mtile:hover { transform: translateY(-6px); }
.mtile p, .mtile li { font-size: var(--s-body); }
.mtile ul { display: grid; gap: 8px; }
.mtile a:not(.btn) { font-weight: 700; text-underline-offset: 3px; }
.mtile .btn { align-self: flex-start; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cta-row .btn { margin-top: 0; }
.by p + p { margin-top: 12px; }

/* quiz */
.qhero { padding-bottom: 0; }
.qhero h1 { font-size: clamp(40px, 4.6vw, 68px); line-height: 1; letter-spacing: -0.04em; max-width: 16ch; }
.qhero .lede { max-width: 46ch; }
.bandphoto { height: clamp(180px, 22vw, 320px); overflow: hidden; margin-bottom: 40px; }
.bandphoto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.qform { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: start; }
.qset { border: 0; margin: 0; padding: 24px; background: var(--band); min-inline-size: 0; }
.qset .qopt { margin-top: 8px; }
.qset legend { padding: 0; font-size: var(--s-lead); font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.qopt { position: relative; display: block; }
.qopt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; width: 100%; height: 100%; margin: 0; }
.qopt span { display: block; background: var(--paper); padding: 14px 18px; font-weight: 600; transition: background-color .2s; }
.qopt:hover span { background: var(--blue5); }
.qopt input:checked + span { background: var(--action); color: #fff; }
.qopt input:focus-visible + span { outline: 3px solid var(--navy-ink); outline-offset: 3px; }
.qform .btn { justify-self: start; margin-top: 16px; grid-column: 1 / -1; }
.qresult { background: var(--navy); color: #fff; padding: clamp(28px, 4vw, 56px); margin-top: 24px; display: grid; gap: 18px; justify-items: start; }
.qresult h2 { font-size: var(--s-h2); }
.qresult p { font-size: var(--s-lead); max-width: 52ch; }
.qresult .btn-solid { background: #fff; color: var(--navy-ink); }
.qresult .btn-solid:hover { background: var(--blue3); }
.qresult[hidden] { display: none; }
.qnote { font-size: var(--s-small); max-width: 62ch; margin-top: 16px; }

/* local pages */
.lcourses { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.lc { padding: 28px; display: grid; gap: 10px; text-decoration: none; transition: transform .35s var(--ease); }
a.lc:hover { transform: translateY(-6px); }
.lc h3 { font-size: var(--s-h3); }
.lc p { font-size: var(--s-body); }
.lc .price { font-weight: 700; }
.why { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
.why h3 { margin-bottom: 10px; }
.areas { font-size: var(--s-lead); max-width: 62ch; }

/* courses as a spreadsheet */
.courses-head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap) 8%; align-items: end; margin-bottom: 40px; }
.courses-head > div { display: grid; gap: 16px; justify-items: start; }
.courses-head p { font-size: var(--s-lead); max-width: 36ch; }
.xl { background: var(--paper); }
.xl-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; background: var(--blue5); padding: 10px 12px; }
.xl-name { background: #fff; padding: 6px 14px; font-weight: 700; min-width: 64px; text-align: center; }
.xl-fx { font-weight: 700; font-style: italic; color: var(--action); padding: 0 4px; }
.xl-val { flex: 1 1 260px; background: #fff; padding: 6px 14px; font-size: var(--s-small); min-height: 36px; display: flex; align-items: center; }
.xl-mode { display: flex; gap: 6px; }
.xl-mode[hidden] { display: none; }
.xl-mode button { border: 0; border-radius: 0; padding: 10px 16px; min-height: 44px; font-weight: 700; background: #fff; color: var(--navy-ink); cursor: pointer; transition: background-color .2s, color .2s; }
.xl-mode button:hover { background: var(--blue4); }
.xl-mode button.on { background: var(--action); color: #fff; }
.xl-scroll { overflow-x: auto; }
.sheet { width: 100%; border-collapse: collapse; font-size: var(--s-body); }
.sheet th, .sheet td { padding: 14px 16px; text-align: left; border: 1px solid var(--blue4); vertical-align: middle; }
.sheet .letters th { background: var(--blue5); text-align: center; padding: 6px; font-size: var(--s-small); font-weight: 600; }
.sheet thead tr:nth-child(2) th { background: var(--blue4); color: var(--navy-ink); font-weight: 700; }
.sheet .rn { width: 48px; background: var(--blue5); text-align: center; font-weight: 600; font-size: var(--s-small); padding: 6px; transition: background-color .2s, color .2s; }
.sheet tbody th { font-weight: 700; background: #fff; white-space: nowrap; }
.sheet tbody th a { text-underline-offset: 3px; }
.sheet td.num, .sheet th.num { text-align: right; white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; }
.sheet tbody tr td, .sheet tbody tr th { transition: background-color .2s; }
.sheet tbody tr:hover td:not(.rn), .sheet tbody tr:hover th, .sheet tbody tr.on td:not(.rn), .sheet tbody tr.on th { background: var(--blue5); }
.sheet tbody tr.on .rn, .sheet tbody tr:hover .rn { background: var(--action); color: #fff; }
.sheet .go-in { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.sheet .go .btn { white-space: nowrap; }
.sheet .outline { display: none; }
.xl-note { padding: 14px 18px; font-size: var(--s-small); background: var(--blue5); }

/* the price calculator's drop-down, made obvious */
.selwrap { position: relative; display: block; margin-top: 8px; }
.selwrap select { appearance: none; -webkit-appearance: none; width: 100%; border: 3px solid var(--action); border-radius: 0; background: #fff; padding: 16px 72px 16px 18px; min-height: 64px; font-weight: 700; font-size: var(--s-lead); color: var(--navy-ink); cursor: pointer; }
.selwrap select:hover { background: var(--blue5); }
.selwrap::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 60px; background: var(--action); pointer-events: none; }
.selwrap::before { content: ""; position: absolute; right: 22px; top: 50%; width: 14px; height: 14px; border-right: 4px solid #fff; border-bottom: 4px solid #fff; transform: translateY(-70%) rotate(45deg); z-index: 1; pointer-events: none; }
.menu-note { font-size: var(--s-small); margin-top: 24px; max-width: 52ch; }
.know .faq-tile p + ul { padding: 0 24px 26px; }
.know .faq-tile .quals-list { margin-top: 0; }

/* blog */
.post { max-width: 760px; margin: 0 auto; padding: clamp(48px, 6vw, 96px) var(--m) clamp(32px, 4vw, 64px); }
.post-date { font-size: var(--s-small); font-weight: 600; }
.post h1 { font-size: clamp(36px, 4.2vw, 60px); line-height: 1.02; letter-spacing: -0.035em; margin: 16px 0 32px; }
.post-body h2 { font-size: var(--s-h3); margin: 40px 0 12px; letter-spacing: -0.02em; }
.post-body p, .post-body li { font-size: var(--s-lead); line-height: 1.6; }
.post-body p { margin-top: 16px; }
.post-body ul, .post-body ol { margin: 16px 0 0 24px; list-style: revert; display: grid; gap: 8px; }
.post-body a { font-weight: 700; text-underline-offset: 3px; }
.post-body code { background: var(--blue5); padding: 2px 8px; font-family: inherit; font-weight: 700; }

/* course checklist */
.check h2 { margin-bottom: 16px; }
.ck-lede { font-size: var(--s-lead); max-width: 52ch; margin-bottom: 40px; }
.ck-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: start; }
.ck-tile { padding: 32px; }
.ck-tile h3 { margin-bottom: 20px; }
.ck-tile ul { display: grid; gap: 14px; }
.ck { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; font-size: var(--s-body); }
.ck input { appearance: none; -webkit-appearance: none; flex: none; width: 26px; height: 26px; margin: 2px 0 0; border: 3px solid var(--navy); border-radius: 0; background: #fff; cursor: pointer; display: grid; place-items: center; transition: background-color .2s; }
.ck input[type=checkbox] { width: 26px; height: 26px; min-height: 0; padding: 0; border: 3px solid var(--navy); background: #fff; }
.ck input[type=checkbox]:checked { background: var(--action); border-color: var(--action); }
.ck input::after { content: ""; width: 12px; height: 7px; border-left: 4px solid #fff; border-bottom: 4px solid #fff; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.ck input:checked { background: var(--action); border-color: var(--action); }
.ck input:checked::after { opacity: 1; }
.ck input:focus-visible { outline: 3px solid var(--navy-ink); outline-offset: 3px; }
.ck input:checked + span { opacity: .75; }
.check .cta-row { margin-top: 32px; }

/* hidden pages */
.about-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.codebox { display: inline-block; background: #fff; color: var(--navy-ink); padding: 14px 22px; font-size: var(--s-h3); font-weight: 700; letter-spacing: 0.04em; }
.fine { font-size: var(--s-small); }
.prob.now { outline: 4px solid var(--action); outline-offset: 4px; }
.evlist { display: grid; gap: 8px; }
.ev { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr; gap: 8px 24px; padding: 18px 22px; background: var(--band); align-items: baseline; }
.ev:first-child { background: var(--action); color: #fff; }
.ev time { font-weight: 600; }
.ev b { font-size: var(--s-lead); }

/* easter egg bar, tip card, celebration cards */
.egg-bar { flex: 1 0 100%; margin: -18px calc(-1 * var(--m)) 0; padding: 9px var(--m); background: var(--navy); color: #fff; font-size: var(--s-small); font-weight: 600; text-align: center; }
.bar { flex-wrap: wrap; }
.tipcard { padding: clamp(28px, 4vw, 56px); max-width: 920px; display: grid; gap: 18px; }
.tipcard h2 { font-size: var(--s-h2); }
.tipcard p { font-size: var(--s-lead); max-width: 56ch; }
.celebrate { padding: clamp(28px, 4vw, 56px); display: grid; gap: 16px; margin-bottom: 16px; }
.celebrate h2 { font-size: var(--s-h2); }
.celebrate p { font-size: var(--s-lead); max-width: 56ch; }
.celebrate .date { font-size: var(--s-body); font-weight: 700; }

.more-grid.tri { grid-template-columns: repeat(3, 1fr); }
.btn-light { background: #fff; color: var(--navy-ink); }
.btn-light:hover { background: var(--blue3); }

/* hidden pages: keep exploring, wheel, wallpaper, errors, question, jokes, 404, toast */
.keep { padding: clamp(64px, 8vw, 120px) var(--m); }
.keep h2 { font-size: var(--s-mid); margin-bottom: 32px; }
.wheelwrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.wheel { position: relative; width: min(100%, 460px); aspect-ratio: 1; }
.wheel::before { content: ""; position: absolute; top: -10px; left: 50%; width: 30px; height: 30px; background: var(--navy-ink); transform: translateX(-50%) rotate(45deg); z-index: 2; }
.wheel svg { width: 100%; height: 100%; display: block; border-radius: 50%; }
.spinside { display: grid; gap: 24px; justify-items: start; }
.spinside .btn { min-width: 220px; min-height: 64px; font-size: var(--s-lead); }
.rcard { padding: 32px; width: 100%; min-height: 200px; display: grid; gap: 14px; align-content: center; }
.rcard .keys { font-size: var(--s-h3); line-height: 1.6; }
.rcard kbd { font: 700 var(--s-body) var(--font); background: var(--blue5); color: var(--navy-ink); padding: 6px 12px; border-bottom: 4px solid var(--blue3); white-space: nowrap; }
.rcard .or { font-size: var(--s-small); opacity: .8; }
.rcard .what { font-size: var(--s-lead); }
.wp img { width: 100%; height: auto; display: block; }
.errcode { font-size: var(--s-mid); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.qa { background: var(--band); padding: clamp(24px, 4vw, 48px); display: grid; gap: 20px; max-width: 920px; }
.qa h2 { font-size: var(--s-h3); line-height: 1.25; }
.qanswers { display: grid; gap: 8px; }
.qbtn { border: 0; border-radius: 0; background: #fff; color: var(--navy-ink); padding: 16px 18px; text-align: left; font-weight: 600; font-size: var(--s-body); cursor: pointer; transition: background-color .2s; }
.qbtn:hover:not(:disabled) { background: var(--blue5); }
.qbtn:disabled { cursor: default; }
.qbtn.right { background: var(--action); color: #fff; }
.qbtn.wrong { background: var(--navy); color: #fff; }
.qresult2 { display: grid; gap: 10px; font-size: var(--s-body); }
.joke { padding: clamp(28px, 5vw, 64px); display: grid; gap: 18px; max-width: 920px; }
.jq { font-size: var(--s-h3); font-weight: 700; line-height: 1.25; }
.ja { font-size: var(--s-lead); }
.errbig { font-size: clamp(64px, 12vw, 180px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; color: var(--action); margin-bottom: 8px; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 40px); opacity: 0; background: var(--navy-ink); color: #fff; padding: 14px 22px; font-weight: 700; z-index: 80; max-width: 90vw; text-align: center; transition: opacity .3s, transform .3s var(--ease); pointer-events: none; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

.stars { display: flex; gap: 4px; margin-bottom: 14px; }
.stars svg { width: 26px; height: 26px; fill: #f2b600; }

.imgtile { padding: 0; gap: 0; justify-content: flex-start; }
.tileimg { aspect-ratio: 16 / 9; overflow: hidden; }
.tileimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tilebody { padding: 28px; display: grid; gap: 14px; }
.tilebody .cta-row { margin-top: 8px; }

/* text links, made to match the rest of the site */
:is(main p, main li, main td, main th, main summary, .post-body, .faq-tile, .foot-last p) a:not(.btn):not(.mtile):not(.lc):not(.fb) {
  color: var(--action); font-weight: 700; text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--blue3); text-underline-offset: 4px;
  transition: color .2s, text-decoration-color .2s;
}
:is(main p, main li, main td, main th, main summary, .post-body, .faq-tile, .foot-last p) a:not(.btn):not(.mtile):not(.lc):not(.fb):hover {
  color: var(--navy-ink); text-decoration-color: var(--action);
}
:is(.t-n, .t-a, .about, .coupon-l, .foot, .fa, .calc-out) :is(p, li) a:not(.btn):not(.mtile):not(.lc):not(.fb):not(.zz) { color: #fff; text-decoration-color: var(--blue3); }
:is(.t-n, .t-a, .about, .coupon-l, .foot, .fa, .calc-out) :is(p, li) a:not(.btn):not(.mtile):not(.lc):not(.fb):not(.zz):hover { color: var(--blue4); text-decoration-color: #fff; }

:is(.t-b, .t-c, .t-d, .t-e) :is(p, li) a:not(.btn):not(.mtile):not(.lc):not(.fb):not(.zz) { color: var(--navy-ink); text-decoration-color: var(--action); }
:is(.t-b, .t-c, .t-d, .t-e) :is(p, li) a:not(.btn):not(.mtile):not(.lc):not(.fb):not(.zz):hover { color: var(--action); }
.faq-tile[open] a:not(.btn) { color: #fff; text-decoration-color: var(--blue3); }

/* courses dropdown in the top bar */
.navdd { position: relative; }
.navdd::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 16px; }
.navdd-menu { display: none; position: absolute; top: calc(100% + 12px); left: -24px; min-width: 460px; grid-template-columns: 1fr 1fr; gap: 28px; background: #fff; padding: 24px 28px; box-shadow: 0 14px 34px rgba(16, 20, 51, .18); z-index: 30; }
.navdd:hover .navdd-menu, .navdd:focus-within .navdd-menu { display: grid; }
.navdd-menu p { font-size: var(--s-small); font-weight: 700; color: var(--action); margin: 0 0 6px; }
.bar nav .navdd-menu a { display: block; padding: 8px 0; font-weight: 600; font-size: var(--s-body); color: var(--navy-ink); }
.bar nav .navdd-menu a:hover { color: var(--action); }
.bar nav .navdd-menu a.all { margin-top: 8px; color: var(--action); font-weight: 700; }

/* back to top, always on screen */
.totop { position: fixed; right: 20px; bottom: 20px; width: 52px; height: 52px; background: var(--navy-ink); color: #fff; display: grid; place-items: center; z-index: 40; transition: background-color .2s, transform .25s var(--ease); }
.totop:hover { background: var(--action); transform: translateY(-3px); }
.totop svg { width: 24px; height: 24px; }
@media print { .totop { display: none; } }

/* social icons keep their own colours (the general link style made them white on white) */
.coupon-l p.soc a:not(.btn):not(.mtile):not(.lc):not(.fb):not(.zz):not(.yy) { color: var(--action); text-decoration: none; }
.coupon-l p.soc a:not(.btn):not(.mtile):not(.lc):not(.fb):not(.zz):not(.yy):hover { color: #fff; }

/* blog home */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.blog-grid .bt { font-size: var(--s-h3); }
.blog-feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; align-items: stretch; }
.blog-feature .tileimg { aspect-ratio: auto; min-height: 320px; }
.blog-feature .tilebody { align-content: center; padding: clamp(28px, 4vw, 56px); }
.blog-feature .bt { font-size: clamp(28px, 3vw, 42px); line-height: 1.05; letter-spacing: -0.03em; }
.blog-soon { grid-column: 1 / -1; padding: clamp(28px, 4vw, 48px); gap: 14px; }
.blog-soon .btn { align-self: flex-start; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr; } .blog-feature { grid-template-columns: 1fr; } .blog-feature .tileimg { min-height: 0; aspect-ratio: 16 / 9; } }

.form-msg { font-weight: 700; min-height: 1.4em; margin-top: 4px; }
.form-msg a { text-decoration: underline; }

/* motion */
[data-r] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
[data-r].in { opacity: 1; transform: none; }
html:not(.js) [data-r] { opacity: 1; transform: none; }
.tile[data-r].in:hover { transform: translateY(-6px); transition-delay: 0s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes shutter { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.14); } to { transform: scale(1); } }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.hero h1 { animation: rise .9s var(--ease) .1s backwards; }
.hero .lede { animation: rise .9s var(--ease) .22s backwards; }
.hero .btn { animation: rise .9s var(--ease) .34s backwards; }
.c-photo img { animation: shutter 1.1s var(--ease) .15s backwards, settle 1.6s var(--ease) .15s backwards; }
.c-star, .c-b, .c-d { animation: pop .8s var(--ease) backwards; }
.c-star { animation-delay: .05s; } .c-b { animation-delay: .35s; } .c-d { animation-delay: .5s; }
.c-star svg { animation: settle 2.4s var(--ease) .3s backwards; }
.about-photo img, .voices-photo img { transition: transform 1.4s var(--ease); }
.about-photo:hover img, .voices-photo:hover img { transform: scale(1.04); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  [data-r] { opacity: 1; transform: none; }
}

/* tablet */
@media (max-width: 1100px) {
  .hero { display: block; min-height: calc(100svh - 76px); padding-top: 5svh; padding-bottom: 0; }
  .hero-copy { max-width: 560px; padding: 0; }
  .hero h1 { font-size: clamp(44px, 9vw, 84px); }
  .c-d p { display: none; }
  .motif { width: 112vw; left: 50%; margin-left: -56vw; top: 58svh; transform: translateY(var(--py, 0px)); }
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .courses-h { grid-column: 1 / -1; grid-row: auto; margin-bottom: 24px; }
  .tile, .g-wide.r1, .g-wide.r3, .g-one { grid-column: span 1 !important; grid-row: auto !important; }
  .g-wide { grid-column: span 2 !important; }
  .about { grid-template-columns: 1fr; min-height: 0; }
  .about-photo { grid-row: auto; width: 86%; margin: 32px 0 0; }
  .about-text { grid-column: 1; grid-row: auto; padding-left: 0; margin-top: 32px; max-width: none; }
  .about h2 { max-width: none; }
  .menus, .menu.two { grid-template-columns: 1fr; }
  .menus { row-gap: 72px; }
  .menu.three { grid-template-columns: 1fr 1fr; }
  .dates-head { grid-template-columns: 1fr 1fr; }
  .dates-head h2 { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(6, 1fr); }
  .stats h2 { grid-column: 1 / -1; grid-row: auto; margin-bottom: 24px; }
  .st1 { grid-column: 1 / -1; grid-row: auto; min-height: 56vw; }
  .st2 { grid-column: 1 / 4; grid-row: auto; min-height: 280px; margin-top: 0; }
  .st3 { grid-column: 4 / 7; grid-row: auto; min-height: 280px; margin-top: 32px; }
  .voices-grid { grid-template-columns: 1fr; }
  .voices-photo { width: 72%; }
  .voices-quotes { grid-column: 1; padding-top: 48px; }
  .faq { grid-template-columns: 1fr; }
  .faq h2 { position: static; margin-bottom: 24px; }
  .coupon { margin: 0; grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .prices-top, .fa-head, .calc { grid-template-columns: 1fr; }
  .chero, .learn-head, .courses-head, .ck-grid, .ev { grid-template-columns: 1fr; }
  .lcourses, .why, .qform { grid-template-columns: 1fr; }
  .pricerow { grid-template-columns: 1fr 1fr; }
  .cphoto { margin-top: 24px; }
  .by { grid-template-columns: 1fr 2fr; }
  .prob:nth-child(n) { margin-top: 0; }
  .prob:nth-child(even) { margin-top: 24px; }
  .chero h1 { max-width: none; }
  .pgrid, .learn-grid { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(n) { margin-top: 0; }
  .fact:nth-child(even) { margin-top: 32px; }
  .more-grid, .more-grid.tri { grid-template-columns: 1fr; }
  .wheelwrap { grid-template-columns: 1fr; }
  .voice1 .quote { margin-left: 0; }
  .calc { gap: 56px; }
}

/* phone: its own composition */
@media (max-width: 900px) {
  .bar nav a:not(.btn) { display: none; }
}
@media (max-width: 900px) {
  .sheet, .sheet tbody, .sheet tr, .sheet td, .sheet tbody th { display: block; }
  .sheet thead { display: none; }
  .xl-scroll { overflow: visible; }
  .sheet tbody tr { margin: 0 0 10px; background: #fff; }
  .sheet td, .sheet tbody th { border: 0; padding: 10px 16px; display: flex; justify-content: space-between; gap: 16px; }
  .sheet td::before { content: attr(data-l); font-weight: 600; font-size: var(--s-small); text-align: left; }
  .sheet td.go::before { content: none; }
  .sheet td.rn { display: none; }
  .sheet td.num { text-align: right; }
  .sheet tbody th { font-size: var(--s-lead); background: var(--blue4); }
  .sheet .go-in { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 760px) {
  :root { --gap: 10px; }
  .bar nav a:not(.btn) { display: none; }
  .btn { padding-left: 20px; padding-right: 20px; }
  .brand span { font-size: 17px; }
  .hero h1 { font-size: 11.5vw; }
  .lede { margin-top: 20px; max-width: 30ch; }
  .hero .btn { margin-top: 24px; }
  .lede { font-size: var(--s-lead); }
  .motif { width: 130vw; margin-left: -65vw; top: 56svh; }
  .tile { padding: 22px; min-height: 0; }
  .menu.three { grid-template-columns: 1fr; }
  .courses-grid { grid-template-columns: 1fr; }
  .g-wide, .tile { grid-column: 1 / -1 !important; }
  .courses-h { margin-bottom: 8px; }
  .calc-form, .calc-out { padding: 24px; }
  .pgrid, .learn-grid, .facts, .pricerow, .by { grid-template-columns: 1fr; }
  .prob:nth-child(even) { margin-top: 0; }
  .fact:nth-child(even) { margin-top: 0; }
  .ptile, .mtile, .prob { padding: 24px; }
  .pricerow { gap: 40px; }
  .item { grid-template-columns: 44px 1fr; gap: 14px; }
  .sq { width: 44px; height: 44px; }
  
  .dates-head { grid-template-columns: 1fr 1fr; }
  .fa-head { margin-bottom: 40px; }
  .st b { font-size: var(--s-fig); }
  .stats { row-gap: 28px; }
  .st2, .st3 { grid-column: span 3; min-height: 220px; }
  
  .st span { font-size: var(--s-small); }
  .voices-photo { width: 86%; }
  .q1, .q2 { margin-left: 0; }
  .coupon-l, .coupon-r { padding: 24px; }
  .two-in { grid-template-columns: 1fr; }
  .foot-mark { flex-wrap: wrap; height: auto; align-items: stretch; }
  .fb { flex: 1 1 18%; height: calc(var(--h) * 1.6px); min-height: 96px; font-size: 11vw; }
  .foot-last { flex-direction: column; align-items: flex-start; }
  #od-body .outline { grid-template-columns: 1fr; }
}

/* ===== mobile pass: readable text, phone menu, simple course list ===== */
:root { --s-body: 18px; --s-small: 16px; --xl: #217346; --pbi: #f2c811; }

/* nods to the Excel (green) and Power BI (yellow) logos */
.appdot { display: inline-block; width: .62em; height: .62em; margin-right: .55em; flex: none; vertical-align: baseline; }
.appdot.excel { background: var(--xl); }
.appdot.pbi { background: var(--pbi); }
.appdot.both { background: linear-gradient(90deg, var(--xl) 50%, var(--pbi) 50%); }
.sheet tbody th { display: flex; align-items: baseline; }
.apptag { display: flex; align-items: center; font-weight: 700; font-size: var(--s-small); margin-bottom: 14px; }
.item b .appdot { vertical-align: 0; }

.menus.one { grid-template-columns: 1fr; }
.course-mini { display: none; }
.calc-note { font-size: var(--s-small); margin: 0 0 16px; max-width: 34ch; }

.menu-btn { display: none; }
.voices-photo { width: 72%; }

@media (max-width: 1100px) {
  .hero { min-height: 0; padding-top: 24px; padding-bottom: 44px; overflow: visible; }
  .motif { position: static !important; width: 100% !important; margin: 32px 0 0 !important; left: auto; top: auto; transform: none !important; aspect-ratio: auto; grid-template: 1fr 1fr / 1fr 1fr; gap: 10px; }
  .motif .cell { aspect-ratio: 1 / 1; }
  .c-d { padding: 14px; }
  .c-d p { display: block; font-size: clamp(18px, 5vw, 28px); }
  .about { display: block; padding: 36px var(--m) 40px; overflow: hidden; }
  .about h2 { margin-bottom: 18px; }
  .about-photo { float: right; width: min(40%, 190px); margin: 4px 0 12px 18px; }
  .about-text { display: block; padding: 0; margin: 0; max-width: none; }
  .about-text > div { margin-bottom: 20px; }
  .about-btns { clear: both; padding-top: 8px; }
  .voices-photo { width: min(44%, 220px); }
}

@media (max-width: 900px) {
  .menu-btn { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 18px; background: var(--navy-ink); color: #fff; border: 0; font-weight: 700; font-size: 17px; cursor: pointer; }
  .menu-lines { width: 20px; height: 3px; background: #fff; box-shadow: 0 -7px 0 #fff, 0 7px 0 #fff; }
  .menu-btn[aria-expanded="true"] .menu-lines { box-shadow: none; transform: rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-lines::after { content: ""; display: block; width: 20px; height: 3px; background: #fff; transform: rotate(90deg); }
  .bar { flex-wrap: wrap; row-gap: 12px; }
  .bar nav { display: none; flex: 1 0 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); margin: 0 calc(-1 * var(--m)) -18px; padding: 10px var(--m) 24px; box-shadow: 0 14px 30px rgba(16, 20, 51, .16); }
  .menu-open .bar nav { display: flex; }
  .bar nav a:not(.btn) { display: block !important; padding: 14px 0; font-size: 19px; }
  .navdd-menu { display: block; position: static; min-width: 0; box-shadow: none; background: transparent; padding: 0 0 8px 16px; }
  .navdd-menu > div { margin-bottom: 10px; }
  .bar nav .navdd-menu a { padding: 11px 0; font-size: 18px; }
  .bar nav .btn { margin-top: 14px; }
  .xl { display: none; }
  .course-mini { display: grid; gap: 10px; margin-top: 8px; }
  .cm-item a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: baseline; padding: 20px; background: var(--paper); color: var(--navy-ink); text-decoration: none; }
  .cm-name { font-size: var(--s-h3); font-weight: 700; line-height: 1.1; display: flex; align-items: baseline; }
  .cm-name::before { content: none; }
  .cm-item .appdot { margin-right: 0; }
  .cm-from { font-weight: 700; color: var(--action); white-space: nowrap; text-align: right; }
  .cm-go { grid-column: 1 / -1; font-weight: 700; text-decoration: underline; text-decoration-color: var(--blue3); text-decoration-thickness: 3px; text-underline-offset: 4px; }
  .cm-item a:hover .cm-go { color: var(--action); }
}
@media (max-width: 760px) {
  .cm-item a { grid-template-columns: 1fr; }
  .cm-from { text-align: left; }
  .cm-item .appdot { margin-right: .5em; }
  .cm-item a { padding: 18px; }
  .cm-name { gap: 0; }
}

/* ===== dark mode: follows the phone's setting ===== */
@media (prefers-color-scheme: dark) {
  :root { --ground: #0d1127; --band: #151b42; --paper: #1a2150; --ink: #e8ecff; --navy: #232d70; --blue5: #cfd8ff; }
  .btn-dark { background: var(--action); color: #fff; }
  .btn-dark:hover { background: var(--blue2); }
  .xl-name, .xl-val, .sheet tbody th, .selwrap select, .navdd-menu, .qbtn { color: var(--navy-ink); }
  .bar nav, .navdd-menu { background: var(--paper); }
  .bar nav .navdd-menu a, .navdd-menu p { color: #fff; }
  .navdd-menu p { color: var(--blue3); }
  .bar nav a:not(.btn):hover { color: var(--blue3); }
  .cm-item a { background: var(--paper); color: #fff; }
  .cm-from { color: var(--blue3); }
  .cm-go { text-decoration-color: var(--blue2); }
  .menu-btn, .totop { background: var(--action); }
  .about, .t-n { background: #232d70; }
  .egg-bar { background: #232d70; }
  img { filter: brightness(.92); }
  .item .price { color: var(--blue3); }
  main a:not(.btn):not(.mtile):not(.lc):not(.fb):not(.zz) { text-decoration-color: var(--blue2); }
  :is(main p, main li, main td, main th, main summary, .post-body, .faq-tile, .foot-last p) a:not(.btn):not(.mtile):not(.lc):not(.fb) { color: #fff; text-decoration-color: var(--blue2); }
  :is(.t-b, .t-c, .t-d, .t-e) :is(p, li) a:not(.btn):not(.mtile):not(.lc):not(.fb):not(.zz) { color: var(--navy-ink); text-decoration-color: var(--action); }
}
@media (max-width: 900px) {
  .bar { column-gap: 10px; }
  .brand { gap: 10px; min-width: 0; }
  .brand span { font-size: 16px; }
  .menu-btn { padding: 0 14px; gap: 10px; margin-left: auto; }
}

/* course list cards: the card is the link, so it keeps its own text styling */
main .cm-item a:not(.btn):not(.mtile):not(.lc):not(.fb):not(.zz) { color: var(--navy-ink); font-weight: 500; text-decoration: none; }
main .cm-item a:not(.btn):not(.mtile):not(.lc):not(.fb):not(.zz) .cm-name { font-weight: 700; }
main .cm-item a:not(.btn):not(.mtile):not(.lc):not(.fb):not(.zz) .cm-from { color: var(--action); font-weight: 700; }
main .cm-item a:not(.btn):not(.mtile):not(.lc):not(.fb):not(.zz) .cm-go { font-weight: 700; }
@media (prefers-color-scheme: dark) {
  main .cm-item a:not(.btn):not(.mtile):not(.lc):not(.fb):not(.zz) { color: #fff; }
  main .cm-item a:not(.btn):not(.mtile):not(.lc):not(.fb):not(.zz) .cm-from { color: var(--blue3); }
}
@media (prefers-color-scheme: dark) {
  .quote figcaption, .xl-fx, .errbig { color: var(--blue3); }
  .bar nav .navdd-menu a.all { color: var(--blue3); }
  .bar nav .navdd-menu a:hover { color: var(--blue3); }
  .btn-ghost { background: color-mix(in srgb, currentColor 18%, transparent); }
}

@media (max-width: 900px) { .foot-cols a { display: inline-block; padding: 8px 0; } .foot-cols nav { gap: 2px; } }

.cm-note { display: none; font-size: var(--s-small); margin-top: 14px; }
@media (max-width: 900px) { .cm-note { display: block; } }
.faq-tile p + p { margin-top: 12px; }

.calc-bundle { font-size: var(--s-small); margin: 0 0 16px; max-width: 36ch; }
.calc-bundle b { font-weight: 700; }

/* links inside an opened question tile: white on the blue, never blue on blue */
.faq-tile[open] p a:not(.btn):not(.mtile):not(.lc):not(.fb):not(.zz) { color: #fff; text-decoration-color: var(--blue3); }
.faq-tile[open] p a:not(.btn):not(.mtile):not(.lc):not(.fb):not(.zz):hover { color: var(--blue4); text-decoration-color: #fff; }

.qswitch { margin-top: 14px; font-size: var(--s-small); font-weight: 600; }

/* Excel green and Power BI yellow, used sparingly as tiles and markers */
.t-x { background: var(--xl); color: #fff; }
.t-p { background: var(--pbi); color: var(--navy-ink); }
.t-xp { background: linear-gradient(90deg, var(--xl) 50%, var(--pbi) 50%); color: var(--navy-ink); }
.t-x :is(p, li) a:not(.btn):not(.mtile):not(.lc):not(.fb):not(.zz) { color: #fff; text-decoration-color: #fff; }
.t-p :is(p, li) a:not(.btn):not(.mtile):not(.lc):not(.fb):not(.zz) { color: var(--navy-ink); text-decoration-color: var(--navy-ink); }

/* "Which course?" menu with the two quizzes */
.navdd-menu.one { min-width: 220px; grid-template-columns: 1fr; gap: 0; padding: 20px 24px; }
@media (max-width: 900px) { .navdd-menu.one { min-width: 0; padding: 0 0 8px 16px; } }

.post-cover { margin: 0 0 32px; }
.post-cover img { width: 100%; height: auto; }

.blog-grid .blog-soon { grid-column: auto; }
.blog-grid .blog-soon-wide { grid-column: 1 / -1; }

/* blog home: a featured post and compact tiles */
.blog-head { padding-bottom: 8px; }
.blog-top { padding-top: 24px; padding-bottom: 8px; }
.blog-top .blog-feature { margin: 0; }
.blog-all { padding-top: 40px; }
.blog-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.blog-bar h2 { font-size: var(--s-h3); }
.blog-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-filter button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 0; border-radius: 0; background: var(--paper); color: var(--navy-ink); font-weight: 700; font-size: var(--s-small); cursor: pointer; transition: background-color .2s; }
.blog-filter button:hover { background: var(--blue5); }
.blog-filter button.on { background: var(--navy-ink); color: #fff; }
.blog-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.bcard { display: grid; grid-template-rows: auto 1fr; background: var(--paper); color: var(--navy-ink); text-decoration: none; transition: transform .35s var(--ease); }
.bcard:hover { transform: translateY(-4px); }
.bcard[hidden] { display: none; }
.bthumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--blue4); }
.bthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bbody { padding: 14px 16px 18px; display: grid; gap: 6px; align-content: start; }
.bmeta { font-size: 14px; font-weight: 700; color: var(--action); display: flex; align-items: center; flex-wrap: wrap; }
.bbody h3 { font-size: 18px; line-height: 1.2; letter-spacing: -0.01em; }
.blog-empty { margin-top: 8px; font-size: var(--s-body); max-width: 60ch; }
@media (max-width: 1100px) { .blog-list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .blog-list { grid-template-columns: 1fr 1fr; } .bbody h3 { font-size: 17px; } }
@media (max-width: 480px) { .blog-list { grid-template-columns: 1fr; } }
@media (prefers-color-scheme: dark) { .bcard { background: var(--paper); color: #fff; } .bmeta { color: var(--blue3); } .blog-filter button { color: #fff; } .blog-filter button.on { background: var(--action); } }
