/* TelesnaPlan · free lesson presenter (V2). Brand: navy #06234B, lime #D9FF57 (text on lime always navy), blue #1E5EFF. */
:root {
  --tp-navy: #06234B;
  --tp-navy-2: #0F2747;
  --tp-navy-3: #071A3E;
  --tp-lime: #D9FF57;
  --tp-blue: #1E5EFF;
  --tp-blue-2: #2E7CF6;
  --tp-surface: #F4F7FB;
  --tp-surface-2: #EEF3FA;
  --tp-line: rgba(6, 35, 75, .14);
  --tp-ink: #06234B;
  --tp-ink-2: rgba(6, 35, 75, .82);
  --tp-muted: rgba(6, 35, 75, .7);
  --tp-on-navy-2: rgba(255, 255, 255, .78);
  --tp-radius-sheet: 28px;
  --tp-radius-card: 20px;
  --tp-radius-btn: 14px;
  --tp-shadow: 0 1px 2px rgba(6, 35, 75, .06), 0 10px 28px rgba(6, 35, 75, .08);
  --tp-ease: cubic-bezier(.22, .61, .36, 1);
  --tp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --tp-gutter: 16px;
  --tp-tap: 44px;
  color-scheme: light;
}
[data-platform="android"] { --tp-tap: 48px; }
@media (min-width: 380px) { :root { --tp-gutter: 20px; } }
@media (min-width: 768px) { :root { --tp-gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 76px; }
body.tpf {
  margin: 0;
  background: var(--tp-surface);
  color: var(--tp-ink);
  font: 400 16px/1.55 var(--tp-font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100svh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tp-blue); text-underline-offset: 3px; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--tp-blue-2); outline-offset: 3px; border-radius: 6px; }
.tpi { width: 20px; height: 20px; flex: none; }
[hidden] { display: none !important; }

.tpf-skip {
  position: absolute; left: 12px; top: -80px; z-index: 50; display: inline-flex; align-items: center; min-height: var(--tp-tap);
  background: var(--tp-lime); color: var(--tp-navy); font-weight: 700; padding: 10px 14px; border-radius: 10px;
}
.tpf-skip:focus { top: calc(12px + env(safe-area-inset-top)); }

/* ---------- Top bar ---------- */
.tpf-top {
  position: sticky; top: 0; z-index: 20;
  background: var(--tp-navy);
  padding-top: env(safe-area-inset-top);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}
.tpf-top__inner {
  max-width: 1120px; margin: 0 auto;
  min-height: 60px; padding: 8px var(--tp-gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.tpf-back {
  flex: 0 1 auto; display: inline-flex; align-items: center; gap: 6px;
  min-height: var(--tp-tap); padding: 0 10px 0 4px; margin-left: -4px; border-radius: 12px;
  color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; min-width: 0; max-width: 100%;
}
.tpf-back span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpf-back:hover { background: rgba(255, 255, 255, .08); }
.tpf-logo { display: flex; align-items: center; min-height: 44px; padding: 6px 4px; flex: none; position: absolute; left: 50%; transform: translateX(-50%); }
.tpf-top__inner { position: relative; }
.tpf-logo img { height: 22px; width: auto; }
.tpf-badge {
  flex: none; font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--tp-navy);
  background: var(--tp-lime); border-radius: 999px; padding: 5px 10px; white-space: nowrap;
}
@media (max-width: 759px) { .tpf-logo { display: none; } }

/* ---------- Hero ---------- */
.tpf-hero {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(46, 124, 246, .32) 0%, rgba(46, 124, 246, 0) 55%),
    radial-gradient(80% 70% at 0% 100%, rgba(217, 255, 87, .10) 0%, rgba(217, 255, 87, 0) 60%),
    var(--tp-navy);
  color: #fff;
  padding: 22px var(--tp-gutter) calc(30px + var(--tp-radius-sheet));
}
.tpf-hero__inner { max-width: 1120px; margin: 0 auto; }
.tpf-eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tp-on-navy-2); }
.tpf-eyebrow--blue { color: var(--tp-blue); }
.tpf-h1 { font-size: clamp(27px, 7.4vw, 44px); line-height: 1.12; letter-spacing: -.02em; font-weight: 800; margin: 8px 0 10px; text-wrap: balance; }
.tpf-h2 { font-size: clamp(20px, 5vw, 26px); line-height: 1.2; letter-spacing: -.01em; font-weight: 800; color: var(--tp-ink); display: flex; align-items: center; gap: 10px; }
.tpf-h3 { font-size: 18px; line-height: 1.3; font-weight: 800; color: var(--tp-ink); display: flex; align-items: center; gap: 10px; }
.tpf-h2 .tpi, .tpf-h3 .tpi { color: var(--tp-blue); width: 22px; height: 22px; }
.tpf-lead { font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, .86); max-width: 62ch; }

