/* ==========================================================================
   Between Systems & Stories — stylesheet
   Formal and simple: one typeface (Fira Sans, with Fira Mono for small labels), one column, white page.
   The homepage hero uses the system monospace font, like a terminal.
   ========================================================================== */

:root {
  --white: #FFFFFF;
  --ink:   #20211F;   /* Ink Black — text */
  --stone: #A6A49B;   /* Stone Grey — minor text */
  --olive: #66715E;   /* Olive — the one accent */
  --sand:  #D8BFA0;   /* Warm Sand — highlights */
  --paper: #DAD8D0;   /* Paper Grey — rules */
  --ivory: #F4F1E9;   /* Archive Ivory — panels */
  --muted: #5E5D57;
  --line:  #E6E4DE;

  --sans: "Fira Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Fira Mono", ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --edge: clamp(1rem, .5rem + 2.5vw, 2.5rem);
  --wide: 68rem;
  --text: 44rem;
}

/* ---- Base -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body, h1, h2, h3, h4, p, ol, ul, dl, dd, figure, figcaption, table, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
body {
  background: var(--white); color: var(--ink);
  font-family: var(--sans); font-size: 1rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--sand); }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--paper); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--olive); text-decoration-color: var(--olive); }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }
strong, b { font-weight: 600; }
em, i { font-style: normal; }
[hidden] { display: none !important; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--white); padding: .5rem 1rem; z-index: 10; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* Small labels */
.mono { font-family: var(--sans); font-size: .8125rem; }
.caps { text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; font-weight: 500; }
.olive { color: var(--olive); }
.muted { color: var(--muted); }
.tbc { display: inline-block; font-size: .75rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border: 1px dashed var(--stone); padding: .1rem .45rem; white-space: nowrap; }

/* ---- Header & navigation ---------------------------------------------- */
.runhead { position: sticky; top: 0; z-index: 5; background: var(--white); display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: var(--wide); margin: 0 auto; padding: 1.1rem var(--edge); border-bottom: 1px solid var(--line); }
.runhead .t { font-weight: 600; font-size: 1rem; letter-spacing: -.01em; text-decoration: none; }
.runhead .t:hover { color: var(--ink); }
.runhead nav { display: flex; gap: 2rem; }
.runhead nav a { text-decoration: none; font-size: .9375rem; color: var(--muted); padding-block: .2rem; border-bottom: 1.5px solid transparent; }
.runhead nav a:hover { color: var(--ink); }
.runhead nav a[aria-current] { color: var(--ink); font-weight: 500; border-bottom-color: var(--ink); }
.runhead .p { display: none; }
.runhead .menu { display: none; background: none; border: 1px solid var(--paper); border-radius: 4px; font: inherit; font-size: .875rem; padding: .3rem .75rem; cursor: pointer; color: var(--ink); }

/* ---- Page layout: one column ------------------------------------------ */
.paper { max-width: var(--wide); margin: 0 auto; padding: 0 var(--edge); }
.row { max-width: var(--text); }
.row > .left { margin-bottom: .5rem; font-size: .75rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--olive); text-align: left; }
.row > .side { margin-top: 1.25rem; padding-top: .75rem; border-top: 1px solid var(--line); font-size: .8125rem; line-height: 1.55; color: var(--muted); }
.side .note { position: relative; padding-left: 1.1rem; }
.side .note + .note { margin-top: .4rem; }
.side .note sup { position: absolute; left: 0; top: .35em; font-size: .7rem; color: var(--olive); }
sup.ref { font-size: .65rem; color: var(--olive); margin-left: .1em; }
.pull { font-size: 1.05rem; line-height: 1.5; color: var(--ink); }

/* ---- Page title -------------------------------------------------------- */
.titleblock { padding-top: clamp(2.75rem, 2rem + 4vw, 5rem); padding-bottom: 2rem; }
.titleblock h1 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem); font-weight: 600; line-height: 1.12; letter-spacing: -.025em; }
.titleblock h1 em { color: var(--muted); font-weight: 400; }
.titleblock .sub { margin-top: 1rem; font-size: 1.125rem; line-height: 1.55; color: var(--muted); }
.byline { display: flex; flex-wrap: wrap; gap: .75rem 2.5rem; margin-top: 1.75rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .875rem; }
.byline div span { display: block; font-size: .75rem; color: var(--muted); }
.byline b { font-weight: 600; }

/* ---- Sections ---------------------------------------------------------- */
.sec { padding-block: 2.25rem; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec h2 { font-size: clamp(1.35rem, 1.2rem + .6vw, 1.65rem); font-weight: 600; line-height: 1.25; letter-spacing: -.015em; }
.secnum { font-variant-numeric: tabular-nums; }
.sec .main > p { margin-top: .9rem; }
.sec .main > p:first-of-type { margin-top: 1rem; }
.subhead { margin-top: 2.25rem; font-size: 1.0625rem; font-weight: 600; }
.lead-s { font-size: 1.0625rem; color: var(--muted); }

/* Abstract (homepage) */
.abstract { padding-block: 2rem 2.5rem; border-top: 1px solid var(--line); }
.abstract p.lead { font-size: 1.125rem; line-height: 1.6; }
.abstract p + p { margin-top: .9rem; }
.keywords { margin-top: 1.25rem; padding-top: .75rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .8125rem; }
.keywords b { color: var(--ink); font-weight: 600; }

/* Diagram (homepage) */
.fig1 { max-width: var(--wide); padding-block: 1rem 2.5rem; }
.fig1 .frame { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.25rem 0; }
.fig1 svg { width: 100%; height: auto; display: block; }
.fig1 figcaption { margin-top: .75rem; font-size: .8125rem; color: var(--muted); max-width: var(--text); }
.fig1 figcaption b, caption b { font-weight: 600; color: var(--ink); margin-right: .35rem; }
svg text { font-family: var(--sans) !important; font-style: normal !important; }
.node-l { font-weight: 500; font-size: 15px; fill: var(--ink); }
.node-r { font-size: 15px; fill: var(--olive); }

/* ---- Tables ------------------------------------------------------------ */
table { width: 100%; border-collapse: collapse; margin-top: 1.25rem; font-size: .9375rem; }
caption { caption-side: top; text-align: left; font-size: .8125rem; color: var(--muted); padding-bottom: .5rem; }
thead th { font-size: .75rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: left; padding: .5rem 0; border-bottom: 1px solid var(--ink); }
td { padding: .7rem 1rem .7rem 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
td.v { font-weight: 600; white-space: nowrap; }
td.d { font-size: .8125rem; color: var(--muted); white-space: nowrap; }
td.k { font-size: .8125rem; color: var(--muted); white-space: nowrap; width: 1%; padding-right: 1.5rem; }
table.spec { margin-top: 1rem; font-size: .9375rem; }
table.spec tbody tr:first-child td { border-top: 1px solid var(--line); }
.outcome { font-weight: 600; }

/* ---- Lists ------------------------------------------------------------- */
.items { margin-top: 1.25rem; counter-reset: i; border-top: 1px solid var(--line); }
.items > li { padding: .9rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 2rem 1fr; gap: .5rem; }
.items > li::before { counter-increment: i; content: counter(i) "."; font-size: .875rem; color: var(--stone); padding-top: .05rem; font-variant-numeric: tabular-nums; }
.items h3 { font-size: 1rem; font-weight: 600; line-height: 1.4; }
.items h3 a { text-decoration: none; }
.items p { margin-top: .2rem; font-size: .9375rem; color: var(--muted); }
.items > li.soon h3 { color: var(--muted); font-weight: 500; }

.points { margin-top: .75rem; }
.points li { position: relative; padding-left: 1.1rem; font-size: .9375rem; line-height: 1.6; }
.points li + li { margin-top: .3rem; }
.points li::before { content: ""; position: absolute; left: 0; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--stone); }

.refs { margin-top: 1rem; }
.refs li { padding: .35rem 0 .35rem 2.25rem; text-indent: -2.25rem; font-size: .9375rem; }
.refs li span { display: inline-block; width: 2.25rem; text-indent: 0; color: var(--stone); font-size: .875rem; }

.qs { margin-top: .75rem; padding-left: 1.3rem; list-style: decimal; }
.qs li { font-size: .9375rem; line-height: 1.55; padding-left: .2rem; }
.qs li + li { margin-top: .3rem; }
.qs li::marker { color: var(--stone); }

/* Long entries (classes, roles) */
.entry + .entry { margin-top: 2.5rem; }
.entry .kind { font-size: .75rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--olive); margin-bottom: .3rem; }
.entry h3 { font-size: 1.1875rem; font-weight: 600; line-height: 1.35; }
.entry h3 em, .entry h3 .muted { font-weight: 400; }
.entry h3 a { text-decoration: none; }
.entry p { margin-top: .6rem; }

