/* Hallmark · checked: 2026-12-01 · genre: editorial (inferred) · surface: absolute
 * floor: 0 FAIL · fixed: 0 · structural: 0 printed
 * built: the project · redesign: polish · v2.0.0 */
/* Hallmark · waive 39b · the tall controls are the day cells of the November calendar, square in a seven-column grid · a day you can pick has to match the size of the days beside it */
/* Hallmark · dismissed 25 · the narrow measures are one-sentence captions inside the format cards and circles, set in the shared stylesheet */
/* Quant Bootcamp 2026 page. Same structure, tokens, type and motion as the home page (styles.css);
   this file holds only what the page adds. Every colour and face comes from the tokens in styles.css :root. */

/* ── Language switch: English by default, Thai on request ── */
html:not([data-lang="th"]) .l-th { display: none; }
html[data-lang="th"] .l-en { display: none; }
[lang="th"] { line-height: 1.7; }
h1 [lang="th"], h2 [lang="th"], h3 [lang="th"] { line-height: 1.3; }

.nav-tools { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; padding: 4px; border-radius: 8px; background: var(--surface); box-shadow: 0 0 0 1px var(--rule); }
.lang button {
  min-width: 48px; min-height: 40px; padding: 0 12px; border: 0; border-radius: 4px; cursor: pointer;
  background: transparent; color: var(--ink-2); font: 700 14px/1 var(--display);
  transition: background-color var(--duration-fast) var(--ease-smooth-out), color var(--duration-fast) var(--ease-smooth-out);
}
.lang button:hover { color: var(--ink); background: var(--tint); }
.lang button:active { background: var(--tint-2); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.lang button:disabled { color: var(--ink-2); cursor: not-allowed; }

/* ── 1. Hero: fourteen numbered modules orbit the mark ── */
.orbit--modules { --step: 25.714deg; --card: calc(var(--orbit) * 0.15); }
.orbit--modules .orbit-card { font: 700 calc(var(--card) * 0.36)/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.orbit--modules .orbit-core { width: calc(var(--orbit) * 0.46); }
.hero-terms--modules { height: 156px; max-width: 22vw; }
.hero-terms--modules ul { --roll: -364px; animation-duration: 36s; }
.hero-terms--modules li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── 2. The month: a calendar you can pick from ── */
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; width: min(460px, 100%); }
.cal-dow { font-size: 13px; line-height: 1; color: var(--ink-2); text-align: center; padding: 4px 0; }
.cal-day {
  aspect-ratio: 1; display: grid; place-items: center; border-radius: 8px; border: 0; padding: 0;
  background: var(--surface); color: var(--ink-2); font: 400 16px/1 var(--font); font-variant-numeric: tabular-nums;
}
.cal-day--off { background: transparent; }
button.cal-day { cursor: pointer; color: var(--ink); font-weight: 500; transition: transform var(--duration-fast) var(--ease-smooth-out); }
button.cal-day:hover { transform: scale(1.06); }
button.cal-day:active { transform: scale(0.98); }
button.cal-day--release { background: var(--primary); color: var(--on-primary); }
.cal-day--live { box-shadow: inset 0 0 0 2px var(--teal-ink); border-radius: 50%; }
button.cal-day--release.cal-day--live { box-shadow: inset 0 0 0 2px var(--primary), inset 0 0 0 5px var(--surface); border-radius: 8px; }
button.cal-day[aria-pressed="true"] { outline: 3px solid var(--ink); outline-offset: 3px; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.cal-legend span { display: inline-flex; align-items: center; gap: 8px; }
.cal-key { width: 16px; height: 16px; border-radius: 4px; background: var(--primary); }
.cal-key--live { background: var(--surface); box-shadow: inset 0 0 0 2px var(--teal-ink); border-radius: 50%; }
.cal-detail { width: min(400px, 100%); display: grid; gap: 12px; }
.cal-detail b { display: block; font-size: clamp(32px, 4vw, 48px); line-height: 1.15; font-family: var(--display); font-weight: 700; letter-spacing: 0; }
.cal-detail p { font-size: 18px; line-height: 1.5; color: var(--ink-2); }
.cal-detail > * { transition: opacity var(--duration-quick) var(--ease-in-out), transform var(--duration-quick) var(--ease-in-out); }
.cal-detail.is-out > * { opacity: 0; transform: translateY(var(--distance-micro)); }

/* ── 3. Format cards: a fact set in type inside each pill ── */
#formats .pill { width: clamp(168px, 16vw, 216px); color: var(--on-dark); }
#formats .pill--tint, #formats .pill--light, #formats .pill--white { color: var(--primary); }
#formats .pill-type { font-size: clamp(18px, 1.8vw, 24px); white-space: nowrap; }

/* ── 4. Counted: keep the two-language spans from picking up the note's caption style ── */
.access-note b span, .access-note .btn span { font-size: inherit; color: inherit; }

/* ── 5. Module wall: five columns, fill follows the release ── */
html.pinning #modules .wall { grid-template-columns: repeat(5, minmax(0, 1fr)); }
#modules .term { font-size: clamp(14px, 1.5vw, 22px); }
.term--tint { background: var(--tint); box-shadow: none; }

/* ── 6. Sessions scatter ── */
#sessions .scatter { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.lesson > span { font-size: 14px; line-height: 1.4; color: var(--ink-2); }

/* ── 7. Four theme circles ── */
#themes { --last: 3; }
.circles-title .lede { margin-top: 20px; max-width: 38ch; }

/* ── 9. Project rules ── */
.step p { font-size: 16px; line-height: 1.5; color: var(--ink-2); }

/* ── 10. The switch in the last headline is the language switch ── */
button.t-toggle { border: 0; padding: 0; font: inherit; cursor: pointer; }
button.t-toggle:hover { background: var(--ink-2); }
button.t-toggle[data-on="true"]:hover { background: var(--primary-hover); }
button.t-toggle:active .t-toggle-thumb { scale: 0.92; }
.paths-title .w--lang { color: var(--ink-2); }
html[data-lang="th"] .paths-title .w--lang { color: var(--ink); }

@media (max-width: 860px) {
  .nav-tools .btn { display: none; }
  .cal-grid { gap: 4px; }
  .hero-terms--modules { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lang button, button.cal-day, .cal-detail > * { transition: none; }
  button.cal-day:hover, button.cal-day:active { transform: none; }
}