.tpf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.tpf-chips li {
  display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 650; line-height: 1.2;
  padding: 7px 11px; border-radius: 999px; background: var(--tp-surface-2); color: var(--tp-ink);
}
.tpf-chips .tpi { width: 16px; height: 16px; color: var(--tp-blue); }
.tpf-chips--dark li { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.tpf-chips--dark .tpi { color: var(--tp-lime); }

/* ---------- Buttons ---------- */
.tpf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 20px; border-radius: var(--tp-radius-btn);
  font-weight: 750; font-size: 16px; line-height: 1.25; text-decoration: none; text-align: center;
  border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .18s var(--tp-ease), transform .14s var(--tp-ease), box-shadow .18s var(--tp-ease);
}
.tpf-btn:active { transform: scale(.98); }
.tpf-btn .tpi { width: 20px; height: 20px; }
.tpf-btn--lime { background: var(--tp-lime); color: var(--tp-navy); box-shadow: 0 6px 18px rgba(217, 255, 87, .45); }
.tpf-btn--lime:hover { box-shadow: inset 0 0 0 100vmax rgba(6, 35, 75, .07), 0 6px 18px rgba(217, 255, 87, .45); }
.tpf-btn--navy { background: var(--tp-navy); color: #fff; }
.tpf-btn--navy:hover { background: var(--tp-navy-2); }
.tpf-btn--ghost { background: #fff; color: var(--tp-navy); box-shadow: inset 0 0 0 1.5px var(--tp-line); }
.tpf-btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--tp-navy); }
.tpf-btn--block { width: 100%; }
.tpf-btn--sm { min-height: var(--tp-tap); padding: 8px 14px; font-size: 15px; border-radius: 12px; }
.tpf-btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.tpf-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tpf-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: var(--tp-tap);
  color: var(--tp-blue); font-weight: 700; text-decoration: none;
}
.tpf-link:hover { text-decoration: underline; }
.tpf-icon-btn {
  width: var(--tp-tap); height: var(--tp-tap); display: grid; place-items: center; border-radius: 12px;
  border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer;
}