/* CV references with results (homepage) */
.cv { margin-top: 1.25rem; border-top: 1px solid var(--ink); }
.cv > li { display: grid; grid-template-columns: 2.25rem 1fr; gap: .5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.cv__n { font-size: .875rem; color: var(--stone); }
.cv h3 { font-size: 1.0625rem; font-weight: 600; line-height: 1.4; }
.cv h3 i { font-weight: 400; color: var(--muted); }
.cv p { margin-top: .2rem; color: var(--muted); font-size: .9375rem; }
.results { margin-top: .6rem; }
.results li { position: relative; padding-left: 1.1rem; font-size: .9375rem; line-height: 1.55; }
.results li + li { margin-top: .3rem; }
.results li::before { content: ""; position: absolute; left: 0; top: .65em; width: 5px; height: 5px; border-radius: 50%; background: var(--olive); }
.results b { font-weight: 600; margin-right: .2rem; }

/* Notice / empty state */
.notice { margin-top: 1.25rem; padding: 1rem 1.25rem; background: var(--ivory); border-left: 3px solid var(--olive); }
.notice h3 { font-size: 1rem; font-weight: 600; }
.notice p { margin-top: .4rem; color: var(--muted); font-size: .9375rem; }

/* Buttons */
.btn { display: inline-block; margin-top: 1.5rem; padding: .75rem 1.25rem; background: var(--ink); color: var(--white); font: inherit; font-size: .9375rem; font-weight: 500; text-decoration: none; border: 0; border-radius: 4px; cursor: pointer; }
.btn:hover { background: var(--olive); color: var(--white); }
.btn:disabled { opacity: .6; cursor: wait; }

/* ---- Homepage hero: terminal ------------------------------------------ */
.hero { position: relative; min-height: min(78vh, 44rem); display: flex; align-items: center; padding-block: clamp(2.5rem, 2rem + 4vh, 4.5rem); border-bottom: 1px solid var(--line); cursor: text; }
.hero__screen { width: 100%; max-width: 46rem; font-family: var(--mono); font-size: clamp(.875rem, .8rem + .3vw, 1.0625rem); line-height: 1.8; }
.hero__screen p { margin: 0; }
.hero .sys { color: var(--stone); font-size: .85em; margin-bottom: 1em; }
.hero .cmd { margin-top: 1.1em; color: var(--ink); }
.hero .sys + .cmd { margin-top: 0; }
.hero .pr { color: var(--olive); }
.hero .out { color: var(--muted); }
.hero .big { font-family: var(--sans); color: var(--ink); font-weight: 600; font-size: clamp(1.9rem, 1.1rem + 3vw, 3.25rem); line-height: 1.12; letter-spacing: -.03em; }
.hero .big.it { color: var(--olive); font-style: normal; }
.hero .big:first-of-type { margin-top: .25em; }
.hero .ls { display: flex; flex-wrap: wrap; gap: .2em 2em; }
.hero .ls a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--paper); }
.hero .ls a:hover { color: var(--olive); border-bottom-color: var(--olive); }
.hero .caret { display: inline-block; width: .6em; height: 1.15em; background: var(--ink); vertical-align: -.2em; animation: blink 1.05s steps(1) infinite; }
.hero .typing .caret { animation: none; }
.hero__hint { position: absolute; right: 0; bottom: 1rem; font-size: .75rem; color: var(--stone); transition: opacity .4s; }
.hero__hint.gone { opacity: 0; }
.js .hero .pending { visibility: hidden; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero .caret { animation: none; } }

