/* Home proposal (owner, 21 Nov 2026: the feel of the skill test, on our own parts). Beside the real Home; loaded only by www/vd/home_next.html.
   Topics as an index with a big picture and a bar that switches by itself; the programs as a ledger; how enrollment works in a light tone; Join as a trainer as an open section.
   Spacing: tight inside a group (8 to 16), clear between groups (24 to 32), large between sections (88 to 112). Hierarchy by scale and weight, hairlines instead of boxes. */

.hn-topics, .hn-led, .hn-how, .hn-join { padding-block: clamp(64px, 8vw, 112px); }
.hn-topics .sec__head, .hn-led .sec__head { margin-bottom: 40px; }
.hn-topics .sec__head h2, .hn-led .sec__head h2, .hn-how h2, .hn-join h2 { font-size: clamp(34px, 4.2vw, 54px); line-height: 1.05; letter-spacing: -.02em; }

/* topics: index on one side, picture and programs on the other */
.hn-b { display: grid; grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.hn-b__l { display: grid; border-top: 1px solid var(--line2); }
.hn-b__t { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 18px 20px 18px 0; border: 0; border-bottom: 1px solid var(--line2); background: none; text-align: start; cursor: pointer; font: 600 19px/1.25 var(--f-slab); color: var(--ink); transition: color .2s, padding .3s var(--ease); }
[dir="rtl"] .hn-b__t { padding: 18px 0 18px 20px; }
.hn-b__t b { font: 500 14px var(--f-body); color: var(--muted); font-variant-numeric: tabular-nums; }
.hn-b__t:hover { color: var(--indigo); }
.hn-b__t:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.hn-b__t[aria-selected="true"] { background: var(--ink); color: var(--on-ink); padding-inline-start: 20px; border-radius: 6px; border-bottom-color: transparent; }
.hn-b__t[aria-selected="true"] b { color: var(--on-ink-m); }
.hn-b__bar { position: absolute; inset-inline: 20px; bottom: 6px; height: 2px; border-radius: 2px; background: rgba(246, 247, 253, .22); overflow: hidden; display: none; }
.hn-b__t[aria-selected="true"] .hn-b__bar { display: block; }
.hn-b__bar::after { content: ""; position: absolute; inset: 0; background: var(--accent-h); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .hn-b__bar::after { transform-origin: right; }
.hn-b.is-auto .hn-b__t[aria-selected="true"] .hn-b__bar::after { animation: hn-fill var(--hn-ms, 6500ms) linear forwards; }
.hn-b.is-paused .hn-b__t[aria-selected="true"] .hn-b__bar::after { animation-play-state: paused; }
@keyframes hn-fill { to { transform: scaleX(1); } }
.hn-b__p { display: grid; gap: 20px; animation: hn-in .45s var(--ease); }
.hn-b__p[hidden] { display: none; }
@keyframes hn-in { from { opacity: 0; transform: translateY(8px); } }
.hn-b__img { display: block; border-radius: var(--r-media); overflow: hidden; aspect-ratio: 3 / 2; background: var(--sunken); }
.hn-b__img img { width: 100%; height: 100%; object-fit: cover; }
.hn-b__p h3 { font: 700 clamp(24px, 2.4vw, 30px)/1.15 var(--f-display); }
.hn-b__p h3 a { text-decoration: none; }
.hn-b__ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line2); }
.hn-b__ul li { border-bottom: 1px solid var(--line); }
.hn-b__ul a { display: grid; grid-template-columns: minmax(0, 1fr) 110px 80px 70px; gap: 16px; align-items: baseline; padding: 14px 0; text-decoration: none; font-size: 15px; }
.hn-b__ul a:hover .hn-b__pt { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.hn-b__pt { font-weight: 600; } .hn-b__pv, .hn-b__ph { color: var(--muted); font-size: 13.5px; }
.hn-b__pp { font-weight: 700; text-align: end; font-variant-numeric: tabular-nums; }
.hn-b__p > .link { justify-self: start; }

/* the programs as a ledger */
.hn-l { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.hn-l li { border-bottom: 1px solid var(--line2); }
.hn-l__row { display: grid; grid-template-columns: 200px minmax(0, 1fr) 96px 140px 170px; gap: clamp(16px, 2.4vw, 36px); align-items: center; padding: 22px 0; text-decoration: none; }
.hn-l__im { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 3 / 2; background: var(--sunken); }
.hn-l__im img { width: 100%; height: 100%; object-fit: cover; }
.hn-l__tx { display: grid; gap: 4px; min-width: 0; }
.hn-l__tx small { color: var(--muted); font-size: 13px; }
.hn-l__tx b { font: 700 clamp(20px, 2vw, 26px)/1.15 var(--f-display); }
.hn-l__tx span { color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 58ch; }
.hn-l__h { text-align: center; color: var(--muted); font-size: 14px; } .hn-l__h b { display: block; font: 700 22px var(--f-body); color: var(--ink); }
.hn-l__pr { display: flex; align-items: baseline; gap: 6px; justify-content: flex-end; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hn-l__pr b { font: 700 clamp(30px, 3vw, 42px)/1 var(--f-display); } .hn-l__pr small { color: var(--muted); font-size: 14px; white-space: normal; text-align: end; }
.hn-l__go { justify-self: end; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; border-bottom: 2px solid var(--accent); padding-bottom: 3px; }
.hn-l__go svg { width: 16px; height: 16px; flex: none; } [dir="rtl"] .hn-l__go svg { transform: scaleX(-1); }
.hn-l__row:hover .hn-l__tx b { color: var(--indigo); }
.hn-l__row:hover .hn-l__go { gap: 12px; }

/* how enrollment works: light tone, numbered, open */
.hn-how { background: var(--surface); border-block: 1px solid var(--line); }
.hn-how__g { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.hn-how__l { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 0; }
.hn-how__l li { counter-increment: s; display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 20px; padding-block: 20px; border-bottom: 1px solid var(--line2); }
.hn-how__l li:first-child { border-top: 1px solid var(--line2); padding-top: 22px; }
.hn-how__l li::before { content: counter(s); grid-row: span 2; font: 700 30px/1 var(--f-display); color: var(--purple); }
.hn-how__l b { font: 700 20px/1.25 var(--f-slab); } .hn-how__l span { color: var(--muted); font-size: 16px; max-width: 56ch; margin-top: 4px; }

/* Join as a trainer: open, one line and one button */
.hn-join__g { display: flex; align-items: end; justify-content: space-between; gap: 32px; flex-wrap: wrap; border-top: 2px solid var(--ink); padding-top: 40px; }
.hn-join p { color: var(--muted); margin-top: 12px; font-size: 18px; max-width: 46ch; }

@media (max-width: 1000px) {
  .hn-b { grid-template-columns: 1fr; gap: 28px; }
  .hn-b__l { display: flex; overflow-x: auto; border-top: 0; gap: 8px; padding-bottom: 6px; scrollbar-width: none; }
  .hn-b__l::-webkit-scrollbar { display: none; }
  .hn-b__t { flex: none; width: auto; padding: 12px 18px; border: 1px solid var(--line2); border-radius: 99px; font-size: 16px; gap: 10px; }
  [dir="rtl"] .hn-b__t { padding: 12px 18px; }
  .hn-b__t[aria-selected="true"] { border-color: var(--ink); }
  .hn-b__bar { inset-inline: 18px; bottom: 5px; }
  .hn-l__row { grid-template-columns: 140px minmax(0, 1fr) 150px; }
  .hn-l__h, .hn-l__tx span { display: none; }
  .hn-l__go { grid-column: 2 / -1; justify-self: start; }
  .hn-how__g { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hn-b__ul a { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; } .hn-b__pv, .hn-b__ph { display: none; }
  .hn-l__row { grid-template-columns: 96px minmax(0, 1fr); gap: 12px 16px; padding: 18px 0; }
  .hn-l__pr { grid-column: 2; justify-content: flex-start; } .hn-l__pr b { font-size: 26px; } .hn-l__go { grid-column: 1 / -1; }
  .hn-join__g { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .hn-b__p { animation: none; } .hn-b.is-auto .hn-b__t[aria-selected="true"] .hn-b__bar::after { animation: none; transform: scaleX(1); } }