/* ---------- Sheet ---------- */
.tpf-wrap {
  position: relative; max-width: 1120px; margin: calc(var(--tp-radius-sheet) * -1) auto 0;
  background: var(--tp-surface); border-radius: var(--tp-radius-sheet) var(--tp-radius-sheet) 0 0;
  padding: 22px var(--tp-gutter) 40px;
}
@media (min-width: 1160px) { .tpf-wrap { border-radius: var(--tp-radius-sheet); margin-bottom: 40px; } }
.tpf-card { background: #fff; border-radius: var(--tp-radius-card); padding: 20px; box-shadow: var(--tp-shadow); min-width: 0; }

/* ---------- School ---------- */
.tpf-levels { display: grid; gap: 18px; }
@media (min-width: 860px) { .tpf-levels { grid-template-columns: 1fr 1fr; gap: 24px; } }
.tpf-level { background: #fff; border-radius: 24px; overflow: hidden; box-shadow: var(--tp-shadow); display: flex; flex-direction: column; min-width: 0; }
.tpf-level__media { display: block; aspect-ratio: var(--ratio); background: var(--tp-surface-2); }
.tpf-level__media img { width: 100%; height: 100%; object-fit: contain; }
.tpf-level__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tpf-level__stage { font-size: 13px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--tp-blue); }
.tpf-level__title { font-size: 24px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
.tpf-level .tpf-chips { margin: 0; }
.tpf-level__text { color: var(--tp-ink-2); }
.tpf-level .tpf-btn { margin-top: auto; }
.tpf-info { margin-top: 28px; }
.tpf-info__list { display: grid; gap: 12px; margin-top: 14px; }
@media (min-width: 720px) { .tpf-info__list { grid-template-columns: 1fr 1fr; } }
.tpf-info__list div { background: #fff; border-radius: 16px; padding: 16px; box-shadow: var(--tp-shadow); }
.tpf-info__list dt { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.tpf-info__list dt .tpi { color: var(--tp-blue); }
.tpf-info__list dd { color: var(--tp-ink-2); margin-top: 4px; font-size: 15px; }

/* ---------- Series ---------- */
.tpf-switch { display: inline-flex; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, .1); margin-bottom: 18px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); max-width: 100%; }
.tpf-switch a {
  min-height: var(--tp-tap); display: inline-flex; align-items: center; padding: 0 16px; border-radius: 10px;
  color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; white-space: nowrap;
}
.tpf-switch a[aria-current="page"] { background: var(--tp-lime); color: var(--tp-navy); }
.tpf-series-head { display: grid; gap: 18px; }
@media (min-width: 860px) { .tpf-series-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 36px; } }
.tpf-series-head__media { border-radius: 20px; overflow: hidden; aspect-ratio: var(--ratio); background: rgba(255, 255, 255, .06); }
.tpf-series-head__media img { width: 100%; height: 100%; object-fit: contain; }
.tpf-series-head__copy .tpf-btn { margin-top: 18px; }
.tpf-series { display: grid; gap: 20px; }
.tpf-series__facts { display: grid; gap: 16px; }
@media (min-width: 860px) { .tpf-series__facts { grid-template-columns: 1fr 1fr; } }
.tpf-ticks { display: grid; gap: 10px; margin-top: 12px; }
.tpf-ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--tp-ink-2); }
.tpf-ticks .tpi { color: var(--tp-blue); width: 20px; height: 20px; margin-top: 2px; }
.tpf-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tpf-tags li { font-size: 14px; font-weight: 600; padding: 7px 12px; border-radius: 10px; background: var(--tp-surface); color: var(--tp-ink-2); box-shadow: inset 0 0 0 1px var(--tp-line); }

.tpf-material-feature {
  display: grid; gap: 16px; background: #fff; border-radius: 24px; padding: 16px; box-shadow: var(--tp-shadow);
  border: 2px solid var(--tp-lime);
}
@media (min-width: 760px) { .tpf-material-feature { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; padding: 20px; gap: 26px; } }
.tpf-material-feature__media { border-radius: 14px; overflow: hidden; aspect-ratio: var(--ratio); box-shadow: 0 0 0 1px var(--tp-line); background: #fff; }
.tpf-material-feature__copy { display: grid; gap: 8px; }
.tpf-material-feature__copy p { color: var(--tp-ink-2); }

.tpf-lessons { display: grid; gap: 14px; }
.tpf-lesson-list { display: grid; gap: 12px; }
@media (min-width: 980px) { .tpf-lesson-list { grid-template-columns: 1fr 1fr; } }
.tpf-lesson-item {
  display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; height: 100%;
  background: #fff; border-radius: 18px; padding: 14px; box-shadow: var(--tp-shadow);
  color: var(--tp-ink); text-decoration: none; transition: box-shadow .2s var(--tp-ease), transform .2s var(--tp-ease);
}
.tpf-lesson-item:hover { box-shadow: 0 0 0 2px var(--tp-blue-2), var(--tp-shadow); }
.tpf-lesson-item:active { transform: scale(.99); }
@media (min-width: 420px) { .tpf-lesson-item { grid-template-columns: 116px minmax(0, 1fr); } }
.tpf-lesson-item__thumb {
  align-self: start; border-radius: 12px; overflow: hidden; background: var(--tp-surface-2);
  aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 4px;
}
.tpf-lesson-item__thumb img { width: 100%; height: 100%; object-fit: contain; }
.tpf-lesson-item__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tpf-lesson-item__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tpf-num {
  width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--tp-navy); color: var(--tp-lime); font-weight: 800; font-size: 14px;
}
.tpf-pill {
  display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; line-height: 1;
  padding: 6px 9px; border-radius: 999px; background: var(--tp-surface-2); color: var(--tp-ink-2); white-space: nowrap;
}
.tpf-pill .tpi { width: 14px; height: 14px; }
.tpf-pill--blue { background: rgba(30, 94, 255, .1); color: var(--tp-navy); }
.tpf-pill--blue .tpi { color: var(--tp-blue); }
.tpf-lesson-item__title { font-size: 17px; line-height: 1.3; font-weight: 800; }
.tpf-lesson-item__phases { display: grid; gap: 2px; font-size: 13.5px; line-height: 1.4; color: var(--tp-muted); }
.tpf-lesson-item__phases b { color: var(--tp-ink-2); font-weight: 700; }
.tpf-lesson-item__cta { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--tp-blue); min-height: 32px; }
.tpf-lesson-item__cta .tpi { width: 18px; height: 18px; transition: transform .2s var(--tp-ease); }
.tpf-lesson-item:hover .tpf-lesson-item__cta .tpi { transform: translateX(3px); }