/* ---- Testimonials ------------------------------------------------------ */
.tms { margin-top: 1.25rem; border-top: 1px solid var(--ink); }
.tm { margin: 0; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.tm blockquote { font-size: 1rem; line-height: 1.65; color: var(--ink); }
.tm blockquote::before { content: "“"; } .tm blockquote::after { content: "”"; }
.tm figcaption { margin-top: .7rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; }
.tm__name { font-size: .875rem; font-weight: 600; }
.tm__tag { font-size: .75rem; color: var(--olive); border: 1px solid var(--line); border-radius: 3px; padding: .1rem .45rem; }
.redact { color: var(--olive); }

/* ---- Power BI class page ---------------------------------------------- */
html:not([data-lang="en"]) [data-l="en"] { display: none !important; }
html[data-lang="en"] [data-l="id"] { display: none !important; }
.langsw { display: inline-flex; border: 1px solid var(--paper); border-radius: 4px; overflow: hidden; margin-bottom: 1.25rem; }
.langsw button { font: inherit; font-size: .8125rem; font-weight: 500; padding: .3rem .8rem; background: var(--white); color: var(--muted); border: 0; cursor: pointer; }
.langsw button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.pbi-head h1 em { display: block; font-size: .5em; margin-top: .4em; letter-spacing: -.01em; }
.pbi-facts { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 1rem 1.5rem !important; }
.pbi-facts .k { font-size: .75rem; color: var(--muted); }
.items.about > li::before, .items.syl > li::before { content: none; }
.items.about > li, .items.syl > li { grid-template-columns: 1fr; }
.syl__date { font-size: .75rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .15rem; }
.syl__sub { font-weight: 400; color: var(--muted); }
.bonus { margin-top: 1.75rem; padding: 1rem 1.25rem; background: var(--ivory); border-left: 3px solid var(--olive); }
.bonus h3 { font-size: 1rem; font-weight: 600; margin-top: .2rem; }
.bonus p:last-child { margin-top: .4rem; font-size: .9375rem; }
.shots { margin-top: 1.5rem; display: grid; gap: 2rem; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.shot figcaption { margin-top: .5rem; font-size: .875rem; color: var(--muted); }
.shot figcaption b { display: block; color: var(--ink); font-weight: 600; }
.warn { padding: .85rem 1rem; background: #FBF6EF; border-left: 3px solid var(--sand); font-size: .9375rem; }
.prep { margin-top: 1rem; }
.prep li { color: var(--muted); }
.prep li b { color: var(--ink); }

/* Registration form */
.reg { margin-top: 1.75rem; padding: clamp(1.1rem, .8rem + 1.5vw, 1.75rem); border: 1px solid var(--paper); border-radius: 6px; display: grid; gap: 1.25rem; }
.reg__price b { font-size: 1.25rem; margin: 0 .25rem; }
.f { display: grid; gap: .4rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.f__l { font-size: .875rem; font-weight: 600; color: var(--ink); padding: 0; }
.f input[type=text], .f input[type=tel], .f input[type=email], .f input[type=file] { width: 100%; min-width: 0; font: inherit; font-size: 1rem; padding: .65rem .8rem; border: 1px solid var(--paper); border-radius: 4px; background: var(--white); color: var(--ink); }
.f input:focus-visible { outline: 2px solid var(--olive); outline-offset: 0; border-color: var(--olive); }
.f__hint { font-size: .8125rem; }
.opt { display: flex; align-items: flex-start; gap: .6rem; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; font-size: .9375rem; line-height: 1.45; }
.opt:has(input:checked) { border-color: var(--olive); background: #F6F7F3; }
.opt input { margin-top: .25em; accent-color: var(--olive); flex: none; }
.opt__note { font-size: .8125rem; color: #8A5A2B; background: #FBF6EF; padding: .5rem .75rem; border-radius: 4px; }
.confirm { border: 0; padding: 0; }
.reg__err { color: #9B2F2F; font-size: .9375rem; }
.reg__done h3 { font-size: 1.125rem; font-weight: 600; }
.reg__done p { margin-top: .4rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---- Footer ------------------------------------------------------------ */
footer { max-width: var(--wide); margin: 3rem auto 0; padding: 1.25rem var(--edge) 2rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: .75rem 1.5rem; flex-wrap: wrap; font-size: .8125rem; color: var(--muted); }
footer a { text-decoration: none; }
footer > span:nth-child(2) { flex: 1 1 22rem; max-width: 40rem; text-align: center; }
@media (max-width: 44rem) { footer > span:nth-child(2) { text-align: left; } }

/* ---- Small screens ----------------------------------------------------- */
@media (max-width: 44rem) {
  .runhead { flex-wrap: wrap; }
  .runhead .menu { display: block; }
  .runhead nav { display: none; flex-basis: 100%; flex-direction: column; gap: 0; padding-top: .5rem; }
  .runhead nav.open { display: flex; }
  .runhead nav a { padding: .6rem 0; border-bottom: 1px solid var(--line); }
  .runhead nav a[aria-current] { border-bottom-color: var(--line); color: var(--olive); }
  td.d { display: none; }
  td.v { white-space: normal; }
  .fig1 .frame { overflow-x: auto; }
  .fig1 svg { min-width: 560px; }
  .hero { min-height: auto; }
  .hero__hint { display: none; }
}

/* Collapsible sections (Power BI page) */
.fold > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: "+"; flex: none; font-size: 1.5rem; font-weight: 400; line-height: 1; color: var(--olive); }
.fold[open] > summary::after { content: "\2212"; }
.fold > summary:hover h2 { color: var(--olive); }
.fold > p { margin-top: .9rem; }
.fold > p:first-of-type { margin-top: 1rem; }

/* No visible page scrollbar (the page still scrolls) */
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

/* Schedule options (Power BI page) */
.scheds { margin-top: 1.25rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); gap: 1rem; }
.schedc { padding: 1rem 1.1rem 1.1rem; border: 1px solid var(--paper); border-radius: 6px; background: var(--white); }
.schedc__n { margin: 0; }
.schedc__days { margin-top: .25rem; font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
.schedc__time { margin-top: .2rem; font-size: .9375rem; }
.schedc__range { margin-top: .2rem; font-size: .8125rem; }
.schedc__note { margin-top: .6rem; font-size: .8125rem; color: #8A5A2B; }
.opt__sub { display: block; font-size: .8125rem; color: var(--muted); }
.schedl li + li { margin-top: .6rem; }
.schedl li > * { display: block; }
.schedl .muted { font-size: .8125rem; }
@media (max-width: 44rem) {
  table.spec tr { display: block; padding: .7rem 0; border-bottom: 1px solid var(--line); }
  table.spec tbody tr:first-child { border-top: 1px solid var(--line); }
  table.spec td { display: block; padding: 0; border: 0; width: auto; white-space: normal; }
  table.spec tbody tr:first-child td { border-top: 0; }
  table.spec td.k { margin-bottom: .2rem; }
}

/* ---- Teaching page: friendlier layout ---------------------------------- */
.t-page { max-width: var(--wide); padding-top: 0; }
.t-hero { padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0 2rem; max-width: 46rem; }
.t-hero .eyebrow { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--olive); margin: 0 0 .75rem; }
.t-hero h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); font-weight: 600; line-height: 1.12; letter-spacing: -.025em; }
.t-hero h1 em { display: block; font-style: normal; font-weight: 400; color: var(--muted); font-size: .62em; margin-top: .35em; letter-spacing: -.01em; }
.t-lead { margin-top: 1.1rem; font-size: 1.125rem; line-height: 1.6; color: var(--muted); }
.t-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.chip { font-size: .875rem; font-weight: 500; padding: .4em .95em; border: 1.5px solid var(--ink); border-radius: 999px; }
.chip--fill { background: var(--ink); color: var(--ivory); }

.t-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin: 1.5rem 0 0; }
.fact { background: var(--ivory); border-radius: 12px; padding: 1rem 1.1rem; }
.fact__k { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--olive); }
.fact__v { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; margin-top: .25rem; line-height: 1.2; }
.fact__s { font-size: .8125rem; color: var(--muted); margin-top: .2rem; line-height: 1.4; }

.t-sec { padding: 2.75rem 0 0; max-width: var(--wide); }
.t-sec .secnum { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--olive); margin: 0 0 .4rem; }
.t-sec h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); font-weight: 600; line-height: 1.25; letter-spacing: -.015em; margin-bottom: 1rem; }

.t-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.t-card { border: 1.5px solid var(--paper); border-radius: 14px; padding: 1.1rem 1.15rem; background: var(--white); }
.t-card__n { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--olive); }
.t-card h3 { font-size: 1.1875rem; font-weight: 600; margin-top: .3rem; line-height: 1.3; }
.t-card__time { margin-top: .6rem; font-size: .9375rem; font-weight: 500; }
.t-card__range { margin-top: .2rem; font-size: .875rem; color: var(--muted); }

.t-steps { display: grid; gap: .85rem; }
.t-steps li { display: grid; grid-template-columns: 2.4rem 1fr; gap: .9rem; align-items: start; }
.t-steps__i { width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--ink); color: var(--ivory); display: grid; place-items: center; font-weight: 600; font-size: .9375rem; }
.t-steps b { display: block; font-size: 1.0625rem; font-weight: 600; }
.t-steps div > span { display: block; color: var(--muted); font-size: .9375rem; margin-top: .15rem; line-height: 1.5; }
.t-note { margin-top: 1.25rem; padding: .9rem 1.1rem; background: var(--ivory); border-left: 3px solid var(--olive); border-radius: 0 10px 10px 0; font-size: .9375rem; color: var(--ink); }

.t-cta { display: inline-flex; align-items: center; gap: .4em; margin-top: .75rem; background: var(--ink); color: var(--ivory); font-weight: 600; font-size: 1rem; padding: .85em 1.3em; border-radius: 10px; text-decoration: none; }
.t-cta:hover { background: var(--olive); color: var(--white); }

