/* For Teachers page: "How it works" as a sideways strip of ruled steps (PRD T1–T3) */
.hiw-shell { position: relative; }
.hiw-strip { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scroll-padding-inline: var(--gutter, 20px); scrollbar-width: none; padding: 0 0 28px; outline: 0; }
.hiw-strip::-webkit-scrollbar { display: none; }
.hiw-strip:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
.hiw-track { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0 var(--gutter, 20px); width: max-content; }
.hiw-card { list-style: none; scroll-snap-align: start; flex: 0 0 min(76vw, 290px); display: grid; gap: 12px; align-content: start; padding-top: 22px; border-top: 1px solid var(--rule-dark); }
.paper .hiw-card { border-top-color: var(--rule-paper); }
.hiw-n { font: 500 3.4rem/1 var(--serif); color: var(--orange); font-variant-numeric: lining-nums; }
.hiw-n::before { content: "0"; }
.hiw-card b { font: 600 1.5rem/1.15 var(--serif); letter-spacing: -.01em; }
.hiw-d { color: var(--on-dark-2); font-size: 1rem; line-height: 1.55; }
.paper .hiw-d { color: var(--on-paper-2); }
.hiw-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; margin-top: 8px; }
.hiw-dots { display: flex; gap: 6px; }
.hiw-dots i { width: 28px; height: 2px; background: var(--rule-dark); transition: background .3s; }
.paper .hiw-dots i { background: var(--rule-paper); }
.hiw-dots i.on { background: var(--orange); }
.hiw-hint { display: none; margin: 0; font: 500 .7rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-2); }
@media (hover: none) { .hiw-hint { display: block; } }
.hiw-arrow { position: absolute; top: -78px; z-index: 2; width: 46px; height: 46px; border: 1px solid currentColor; border-radius: 2px; background: transparent; color: inherit; font-size: 1.1rem; transition: background .2s, color .2s; }
.hiw-arrow:hover { background: var(--on-dark); color: var(--ink); }
.hiw-arrow[disabled] { opacity: .3; cursor: default; background: transparent; color: inherit; }
.hiw-prev { right: calc(max(20px, (100vw - var(--wrap)) / 2 + 20px) + 56px); left: auto; }
.hiw-next { right: max(20px, calc((100vw - var(--wrap)) / 2 + 20px)); }
@media (hover: none) { .hiw-arrow { display: none !important; } }
@media (min-width: 900px) {
  .hiw-card { flex-basis: clamp(280px, 25vw, 340px); }
  .hiw-track { padding-left: max(var(--gutter, 20px), calc((100vw - var(--wrap, 1240px)) / 2 + var(--gutter, 20px))); }
  .hiw-strip { scroll-padding-inline: max(var(--gutter, 20px), calc((100vw - var(--wrap, 1240px)) / 2 + var(--gutter, 20px))); }
}

/* a wide photograph under each section heading */
.wide-photo { margin: 0 0 clamp(40px, 6vw, 72px); }
.wide-photo img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.paper .wide-photo .figcap { color: var(--on-paper-2); }
@media (max-width: 600px) { .wide-photo img { aspect-ratio: 4 / 3; } }