.tpf-about { background: #fff; border-radius: 18px; box-shadow: var(--tp-shadow); }
.tpf-about summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 56px; padding: 12px 18px; font-weight: 800;
}
.tpf-about summary::-webkit-details-marker { display: none; }
.tpf-about[open] summary .tpi { transform: rotate(180deg); }
.tpf-about summary .tpi { transition: transform .2s var(--tp-ease); }
.tpf-about__body { padding: 0 18px 18px; color: var(--tp-ink-2); font-size: 15px; display: grid; gap: 10px; }
.tpf-about__body ul { list-style: disc; padding-left: 20px; display: grid; gap: 4px; }

/* ---------- Lesson ---------- */
.tpf-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; font-size: 14px; margin-bottom: 14px; color: var(--tp-on-navy-2); }
.tpf-crumbs a { color: #fff; text-decoration: none; font-weight: 600; min-height: var(--tp-tap); min-width: 44px; display: inline-flex; align-items: center; }
.tpf-crumbs a:hover { text-decoration: underline; }
.tpf-crumbs [aria-current] { color: var(--tp-lime); font-weight: 700; }
.tpf-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tpf-pager a {
  display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 10px 12px; border-radius: 14px;
  background: #fff; color: var(--tp-ink); text-decoration: none; font-weight: 700; box-shadow: var(--tp-shadow); min-width: 0;
}
.tpf-pager a span { min-width: 0; overflow-wrap: break-word; hyphens: auto; }
.tpf-pager small { display: block; font-size: 11px; font-weight: 700; color: var(--tp-muted); text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpf-pager__next { justify-content: flex-end; text-align: right; grid-column: 2; }
.tpf-pager .tpi { color: var(--tp-blue); }
.tpf-pager--top { margin-bottom: 16px; }
.tpf-pager--top a { min-height: var(--tp-tap); box-shadow: none; background: transparent; padding: 6px 4px; color: var(--tp-blue); }
.tpf-flow .tpf-pager { margin-top: 18px; }

.tpf-lesson__grid { display: grid; gap: 18px; }
@media (min-width: 1000px) { .tpf-lesson__grid { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); align-items: start; gap: 28px; } .tpf-lesson__side { position: sticky; top: 84px; } }
.tpf-lesson__side { display: grid; gap: 16px; }
.tpf-lesson-art { border-radius: 20px; overflow: hidden; box-shadow: var(--tp-shadow); background: #fff; }
.tpf-goal { background: var(--tp-navy); color: #fff; border-radius: 20px; padding: 18px 20px; }
.tpf-goal .tpf-h3 { color: #fff; }
.tpf-goal .tpf-h3 .tpi { color: var(--tp-lime); }
.tpf-goal p { margin-top: 8px; font-size: 17px; line-height: 1.5; color: rgba(255, 255, 255, .9); }

.tpf-prep__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.tpf-progress { font-size: 13px; font-weight: 750; color: var(--tp-muted); background: var(--tp-surface); border-radius: 999px; padding: 5px 10px; }
.tpf-progress.is-done { background: var(--tp-lime); color: var(--tp-navy); }
.tpf-checks { display: grid; gap: 2px; margin-top: 10px; }
.tpf-check {
  display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 12px;
  min-height: var(--tp-tap); padding: 6px 8px; margin: 0 -8px; border-radius: 12px; cursor: pointer;
}
.tpf-check:hover { background: var(--tp-surface); }
.tpf-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tpf-check__box {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: var(--tp-navy);
  box-shadow: inset 0 0 0 2px rgba(6, 35, 75, .5); background: #fff; transition: background-color .18s var(--tp-ease), box-shadow .18s var(--tp-ease);
}
.tpf-check__box .tpi { width: 18px; height: 18px; opacity: 0; transform: scale(.6); transition: opacity .18s var(--tp-ease), transform .22s var(--tp-ease); stroke-width: 3; }
.tpf-check input:checked + .tpf-check__box { background: var(--tp-lime); color: var(--tp-navy); box-shadow: inset 0 0 0 2px var(--tp-navy); }
.tpf-check input:checked + .tpf-check__box .tpi { opacity: 1; transform: none; }
.tpf-check input:checked ~ .tpf-check__text { color: var(--tp-muted); text-decoration: line-through; text-decoration-color: rgba(6, 35, 75, .35); }
.tpf-check input:focus-visible + .tpf-check__box { outline: 3px solid var(--tp-blue-2); outline-offset: 2px; }
.tpf-check__text { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.tpf-hint { margin-top: 8px; font-size: 13px; color: var(--tp-muted); }

.tpf-files { display: grid; gap: 10px; margin-top: 12px; }
.tpf-file { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 12px; border-radius: 14px; background: var(--tp-surface); }
.tpf-file__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--tp-blue); box-shadow: inset 0 0 0 1px var(--tp-line); }
.tpf-file__copy { display: grid; gap: 2px; min-width: 0; }
.tpf-file__copy strong { font-size: 15px; line-height: 1.3; }
.tpf-file__copy span { font-size: 13px; color: var(--tp-muted); }
.tpf-file__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }

.tpf-flow { display: grid; gap: 12px; min-width: 0; }
.tpf-flow__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tpf-part { background: #fff; border-radius: 20px; box-shadow: var(--tp-shadow); overflow: hidden; }
.tpf-part > summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto 24px;
  align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px; -webkit-tap-highlight-color: transparent;
}
.tpf-part > summary::-webkit-details-marker { display: none; }
.tpf-part__num {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800;
  background: var(--tp-surface-2); color: var(--tp-navy);
}
.tpf-part--main .tpf-part__num { background: var(--tp-lime); color: var(--tp-navy); }
.tpf-part__label { display: grid; min-width: 0; }
.tpf-part__label strong { font-size: 17px; line-height: 1.25; }
.tpf-part__label span { font-size: 13.5px; color: var(--tp-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpf-part__time { font-size: 13px; font-weight: 750; color: var(--tp-navy); background: var(--tp-surface-2); border-radius: 999px; padding: 6px 10px; white-space: nowrap; }
.tpf-part__chev .tpi { transition: transform .22s var(--tp-ease); color: var(--tp-muted); }
.tpf-part[open] .tpf-part__chev .tpi { transform: rotate(180deg); }
.tpf-part__body { padding: 0 16px 18px; border-top: 1px solid var(--tp-surface-2); display: grid; gap: 14px; }
.tpf-phase { display: grid; gap: 10px; padding-top: 14px; }
.tpf-phase + .tpf-phase { border-top: 1px dashed var(--tp-line); }
.tpf-phase__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tpf-phase__head strong { font-size: 16px; }
.tpf-activity { font-size: 16.5px; line-height: 1.35; font-weight: 800; color: var(--tp-navy); margin-top: 4px; }
.tpf-bullets { display: grid; gap: 7px; }
.tpf-bullets li { position: relative; padding-left: 20px; color: var(--tp-ink-2); line-height: 1.55; overflow-wrap: anywhere; }
.tpf-bullets li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--tp-blue); }
.tpf-bullets strong { color: var(--tp-ink); }
.tpf-part__body p { color: var(--tp-ink-2); }
.tpf-figure { display: grid; gap: 6px; }
.tpf-figure figcaption { font-size: 13px; color: var(--tp-muted); }

.tpf-zoom { position: relative; display: block; aspect-ratio: var(--ratio); background: var(--tp-surface-2); border-radius: 14px; overflow: hidden; }
.tpf-zoom img { width: 100%; height: 100%; object-fit: contain; }
.tpf-zoom__hint {
  position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--tp-navy); background: rgba(255, 255, 255, .92); border-radius: 999px; padding: 6px 10px;
  box-shadow: 0 2px 8px rgba(6, 35, 75, .15);
}
.tpf-zoom__hint .tpi { width: 15px; height: 15px; }
.tpf-lesson-art .tpf-zoom { border-radius: 0; }

/* ---------- Card reader ---------- */
.tpf-reader { display: grid; gap: 18px; }
.tpf-reader__stage { position: relative; }
.tpf-scard { background: #fff; border-radius: 22px; box-shadow: var(--tp-shadow); overflow: hidden; }
.tpf-scard__head { display: flex; align-items: center; gap: 14px; background: var(--tp-navy); color: #fff; padding: 16px 18px; }
.tpf-scard__num { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--tp-lime); color: var(--tp-navy); font-weight: 850; font-size: 20px; }
.tpf-scard__head p { font-size: 12.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--tp-on-navy-2); }
.tpf-scard__head h2 { font-size: clamp(21px, 5.6vw, 30px); line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }
.tpf-scard__body { display: grid; gap: 16px; padding: 16px; }
@media (min-width: 820px) { .tpf-scard__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 22px; gap: 24px; align-items: start; } .tpf-scard__art { order: 2; } }
.tpf-scard__art { background: var(--tp-surface); border-radius: 16px; display: grid; place-items: center; padding: 14px; }
.tpf-scard__art img { width: auto; max-width: 100%; max-height: min(52svh, 420px); aspect-ratio: var(--ratio); object-fit: contain; }
.tpf-scard__rows { display: grid; gap: 12px; }
.tpf-scard__rows dt { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--tp-navy); background: var(--tp-surface-2); border-radius: 999px; padding: 4px 10px; }
.tpf-scard__rows dd { font-size: 18px; line-height: 1.45; font-weight: 600; margin-top: 6px; }
.tpf-scard__rows .is-goal dt { background: var(--tp-lime); color: var(--tp-navy); }
.tpf-scard__rows .is-goal dd { font-weight: 800; }
.tpf-scard__rows .is-setup { background: var(--tp-surface); border-radius: 14px; padding: 12px 14px; }
.tpf-scard__rows .is-setup dd { font-size: 16px; }
.tpf-scard__foot { padding: 0 16px 12px; }
.tpf-reader__nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.tpf-reader__nav .tpf-btn { min-height: 52px; padding: 10px 12px; font-size: 15px; }
.tpf-reader__nav [data-tpf-prev] { justify-self: stretch; }
.tpf-reader__nav [data-tpf-next] { justify-self: stretch; }
@media (max-width: 419px) { .tpf-reader__nav .tpf-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
.tpf-counter { font-weight: 800; font-size: 17px; text-align: center; min-width: 64px; }
.tpf-counter span { color: var(--tp-blue); }
.tpf-reader__gridhead { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.tpf-thumbs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
@media (min-width: 640px) { .tpf-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .tpf-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tpf-thumbs a { display: grid; gap: 8px; text-decoration: none; color: var(--tp-ink); border-radius: 14px; padding: 6px; transition: background-color .18s var(--tp-ease); }
.tpf-thumbs a:hover { background: #fff; }
.tpf-thumbs a[aria-current="true"] { background: #fff; box-shadow: 0 0 0 2px var(--tp-blue-2); }
.tpf-thumbs__img { display: block; aspect-ratio: 640 / 453; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px var(--tp-line), 0 4px 12px rgba(6, 35, 75, .08); background: #fff; }
.tpf-thumbs__img img { width: 100%; height: 100%; object-fit: contain; }
.tpf-thumbs__label { font-size: 14px; font-weight: 650; line-height: 1.3; }
.tpf-thumbs__label b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 50%; background: var(--tp-navy); color: var(--tp-lime); font-size: 12px; margin-right: 4px; }

/* ---------- Sticky call to action ---------- */
.tpf-cta {
  position: sticky; bottom: 0; z-index: 30;
  padding: 10px var(--tp-gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(6, 35, 75, .97); color: #fff;
  box-shadow: 0 -10px 30px rgba(6, 35, 75, .25);
}
@supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
  .tpf-cta { background: rgba(6, 35, 75, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
}
.tpf-cta__inner { max-width: 1120px; margin: 0 auto; display: grid; gap: 8px; align-items: center; }
@media (min-width: 760px) { .tpf-cta__inner { grid-template-columns: minmax(0, 1fr) auto; gap: 20px; } }
.tpf-cta__text { font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, .86); }
.tpf-cta__text strong { color: #fff; }
@media (max-width: 379px) { .tpf-cta__text span { display: none; } }
.tpf-cta .tpf-btn { min-height: 50px; width: 100%; }
@media (min-width: 760px) { .tpf-cta .tpf-btn { width: auto; } }

/* ---------- Lightbox ---------- */
.tpf-lightbox { border: 0; padding: 0; margin: 0; max-width: 100vw; max-height: 100svh; width: 100vw; height: 100svh; background: transparent; color: #fff; }
.tpf-lightbox::backdrop { background: rgba(7, 26, 62, .94); }
.tpf-lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.tpf-lightbox__bar { display: flex; justify-content: flex-end; padding: calc(10px + env(safe-area-inset-top)) 12px 6px; }
.tpf-lightbox__fig { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 10px; padding: 0 12px calc(16px + env(safe-area-inset-bottom)); min-height: 0; }
.tpf-lightbox__fig img { width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.tpf-lightbox__fig figcaption { text-align: center; font-size: 14px; color: rgba(255, 255, 255, .86); }

/* ---------- Motion (time based, transform/opacity only; calm cross-fade with reduced motion) ---------- */
@keyframes tpf-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes tpf-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tpf-slide { from { opacity: 0; transform: translateX(var(--tpf-dir, 24px)); } to { opacity: 1; transform: none; } }
@keyframes tpf-up { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: none; } }
@keyframes tpf-zoom-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.tpf-js .tpf-hero__inner > * { animation: tpf-rise .6s var(--tp-ease) both; }
.tpf-js .tpf-hero__inner > :nth-child(2) { animation-delay: .06s; }
.tpf-js .tpf-hero__inner > :nth-child(3) { animation-delay: .12s; }
.tpf-js .tpf-hero__inner > :nth-child(n+4) { animation-delay: .18s; }
.tpf-js [data-tpf-reveal] { animation: tpf-rise .55s var(--tp-ease) both; animation-delay: .1s; }
.tpf-js [data-tpf-reveal]:nth-child(2) { animation-delay: .16s; }
.tpf-js [data-tpf-reveal]:nth-child(3) { animation-delay: .22s; }
.tpf-js [data-tpf-reveal]:nth-child(n+4) { animation-delay: .28s; }
.tpf-js .tpf-part[open] > .tpf-part__body { animation: tpf-rise .32s var(--tp-ease) both; }
.tpf-js .tpf-scard.is-entering { animation: tpf-slide .34s var(--tp-ease) both; }
.tpf-js .tpf-cta { animation: tpf-up .5s var(--tp-ease) .35s both; }
.tpf-js .tpf-lightbox[open] .tpf-lightbox__fig { animation: tpf-zoom-in .26s var(--tp-ease) both; }
@media (prefers-reduced-motion: reduce) {
  .tpf-js .tpf-hero__inner > *,
  .tpf-js [data-tpf-reveal],
  .tpf-js .tpf-part[open] > .tpf-part__body,
  .tpf-js .tpf-scard.is-entering,
  .tpf-js .tpf-cta,
  .tpf-js .tpf-lightbox[open] .tpf-lightbox__fig { animation-name: tpf-fade; animation-duration: .45s; }
  .tpf-btn:active, .tpf-lesson-item:active { transform: none; }
  .tpf-lesson-item:hover .tpf-lesson-item__cta .tpi { transform: none; }
  html { scroll-behavior: auto; }
}