.t-q { border-bottom: 1px solid var(--line); padding: .95rem 0; }
.t-q:first-of-type { border-top: 1px solid var(--line); }
.t-q summary { list-style: none; cursor: pointer; font-weight: 600; font-size: 1rem; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.t-q summary::-webkit-details-marker { display: none; }
.t-q summary::after { content: "+"; flex: none; color: var(--olive); font-size: 1.4rem; line-height: 1; font-weight: 400; }
.t-q[open] summary::after { content: "−"; }
.t-q p { margin-top: .5rem; color: var(--muted); font-size: .9375rem; }

@media (max-width: 44rem) {
  .t-facts { grid-template-columns: 1fr; gap: .6rem; }
  .t-cards { grid-template-columns: 1fr; }
  .fact { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: baseline; padding: .85rem 1rem; }
  .fact__k { grid-row: span 2; }
  .fact__v { margin-top: 0; font-size: 1.25rem; }
  .fact__s { margin-top: 0; grid-column: 2; }
  .t-hero { padding-top: 2rem; }
  .t-cta { width: 100%; justify-content: center; }
}

/* ---- Desktop grid: label | text | notes, aligned to the header edges ---- */
@media (min-width: 62rem) {
  .paper > .row:not(.fig1):not(.t-hero):not(.t-sec) {
    max-width: none;
    display: grid;
    grid-template-columns: 11rem minmax(0, 1fr) 15rem;
    column-gap: 3rem;
    align-items: start;
  }
  .paper > .row > .left { grid-column: 1; margin-bottom: 0; }
  .paper > .row > .main { grid-column: 2; min-width: 0; }
  .paper > .row > .side { grid-column: 3; margin-top: .35rem; padding-top: 0; border-top: 0; }
  .paper > .row.titleblock > .main { grid-column: 2 / span 2; }
  .paper > .row.titleblock { grid-template-columns: 11rem minmax(0, 1fr); }
  .fig1 { display: block; }
  .fig1 .frame { max-width: var(--wide); }
  .fig1 figcaption { max-width: 44rem; }
}

/* Power BI page: same cards as Teaching */
.schedc { padding: 1.1rem 1.15rem; border: 1.5px solid var(--paper); border-radius: 14px; background: var(--white); }
.scheds { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 44rem) { .scheds { grid-template-columns: 1fr; } }
.t-sec .main > p:first-of-type { margin-top: 0; }

/* ---- Bottom navigation (mobile) ---------------------------------------- */
.bottomnav { display: none; }
@media (max-width: 44rem) {
  .runhead .menu { display: none; }
  .bottomnav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    justify-content: space-around; gap: .25rem;
    padding: .45rem .5rem calc(.45rem + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
  }
  .bottomnav a {
    flex: 1; text-align: center; text-decoration: none;
    font-size: .75rem; color: var(--muted); padding: .5rem .2rem; border-radius: 8px;
  }
  .bottomnav a:hover { color: var(--ink); }
  .bottomnav a[aria-current] { color: var(--ink); font-weight: 600; background: var(--ivory); }
  body { padding-bottom: calc(4.25rem + env(safe-area-inset-bottom)); }
}

/* Full schedule: visible but not selectable */
.opt:has(input:disabled) { opacity: .55; cursor: not-allowed; background: var(--ivory); }
.opt input:disabled { cursor: not-allowed; }
.opt__full { font-size: .8125rem; font-weight: 600; color: #9B2F2F; }

/* ---- Power BI page: more structure, cards, and rhythm ------------------- */
.t-page .t-sec { margin-top: 1.25rem; padding: 1.35rem 1.1rem 1.25rem; border-radius: 18px; background: var(--white); border: 1px solid var(--line); }
.t-page .t-sec + .t-sec { border-top: 1px solid var(--line); }
.t-page .t-sec .secnum { margin-bottom: .35rem; }
.t-page .t-sec > h2, .t-page .t-sec > p.muted { margin-bottom: .6rem; }

/* Collapsible headings read as tappable bars */
.t-page .fold { border: 0; }
.t-page .fold > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem 1rem; border-radius: 14px; background: var(--ivory); cursor: pointer;
  border: 1.5px solid transparent; transition: background .2s, border-color .2s;
}
.t-page .fold > summary h2 { font-size: clamp(1.1rem, 1rem + .6vw, 1.35rem); margin: 0; }
.t-page .fold > summary:hover { border-color: var(--paper); }
.t-page .fold[open] > summary { background: var(--white); border-color: var(--olive); }
.t-page .fold > summary::after {
  content: "+"; flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: var(--ivory);
  font-size: 1.2rem; line-height: 1; font-weight: 400;
}
.t-page .fold[open] > summary::after { content: "−"; background: var(--olive); }
.t-page .fold > :where(:not(summary)) { padding: 1rem .2rem .25rem; }
.t-page .fold > summary::marker { content: ""; }

/* Syllabus and "about" lists become cards */
.t-page .items.syl > li, .t-page .items.about > li {
  border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.05rem; margin-top: .7rem; background: var(--white);
}
.t-page .items.syl, .t-page .items.about { border-top: 0; margin-top: .5rem; }
.t-page .syl__date { display: inline-block; background: var(--ivory); padding: .2rem .55rem; border-radius: 999px; margin-bottom: .45rem; }
.t-page .items.syl h3 { font-size: 1.05rem; }

/* FAQ as cards */
.t-page .t-q { border: 1px solid var(--line); border-radius: 14px; padding: .85rem 1rem; margin-top: .6rem; background: var(--white); }
.t-page .t-q[open] { border-color: var(--olive); background: #FBFAF6; }
.t-page .t-q:first-of-type { border-top: 1px solid var(--line); }
.t-page .t-q summary { font-size: .975rem; }

/* Registration and notes */
.t-page .reg { margin-top: 1rem; }
.t-page .bonus { margin-top: 1.25rem; }
.t-page .shots { gap: 1.25rem; }
.t-page .shot img { border-radius: 12px; }

@media (max-width: 44rem) {
  .t-page .t-sec { padding: 1.1rem .9rem 1rem; border-radius: 16px; margin-top: 1rem; }
  .t-page .fold > summary { padding: .75rem .85rem; }
  .t-page .fold > :where(:not(summary)) { padding-top: .85rem; }
  .t-page .items.syl > li, .t-page .items.about > li { padding: .9rem .9rem; }
  .t-page .t-q { padding: .75rem .85rem; }
  .t-page .hero, .t-page .t-hero { padding-bottom: 1.25rem; }
}

/* ---- Power BI page: mobile UX polish ------------------------------------ */
.t-page section { scroll-margin-top: 5rem; }
/* Numbered list stays inside its card */
.t-page .qs { list-style: none; padding-left: 0; counter-reset: q; margin-top: .6rem; }
.t-page .qs li { position: relative; padding: .55rem 0 .55rem 2.1rem; border-top: 1px solid var(--line); }
.t-page .qs li:first-child { border-top: 0; }
.t-page .qs li::before { counter-increment: q; content: counter(q); position: absolute; left: 0; top: .55rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--ivory); color: var(--olive); font-size: .8125rem; font-weight: 600; display: grid; place-items: center; }
/* Tighter, even rhythm inside open sections */
.t-page .fold .main > *:first-child, .t-page .fold > p:first-of-type { margin-top: 0; }
.t-page .lead-s { font-size: 1rem; margin-top: 0; }
.t-page .lead-s + p { margin-top: .5rem; }
.t-page .subhead { margin-top: 1.5rem; font-size: 1rem; }
.t-page .fold > :where(:not(summary)) { padding-top: .75rem; }
.t-page .fold > p + p, .t-page .fold > p + .scheds, .t-page .fold > p + ol, .t-page .fold > p + ul { margin-top: .6rem; }
/* Syllabus: subtitle on its own line, smaller */
.t-page .syl__sub { display: block; font-size: .875rem; margin-top: .15rem; }
.t-page .items.syl p { font-size: .875rem; }
/* Registration steps */
.t-flow { list-style: none; padding: 0; margin: .25rem 0 0; counter-reset: f; display: grid; gap: .6rem; }
.t-flow li { position: relative; padding: .7rem .85rem .7rem 2.9rem; border-radius: 12px; background: var(--ivory); }
.t-flow li::before { counter-increment: f; content: counter(f); position: absolute; left: .8rem; top: .75rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--ink); color: var(--ivory); font-weight: 600; font-size: .8125rem; display: grid; place-items: center; }
.t-flow b { display: block; font-size: .9375rem; }
.t-flow span span, .t-flow li > span { font-size: .875rem; color: var(--muted); }
.t-small { margin-top: .75rem; font-size: .8125rem; color: var(--muted); }
/* Schedule cards: full one is muted */

/* ---- Power BI page: report-canvas layout -------------------------------- */
/* Modelled on a Power BI report page: an ivory canvas with white visuals on it.
   Section = canvas (filled). Things inside = visuals (white tiles on a grid).
   Olive = weekday / primary, Warm Sand = weekend. Motion only on open. */
.t-page { --canvas: var(--ivory); --tile: var(--white); --r-lg: 18px; --r: 12px; }

/* Hero: text left, summary "card visuals" right */
.t-page .t-hero { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 2.5rem; align-items: start; }
.t-page .t-hero > * { min-width: 0; }
.t-page .t-facts {
  margin-top: 1.5rem; padding: .75rem; gap: .6rem; border: 0; border-radius: var(--r-lg);
  background: var(--canvas); grid-template-columns: 1fr 1fr;
}
.t-page .fact { display: flex; flex-direction: column; gap: .15rem; background: var(--tile); border: 0; border-radius: var(--r); padding: 1rem 1.1rem; }
.t-page .fact + .fact { border-left: 0; padding-left: 1.1rem; }
.t-page .fact:first-child { grid-column: 1 / -1; }
.t-page .fact__v { order: -1; margin: 0; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.t-page .fact:first-child .fact__v { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.6rem); color: var(--olive); }
.t-page .fact__k { color: var(--muted); letter-spacing: .06em; }
@media (min-width: 62rem) {
  .t-page .t-hero { grid-template-columns: minmax(0, 1fr) 22rem; }
  .t-page .t-hero > * { grid-column: 1; }
  .t-page .t-facts { grid-column: 2; grid-row: 1 / span 7; margin-top: 0; align-self: center; }
}

/* Sections: filled canvases */
.t-page .t-sec { margin: 1rem 0 0; padding: 0 1.25rem; border: 0; border-radius: var(--r-lg); background: var(--canvas); transition: background .2s; }
.t-page .t-sec + .t-sec, .t-page .t-sec:last-of-type { border: 0; }
.t-page .fold > summary { padding: 1.15rem 0; border: 0; border-radius: 0; background: none; }
.t-page .fold > summary:hover, .t-page .fold[open] > summary { background: none; border: 0; }
.t-page .fold > summary h2 { transition: color .15s; }
.t-page .fold > summary:hover h2 { color: var(--olive); }
.t-page .fold > summary::after {
  content: "+"; width: 2rem; height: 2rem; border-radius: 50%; background: var(--tile); color: var(--ink);
  font-size: 1.2rem; display: grid; place-items: center; transition: transform .25s, background .2s, color .2s;
}
.t-page .fold[open] > summary::after { content: "+"; transform: rotate(45deg); background: var(--ink); color: var(--ivory); }
.t-page .fold > summary:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; border-radius: 6px; }
.t-page .fold > :where(:not(summary)) { padding: 0; }
.t-page .fold[open] { padding-bottom: 1.25rem; }
.t-page .fold[open] > :not(summary) { animation: pbi-in .35s ease both; }
@keyframes pbi-in { from { opacity: 0; transform: translateY(6px); } }

/* Shared tile */
.t-page .items.about > li, .t-page .items.syl > li, .t-page .schedc, .t-page .shot, .t-page .reg,
.t-page .t-q, .t-flow li, .t-page .qs, .t-page .points.prep > li {
  background: var(--tile); border: 0; border-radius: var(--r); box-shadow: none;
}

/* About: bento grid, 4 small + 2 wide */
.t-page .items.about { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; margin-top: .9rem; list-style: none; padding: 0; }
.t-page .items.about > li { margin: 0; padding: 1rem 1.05rem; }
.t-page .items.about > li:first-child { padding-top: 1rem; }
.t-page .items.about > li:nth-child(n+5) { grid-column: span 2; }
.t-page .items.about > li:nth-child(5) { background: var(--ink); color: var(--ivory); }
.t-page .items.about > li:nth-child(5) p { color: #CFCBC0; }
.t-page .items.about h3 { font-size: 1rem; }
.t-page .items.about p { font-size: .875rem; margin-top: .3rem; }
.t-page .qs { padding: .4rem 1.05rem; margin-top: .6rem; }
.t-page .qs li { padding: .65rem 0 .65rem 1.9rem; }
.t-page .qs li::before { top: .65rem; background: none; width: auto; height: auto; display: block; font-family: var(--mono); color: var(--olive); }

/* Schedules: date bar drawn to scale, 1 Nov 2026 – 31 Jan 2027 */
.t-page .scheds { gap: .6rem; margin-top: .9rem; }
.t-page .schedc { display: flex; flex-direction: column; padding: 1rem 1.05rem; position: relative; transition: transform .2s; }
.t-page .schedc:hover { transform: translateY(-2px); }
.t-page .schedc__range { margin-top: .45rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.t-page .schedc__note { margin-top: .35rem; }
.tl { --c: var(--olive); position: relative; height: 6px; margin-top: auto; border-radius: 3px; background: var(--line); }
.t-page .schedc .tl { margin-top: 1rem; }
.schedc--we .tl { --c: var(--sand); }
.tl i { position: absolute; top: 0; bottom: 0; left: var(--s); width: calc(var(--e) - var(--s)); border-radius: 3px; background: var(--c); transform-origin: left; }
.t-page .fold[open] .tl i { animation: pbi-grow .6s .15s cubic-bezier(.2,.7,.2,1) both; }
@keyframes pbi-grow { from { transform: scaleX(0); } }
.tl__m { position: relative; height: 1rem; margin-top: .3rem; font-family: var(--mono); font-size: .6875rem; color: var(--stone); }
.tl__m > span { position: absolute; top: 0; }
.tl__m > span:nth-child(2) { left: 32.6%; }
.tl__m > span:nth-child(3) { left: 66.3%; }
.tl__legend { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin-top: .6rem; font-size: .8125rem; color: var(--muted); }
.tl__legend .k { display: inline-flex; align-items: center; gap: .4rem; }
.tl__legend .k::before { content: ""; width: .9rem; height: 6px; border-radius: 3px; background: var(--olive); }
.tl__legend .k--we::before { background: var(--sand); }
.t-page .schedc[data-state="full"] { background: transparent; border: 1px dashed var(--paper); }
.t-page .schedc[data-state="full"]:hover { transform: none; }
.t-page .schedc[data-state="full"] h3, .t-page .schedc[data-state="full"] .schedc__time, .t-page .schedc[data-state="full"] .schedc__range { color: var(--stone); }
.t-page .schedc[data-state="full"] .tl i { background: var(--paper); }
/* Seat state badges, set by power-bi.js from /assets/data/kuota.json */
.kuota { font-weight: 600; }
.kuota--full { color: #9B2F2F; }
.kuota--waitlist { color: #8A5A2B; }

/* Syllabus: 3 × 2 grid, each tile shows where it sits in the 6 meetings */
.t-page .items.syl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin-top: .9rem; padding: 0; list-style: none; }
.t-page .items.syl > li { margin: 0; padding: 1rem 1.05rem; position: relative; }
.t-page .items.syl > li:first-child { padding-top: 1rem; }
.t-page .items.syl > li::before {
  content: ""; display: block; height: 4px; margin-bottom: .8rem; border-radius: 2px;
  background: linear-gradient(90deg, var(--olive) calc(var(--n) / 6 * 100%), var(--line) 0);
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 calc(100% / 6 - 4px), transparent 0 calc(100% / 6));
          mask: repeating-linear-gradient(90deg, #000 0 calc(100% / 6 - 4px), transparent 0 calc(100% / 6));
}
.t-page .items.syl > li:nth-child(1) { --n: 1; } .t-page .items.syl > li:nth-child(2) { --n: 2; }
.t-page .items.syl > li:nth-child(3) { --n: 3; } .t-page .items.syl > li:nth-child(4) { --n: 4; }
.t-page .items.syl > li:nth-child(5) { --n: 5; } .t-page .items.syl > li:nth-child(6) { --n: 6; }
.t-page .syl__date { display: block; background: none; padding: 0; border-radius: 0; margin-bottom: .25rem; font-size: .75rem; letter-spacing: .04em; }
.t-page .bonus { margin-top: .6rem; padding: 1.15rem 1.2rem; border: 0; border-radius: var(--r); background: var(--olive); color: var(--white); }
.t-page .bonus .olive { color: var(--sand); }
.t-page .bonus p { color: #E9ECE4; }
.t-page .bonus h3 { color: var(--white); }

/* Example dashboards */
.t-page .shots { gap: .6rem; margin-top: .9rem; }
.t-page .shot { padding: .6rem; overflow: hidden; }
.t-page .shot img { border-radius: 8px; border: 0; transition: transform .4s; }
.t-page .shot a { display: block; overflow: hidden; border-radius: 8px; }
.t-page .shot:hover img { transform: scale(1.02); }
.t-page .shot figcaption { padding: .6rem .35rem .2rem; }

/* What to prepare */
.t-page .warn { border-radius: var(--r); border: 0; background: #F3E6D3; }
.t-page .points.prep { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-top: .6rem; padding: 0; list-style: none; }
.t-page .points.prep > li { margin: 0; padding: .9rem 1rem; font-size: .9rem; }
.t-page .points.prep > li::before { display: none; }

/* Registration: three steps in a row, then the form */
.t-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.t-flow li { border-top: 0; padding: 2.9rem 1rem 1rem; }
.t-flow li:first-child { border-top: 0; }
.t-flow li::before { left: 1rem; top: 1rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--ivory); font-family: inherit; }
.t-page .reg { margin-top: .6rem; }
.t-page .fold ~ .t-small { margin: 0 0 1.1rem; }

/* FAQ: canvas with question tiles in two columns */
.t-page .t-sec:not(:has(.fold)) { padding-block: 1.25rem; }
.t-page .t-sec:not(:has(.fold)) > h2 { font-size: clamp(1.1rem, 1rem + .6vw, 1.35rem); }
.t-page .t-sec:not(:has(.fold)) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; align-items: start; }
.t-page .t-sec:not(:has(.fold)) > :not(.t-q) { grid-column: 1 / -1; }
.t-page .t-q { margin: 0; padding: .9rem 1rem; }
.t-page .t-q:first-of-type { border-top: 0; }
.t-page .t-q[open] { background: var(--tile); box-shadow: inset 0 0 0 1.5px var(--olive); }

@media (max-width: 62rem) {
  .t-page .items.about { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-page .items.about > li:nth-child(n+5) { grid-column: 1 / -1; }
  .t-page .items.syl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-page .scheds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 44rem) {
  .t-page .t-sec { padding: 0 .85rem; margin-top: .75rem; border-radius: 16px; }
  .t-page .fold > summary { padding: 1rem 0; }
  .t-page .items.about, .t-page .items.syl, .t-page .scheds, .t-page .points.prep, .t-flow,
  .t-page .t-sec:not(:has(.fold)) { grid-template-columns: minmax(0, 1fr); }
  .t-page .items.about > li:nth-child(n+5) { grid-column: auto; }
  .t-page .t-sec:not(:has(.fold)) { padding-block: 1rem; }
  .t-flow li { padding: .85rem .9rem .85rem 3rem; }
  .t-flow li::before { left: .9rem; top: .85rem; }
  .t-page .t-facts { padding: .5rem; gap: .5rem; }
  .t-page .fact { display: flex; padding: .85rem .9rem; }
  .t-page .fact + .fact { padding-left: .9rem; border-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .t-page .fold[open] > :not(summary), .t-page .fold[open] .tl i { animation: none; }
  .t-page .schedc, .t-page .shot img, .t-page .fold > summary::after { transition: none; }
}

/* Fixes: tiles keep their own padding inside open sections; hero controls keep their width */
.t-page .items.syl > li, .t-page .items.about > li { display: block; }
.t-page .fold > .bonus { padding: 1.15rem 1.2rem; }
.t-page .fold > .warn { padding: .85rem 1rem; }
.t-page .fold > .reg { padding: 1.25rem; }
.t-page .t-hero > .langsw, .t-page .t-hero > .t-cta { justify-self: start; }
.t-page .fact:not(:first-child) .fact__v { font-size: 1.3rem; white-space: nowrap; }
.t-page .schedc .tl { margin-top: auto; }
.t-page .schedc > p:last-of-type { padding-bottom: 1rem; }
@media (max-width: 44rem) {
  .t-page .t-hero > .t-cta { justify-self: stretch; }
  .t-page .fold > .reg { padding: 1rem .9rem; }
}
.t-page .t-sec > .main { padding: 0; margin: 0; }
.t-page .t-sec > .main > .fold, .t-page .t-sec > .fold { margin: 0; }

/* Note under the form sits inside the open section */
.t-page .fold > .t-small { margin: .75rem 0 0; }
.t-page .qs li::before { top: .65rem; font-size: .875rem; line-height: inherit; }

/* ==== Power BI page: spacing system ========================================
   One scale for the whole page (4px base). Every gap below picks from it.
   --sp-1 4  --sp-2 8  --sp-3 12  --sp-4 16  --sp-5 24  --sp-6 32
   Section inset  (--inset): 16 phone / 24 desktop   (canvas edge → text)
   Tile padding   (--tile-p): 16 phone / 20 desktop  (tile edge → text)
   Tile gap       (--gap):   12 everywhere           (tile ↔ tile)
   Block gap      (--flow):  16 everywhere           (block ↔ block in a section)
   Inside a tile: label → title 4, title → body 6, body → meta 8.
   ========================================================================= */
.t-page { --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem; --sp-5: 1.5rem; --sp-6: 2rem;
  --inset: 1rem; --tile-p: 1rem; --gap: .75rem; --flow: 1rem; }
@media (min-width: 44.01rem) { .t-page { --inset: 1.5rem; --tile-p: 1.25rem; } }

/* Hero rhythm */
.t-page .t-hero > * { margin-top: 0; margin-bottom: 0; }
.t-page .t-hero > .eyebrow { margin-top: var(--sp-5); }
.t-page .t-hero > h1 { margin-top: var(--sp-3); }
.t-page .t-hero > .t-lead { margin-top: var(--sp-4); max-width: 60ch; }
.t-page .t-hero > .t-chips { margin-top: var(--sp-5); gap: var(--sp-2); }
.t-page .t-hero > .t-facts { margin-top: var(--sp-5); padding: var(--gap); gap: var(--gap); }
.t-page .t-hero > .t-cta { margin-top: var(--sp-5); }
@media (min-width: 62rem) { .t-page .t-hero > .t-facts { margin-top: 0; } }
.t-page .fact { padding: var(--tile-p); }
.t-page .fact + .fact { padding-left: var(--tile-p); }
.t-page .fact__k { margin-top: var(--sp-2); }
.t-page .fact__s { margin-top: var(--sp-1); }

/* Sections: same inset on every side; header row and closing space match */
.t-page .t-sec { padding: 0 var(--inset); margin-top: var(--sp-3); }
.t-page .t-sec .fold > summary { padding-block: var(--sp-4); }
@media (min-width: 44.01rem) { .t-page .t-sec .fold > summary { padding-block: 1.25rem; } }
.t-page .t-sec .fold[open] { padding-bottom: var(--inset); }

/* Blocks inside an open section */
.t-page .t-sec .fold > :not(summary) { margin-top: var(--flow); margin-bottom: 0; }
.t-page .t-sec .fold > summary + * { margin-top: 0; }
.t-page .t-sec .fold > .lead-s + p { margin-top: var(--sp-2); }
.t-page .t-sec .fold > .subhead { margin-top: var(--sp-5); }
.t-page .t-sec .fold > .subhead + .qs { margin-top: var(--sp-3); }
.t-page .t-sec .fold > .tl__legend { margin-top: var(--sp-3); }
.t-page .t-sec .fold > .tl__legend + .scheds { margin-top: var(--sp-3); }
.t-page .t-sec .fold > .t-small { margin-top: var(--sp-3); }
.t-page .t-sec .fold > p:not(.warn) { max-width: 68ch; }

/* Tile grids share one gap */
.t-page .items.about, .t-page .items.syl, .t-page .scheds, .t-page .shots,
.t-page .points.prep, .t-page .t-flow { gap: var(--gap); }

/* Every tile: same padding */
.t-page .t-sec .items.about > li, .t-page .t-sec .items.syl > li, .t-page .t-sec .schedc,
.t-page .t-sec .bonus, .t-page .t-sec .warn, .t-page .t-sec .points.prep > li,
.t-page .t-sec .reg, .t-page .t-sec .t-q { padding: var(--tile-p); }
.t-page .t-sec .qs { padding: var(--sp-1) var(--tile-p); }
.t-page .t-sec .qs li { padding: var(--sp-3) 0 var(--sp-3) 1.75rem; }
.t-page .t-sec .qs li::before { top: var(--sp-3); }
.t-page .t-sec .shot { padding: var(--sp-2); }
.t-page .t-sec .shot figcaption { padding: var(--sp-3) calc(var(--tile-p) - var(--sp-2)) calc(var(--tile-p) - var(--sp-2)); }
.t-page .t-sec .t-flow li { padding: var(--tile-p) var(--tile-p) var(--tile-p) calc(var(--tile-p) + 2.25rem); }
.t-page .t-sec .t-flow li::before { left: var(--tile-p); top: var(--tile-p); }
@media (min-width: 44.01rem) {
  .t-page .t-sec .t-flow li { padding: calc(var(--tile-p) + 2.25rem) var(--tile-p) var(--tile-p); }
}

/* Inside a tile */
.t-page .t-sec .syl__date, .t-page .t-sec .schedc__n, .t-page .t-sec .bonus > .caps { margin: 0 0 var(--sp-1); }
.t-page .t-sec .items h3, .t-page .t-sec .schedc h3, .t-page .t-sec .bonus h3 { margin-top: 0; }
.t-page .t-sec .items h3 + p, .t-page .t-sec .bonus h3 + p { margin-top: 6px; }
.t-page .t-sec .syl__sub { margin-top: var(--sp-1); }
.t-page .t-sec .items.syl > li::before { margin-bottom: var(--sp-3); }
.t-page .t-sec .schedc__time { margin-top: 2px; }
.t-page .t-sec .schedc__days + .schedc__time { margin-top: var(--sp-1); }
.t-page .t-sec .schedc__range { margin-top: var(--sp-2); }
.t-page .t-sec .schedc__note { margin-top: var(--sp-2); }
.t-page .t-sec .schedc > p:last-of-type { padding-bottom: var(--sp-4); }
.t-page .t-sec .tl__m { margin-top: var(--sp-1); }
.t-page .t-sec .t-flow b + span { display: block; margin-top: var(--sp-1); }
.t-page .t-sec .t-q > :not(summary) { margin-top: var(--sp-2); }

/* FAQ: no fold, so give it the same header space as a summary row */
.t-page .t-sec:not(:has(.fold)) { padding-block: var(--sp-4) var(--inset); row-gap: var(--gap); column-gap: var(--gap); }
@media (min-width: 44.01rem) { .t-page .t-sec:not(:has(.fold)) { padding-top: 1.25rem; } }
.t-page .t-sec:not(:has(.fold)) > .secnum { margin: 0; }
.t-page .t-sec:not(:has(.fold)) > h2 { margin: calc(var(--sp-1) - var(--gap)) 0 var(--sp-1); }
.t-page .t-sec:not(:has(.fold)) > .t-q { margin: 0; }

/* ---- Teaching hub: one tile per class ------------------------------------ */
.t-page .classes-sec { padding-block: var(--inset); }
.classes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.classc { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--tile-p); border-radius: var(--r); background: var(--tile); color: var(--ink); text-decoration: none; transition: transform .2s; }
.classc:hover { transform: translateY(-2px); color: var(--ink); }
.classc:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; }
.classc__k { margin: 0; font-size: .75rem; letter-spacing: .04em; }
.classc__t { margin: 0; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); font-weight: 600; letter-spacing: -.015em; }
.classc__d { margin: 0; color: var(--muted); font-size: .9375rem; }
.classc__f { margin: var(--sp-2) 0 0; display: grid; gap: var(--sp-2); padding-top: var(--sp-3); border-top: 1px solid var(--line); }
.classc__f div { display: flex; justify-content: space-between; gap: var(--sp-3); font-size: .875rem; }
.classc__f dt { color: var(--muted); }
.classc__f dd { margin: 0; font-weight: 600; text-align: right; }
.classc__go { margin-top: auto; padding-top: var(--sp-3); font-weight: 600; color: var(--olive); }
@media (min-width: 64rem) { .classes--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 44rem) { .classes { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .classc { transition: none; } }

/* ---- Group Speaking: meeting dates and the message after payment ---------- */
.dates { list-style: none; margin: var(--sp-4) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-2); counter-reset: d; }
.dates li { counter-increment: d; padding: var(--sp-2) var(--sp-3); border-radius: 8px; background: var(--canvas); font-size: .875rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.dates li::before { content: counter(d, decimal-leading-zero); display: block; font-family: var(--mono); font-size: .6875rem; font-weight: 400; color: var(--olive); }
@media (max-width: 44rem) { .dates { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Payment panel: amount first, then the QR and the steps */
.t-page .t-sec .fold > .pay { scroll-margin-top: 5.5rem; padding: var(--tile-p); border-radius: var(--r); background: var(--tile); box-shadow: inset 0 0 0 1.5px var(--olive); display: grid; gap: var(--sp-3); }
.pay__k { margin: 0; font-size: .75rem; letter-spacing: .04em; }
.pay__lead { margin: 0; color: var(--muted); }
.pay__amount { margin: calc(-1 * var(--sp-2)) 0 0; font-size: clamp(2rem, 1.6rem + 2vw, 2.75rem); font-weight: 600; letter-spacing: -.02em; color: var(--olive); font-variant-numeric: tabular-nums; }
.pay__note { margin: 0; font-size: .875rem; color: var(--muted); max-width: 60ch; }
.pay__copy, .pay__again, .pay__edit { justify-self: start; font: inherit; font-size: .875rem; font-weight: 600; padding: .5rem .9rem; border-radius: 999px; border: 1px solid var(--paper); background: var(--white); color: var(--ink); cursor: pointer; }
.pay__copy:hover, .pay__again:hover, .pay__edit:hover { border-color: var(--olive); color: var(--olive); }
.pay__copy:focus-visible, .pay__again:focus-visible, .pay__edit:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; }
.pay__qr { margin: 0; max-width: 20rem; }
.pay__qr img { display: block; width: 100%; height: auto; border-radius: 8px; }
.pay__steps { margin: 0; padding-left: 1.4rem; list-style: decimal; display: grid; gap: var(--sp-2); font-size: .9375rem; }
.pay__after { margin: 0; font-size: .9375rem; }
.pay__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }
.pay__actions .btn, .pay--step .btn { margin-top: 0; }
.pay__hint { font-size: .8125rem; color: var(--muted); }
.pay--done h3 { font-size: 1.125rem; font-weight: 600; }
.pay--done p { margin: 0; }
.t-page .t-sec .fold > .pay--done { box-shadow: inset 0 0 0 1.5px var(--olive); }

/* Back link above a class page's title, and full schedule tiles */
.t-back { justify-self: start; font-size: .875rem; font-weight: 600; color: var(--olive); text-decoration: none; }
.t-back:hover { text-decoration: underline; }
.t-page .t-hero > .t-back { margin-bottom: var(--sp-3); }
.classc[data-state="full"] { opacity: .7; }

/* ---- Teaching hub: learner quotes and FAQ under the class cards ----------- */
.tx .tx-lead { margin-top: var(--sp-4); max-width: 54ch; font-size: clamp(1rem, .95rem + .3vw, 1.125rem); color: var(--muted); }
.tx .tx-lead b { color: var(--ink); font-weight: 600; }
.tx-link { font-weight: 600; color: var(--olive); text-decoration-color: var(--paper); }

.tx-sec { margin-top: var(--sp-4); padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem) var(--inset); border-radius: var(--r-lg); background: var(--ivory); }
.tx-sec > .secnum { margin: 0; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--olive); }
.tx-sec > h2 { margin: var(--sp-2) 0 0; max-width: 30ch; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }
.tx-note { margin: var(--sp-2) 0 0; font-size: .875rem; color: var(--muted); }

.tx-quotes { margin-top: var(--sp-5); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.tx-quote { margin: 0; display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--tile-p); border-radius: var(--r); background: var(--white); }
.tx-quote blockquote { margin: 0; }
.tx-quote p { font-size: .9375rem; line-height: 1.6; }
.tx-quote figcaption { margin-top: auto; font-size: .8125rem; font-weight: 600; color: var(--olive); }
.tx-quote--lead { grid-row: span 2; background: var(--olive); color: var(--white); }
.tx-quote--lead p { font-size: clamp(1.05rem, .95rem + .4vw, 1.25rem); line-height: 1.5; }
.tx-quote--lead figcaption { color: var(--ivory); }
.tx-sec > .tx-link { display: inline-block; margin-top: var(--sp-4); }

.tx-faq { margin-top: var(--sp-4); display: grid; gap: var(--sp-2); max-width: 48rem; }
.tx-faq .t-q { margin: 0; padding: var(--tile-p); border: 0; border-radius: var(--r); background: var(--white); }
.tx-faq .t-q > p { margin-top: var(--sp-2); color: var(--muted); font-size: .9375rem; }

@media (max-width: 62rem) {
  .tx-quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tx-quote--lead { grid-row: auto; grid-column: 1 / -1; }
}
@media (max-width: 44rem) {
  .tx-quotes { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Pick cards: /teaching (choose a class), /speaking and /power-bi/jadwal (choose a schedule) ---- */
/* One card per choice: a cover (photo or the schedule itself, set large), a short body with
   key numbers, and one action. The whole card is the link. */
.tx-head { padding-block: clamp(2rem, 1.5rem + 3vw, 4rem) var(--sp-6); max-width: 46rem; }
.tx-head > * { margin: 0; }
.tx-head > .eyebrow { margin-top: var(--sp-5); font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--olive); }
.tx-head h1 { margin-top: var(--sp-3); font-size: clamp(2.1rem, 1.4rem + 3vw, 3.5rem); font-weight: 600; line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; }
.tx-head .tx-lead { margin-top: var(--sp-4); }

.pcs { display: grid; gap: clamp(1rem, .6rem + 1.5vw, 1.75rem); padding: clamp(1rem, .5rem + 2vw, 2rem); border-radius: 28px; background: var(--ivory); }
.pcs--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pcs--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.t-page .pcs + .tx-sec { margin-top: var(--sp-6); }

.pc { display: flex; flex-direction: column; padding: .625rem; border-radius: 24px; background: var(--white); color: var(--ink); text-decoration: none;
  box-shadow: 0 1px 2px rgba(32, 33, 31, .06), 0 12px 32px -12px rgba(32, 33, 31, .18); transition: transform .25s ease, box-shadow .25s ease; }
.pc:hover { color: var(--ink); transform: translateY(-4px); box-shadow: 0 1px 2px rgba(32, 33, 31, .06), 0 22px 44px -16px rgba(32, 33, 31, .28); }
.pc:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }

.pc__cover { position: relative; overflow: hidden; border-radius: 16px; aspect-ratio: 16 / 10; max-width: 100%; }
.pc__cover--img { background: var(--ivory); }
.pc__cover--img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: transform .5s ease; }
.pc:hover .pc__cover--img img { transform: scale(1.03); }
/* Schedule covers: the days and times are the picture. Olive = weekday, Warm Sand = weekend. */
.pc__cover--wd, .pc__cover--we, .pc__cover--talk { aspect-ratio: auto; min-height: 10.5rem; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; padding: clamp(1rem, .8rem + 1vw, 1.5rem); }
.pc__cover--wd { background: var(--olive); color: var(--white); }
.pc__cover--we { background: var(--sand); color: var(--ink); }
.pc__cover > p { margin: 0; }
.pc__cn { order: -1; margin-bottom: auto !important; padding-bottom: var(--sp-4); font-size: .6875rem; letter-spacing: .1em; opacity: .85; }
.pc__cd { font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.05; }
.pc__ct { font-size: 1rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.pc__cr { font-size: .875rem; opacity: .85; }
/* Speaking cover: two lines of conversation */
.pc__cover--talk { aspect-ratio: 16 / 10; background: var(--ink); color: var(--ivory); gap: var(--sp-2); }
.pc__q { max-width: 80%; padding: .6rem .95rem; border-radius: 16px; font-size: clamp(1rem, .9rem + .5vw, 1.25rem); font-weight: 500; line-height: 1.3; }
.pc__q--a { align-self: flex-start; background: var(--ivory); color: var(--ink); border-bottom-left-radius: 4px; }
.pc__q--b { align-self: flex-end; background: var(--olive); color: var(--white); border-bottom-right-radius: 4px; }

.pc__b { display: flex; flex-direction: column; flex: 1; gap: var(--sp-3); padding: var(--sp-4) .5rem .375rem; }
.pc__b > * { margin: 0; }
.pc__tag { font-size: .6875rem; letter-spacing: .08em; color: var(--olive); }
.pc__tag .kuota { color: var(--ink); }
.pc__top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-top: calc(-1 * var(--sp-2)) !important; }
.pc__t { margin: 0; font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.15; }
.pcs--3 .pc__t { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); }
.pc__price { flex: none; padding: .3rem .7rem; border-radius: 999px; background: var(--olive); color: var(--white); font-size: .875rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pc__d { font-size: .9375rem; color: var(--muted); line-height: 1.55; }
.pc__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); margin-top: auto !important; }
.pc__stats > div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .65rem .4rem; border-radius: 12px; background: var(--ivory); text-align: center; }
.pc__stats dt { font-size: .75rem; color: var(--muted); }
.pc__stats dd { margin: 0; font-size: 1.2rem; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; }
.pc__btn { display: flex; justify-content: center; align-items: center; gap: .4em; padding: .9rem 1rem; border-radius: 14px; background: var(--ink); color: var(--ivory); font-weight: 600; transition: background .2s; }
.pc:hover .pc__btn { background: var(--olive); color: var(--white); }

.pc[data-state="full"] { opacity: .55; }
.pc[data-state="full"] .pc__btn { background: var(--paper); color: var(--muted); }

@media (max-width: 62rem) { .pcs--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 44rem) {
  .pcs--2, .pcs--3 { grid-template-columns: minmax(0, 1fr); }
  .pcs { margin-inline: calc(-1 * var(--edge) + .5rem); border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) { .pc, .pc__cover--img img, .pc__btn { transition: none; } .pc:hover { transform: none; } }

/* ---- Home § 1: Experience · Results · Education uses the full width ---------- */
/* Each role reads left to right: what it was (title + summary) | what came of it (results). */
.cv__order { text-transform: none; letter-spacing: 0; }
@media (min-width: 62rem) {
  .paper > .row.sec--wide > .main { grid-column: 2 / span 2; }
  .sec--wide .cv > li > div {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); column-gap: 2.5rem;
    grid-template-areas: "when results" "title results" "summary results" "stack results";
    grid-template-rows: auto auto auto 1fr;
    align-items: start; align-content: start;
  }
  .sec--wide .cv > li > div > h3 { grid-area: title; }
  .sec--wide .cv > li > div > p:not(.cv__when):not(.cv__stack) { grid-area: summary; }
  .sec--wide .cv > li > div > .cv__stack { grid-area: stack; }
  .sec--wide .cv > li > div > .cv__when { grid-area: when; }
  .sec--wide .cv > li > div > .results { grid-area: results; margin-top: 0; padding-top: .15rem; }
}

.cv__when { margin: 0 0 .15rem !important; font-family: var(--mono); font-size: .75rem !important; color: var(--olive) !important; letter-spacing: .02em; }
.cv-foot { margin-top: 2rem; display: grid; gap: 1.5rem; border-top: 1px solid var(--ink); padding-top: 1rem; }
.cv-foot h3 { margin: 0; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--olive); }
.cv-foot h3 ~ h3 { margin-top: 1.25rem; }
.cv-foot .refs { margin-top: .35rem; }
.cv-tags { margin: .5rem 0 0; font-size: .9375rem; line-height: 1.7; }
@media (min-width: 62rem) {
  .cv-foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); column-gap: 2.5rem; }
}
.cv__stack { margin: .6rem 0 0 !important; font-family: var(--mono); font-size: .75rem !important; line-height: 1.6; color: var(--ink) !important; }
