/* Success stories, gallery, timeline, results and course rating summary. */

.st-subnav { margin-bottom: 1.5rem; overflow-x: auto; flex-wrap: nowrap; }
.st-subnav a { white-space: nowrap; }

/* Filters */
.st-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: .75rem 1rem; align-items: end; margin-bottom: 1.75rem; padding: 1rem; border: 1px solid var(--ph-line); border-radius: 10px; background: var(--ph-surface); }
.st-filters .field { margin: 0; }
.st-filters .select, .st-form .input, .st-form .select, .st-form .textarea { font-size: 16px; min-height: 44px; width: 100%; }
.st-filter-go { min-height: 44px; }
[x-cloak] { display: none !important; }
.st-clear { align-self: center; color: var(--ph-muted); text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }

/* Blocks */
.st-block { margin: 2.5rem 0; }
.st-block > h2, .st-block-head h2, .st-h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); color: var(--ph-ink); margin: 0 0 1rem; }
.st-block-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.st-block-head h2 { margin: 0; }
.st-group { display: flex; align-items: baseline; gap: .5rem; font-size: 1rem; color: var(--ph-text); margin: 1.5rem 0 .75rem; padding-bottom: .5rem; border-bottom: 1px solid var(--ph-line); }
.st-group small { color: var(--ph-muted); font-weight: 500; }
.st-empty p { max-width: 52ch; margin: .5rem auto 1.25rem; }
.st-muted { color: var(--ph-muted); margin: 0; }
.st-count { color: var(--ph-muted); margin: 0 0 1rem; }

/* Written stories: varied widths, not a card wall */
.st-stories { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.st-story { margin: 0; padding: 1.25rem; border: 1px solid var(--ph-line); border-left: 3px solid var(--ph-magenta); border-radius: 8px; background: var(--ph-surface); display: flex; flex-direction: column; gap: 1rem; }
.st-story blockquote { margin: 0; color: var(--ph-text); line-height: 1.7; overflow-wrap: anywhere; }
.st-story figcaption { display: flex; align-items: center; gap: .75rem; margin-top: auto; }
.st-story figcaption img, .st-av { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.st-av { display: grid; place-items: center; background: rgba(225, 28, 242, .16); color: #F08CFF; font-weight: 700; font-size: .85rem; }
.st-story strong { display: block; color: var(--ph-ink); }
.st-story small { color: var(--ph-muted); }

/* Video reviews */
.st-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1rem; }
.st-video { border: 1px solid var(--ph-line); border-radius: 10px; background: var(--ph-surface); overflow: hidden; display: flex; flex-direction: column; }
.st-player { position: relative; aspect-ratio: 16 / 9; background: #05010D; display: block; }
.st-player video, .st-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.st-poster { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: linear-gradient(135deg, var(--ph-surface2), var(--ph-bg2)); display: grid; place-items: center; color: #fff; text-decoration: none; }
a.st-poster { position: relative; }
.st-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease-out; }
.st-poster:hover img { transform: scale(1.03); }
.st-play { position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ph-grad); box-shadow: 0 8px 22px -8px rgba(225, 28, 242, .7); }
.st-play .icon { width: 22px; height: 22px; }
.st-poster:focus-visible { outline: 2px solid #F08CFF; outline-offset: -4px; }
.st-ext { position: absolute; bottom: .6rem; left: .75rem; font-size: .8rem; color: var(--ph-ink); background: rgba(10, 1, 24, .75); padding: .2rem .5rem; border-radius: 4px; }
.st-poster-link { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ph-ink); }
.st-video-body { padding: .9rem 1rem 1rem; }
.st-video-body strong { color: var(--ph-ink); display: block; }
.st-video-body small { color: var(--ph-muted); display: block; }
.st-video-body p { margin: .5rem 0 0; color: var(--ph-text); font-size: .92rem; }

/* Course reviews list */
.st-reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 0 1.5rem; margin-bottom: 1rem; }
.st-review { padding: 1.1rem 0; border-top: 1px solid var(--ph-line); }
.st-review header { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.st-review strong { color: var(--ph-ink); }
.st-review p { margin: .4rem 0; color: var(--ph-text); overflow-wrap: anywhere; }
.st-review footer { font-size: .82rem; color: var(--ph-muted); }
.st-review footer a { color: var(--ph-muted); text-decoration: underline; text-underline-offset: 3px; }
.st-review .stars .icon, .st-summary .stars .icon { width: 15px; height: 15px; color: rgba(255, 255, 255, .22); }
.st-review .stars .icon.on, .st-summary .stars .icon.on { color: var(--ph-yellow); }

.st-verified { display: inline-flex; align-items: center; gap: .3rem; font-size: .76rem; font-weight: 600; color: var(--ph-green); }
.st-verified .icon { width: 14px; height: 14px; }
.tc-review .st-verified { margin: 2px 0 2px; }

/* Rating summary on the course page */
.st-summary { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 1.25rem 2rem; align-items: center; padding: 1rem 0 1.25rem; }
.st-summary-avg { display: flex; flex-direction: column; gap: .2rem; }
.st-summary-avg strong { font-size: 2.4rem; line-height: 1; color: inherit; }
.pg-info .st-summary-avg strong, .pg-courses .st-summary-avg strong { color: var(--ph-ink); }
.st-summary-avg small { color: var(--ph-muted, #888); }
.st-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.st-bars li { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) 2.5rem; align-items: center; gap: .6rem; font-size: .85rem; }
.st-bar-label { white-space: nowrap; color: var(--ph-muted, #888); }
.st-bar { height: 8px; border-radius: 4px; background: rgba(196, 140, 255, .14); overflow: hidden; }
.st-bar i { display: block; height: 100%; background: var(--ph-yellow, #f5b301); border-radius: 4px; }
.st-bar-count { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .st-summary { grid-template-columns: minmax(0, 1fr); } }

/* Name choice */
.st-names { border: 0; padding: 0; margin: .25rem 0 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.st-names legend { font-weight: 700; font-size: .9rem; margin-bottom: .4rem; padding: 0; }
.st-name-opt { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: 0 .85rem; border: 1px solid var(--ph-line2, #ccc); border-radius: 8px; cursor: pointer; font-size: .9rem; }
.st-name-opt:has(input:checked) { border-color: var(--ph-magenta, #c514d9); background: rgba(225, 28, 242, .08); }
.st-name-opt input { accent-color: var(--ph-magenta, #c514d9); width: 17px; height: 17px; }

/* Success gallery */
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 1.25rem; margin-bottom: 1.5rem; }
.st-entry { display: flex; flex-direction: column; border: 1px solid var(--ph-line); border-radius: 10px; background: var(--ph-surface); overflow: hidden; }
.st-entry.is-featured { border-color: var(--ph-line2); box-shadow: inset 0 3px 0 var(--ph-magenta); }
.st-entry-photo { position: relative; aspect-ratio: 4 / 3; background: var(--ph-surface2); }
.st-entry-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.st-entry-mono { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.2rem; font-weight: 700; color: rgba(240, 140, 255, .55); letter-spacing: .04em; }
.st-merit { position: absolute; left: .75rem; bottom: .75rem; background: rgba(10, 1, 24, .82); color: var(--ph-ink); font-weight: 700; font-size: .82rem; padding: .25rem .55rem; border-radius: 4px; border: 1px solid var(--ph-line2); }
.st-entry-body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.st-entry-body h3 { margin: 0; font-size: 1.08rem; color: var(--ph-ink); overflow-wrap: anywhere; }
.st-entry-result { margin: 0; color: #F08CFF; font-weight: 600; }
.st-entry-meta { margin: 0; display: grid; gap: .2rem; font-size: .85rem; }
.st-entry-meta div { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: .5rem; }
.st-entry-meta dt { color: var(--ph-muted); }
.st-entry-meta dd { margin: 0; color: var(--ph-text); overflow-wrap: anywhere; }
.st-entry-meta a { color: var(--ph-text); text-decoration: underline; text-underline-offset: 3px; }
.st-entry blockquote { margin: .25rem 0 0; padding-left: .75rem; border-left: 2px solid var(--ph-line2); color: var(--ph-text); font-size: .9rem; line-height: 1.6; }
.st-now { margin: auto 0 0; padding-top: .6rem; border-top: 1px solid var(--ph-line); display: flex; gap: .45rem; align-items: flex-start; font-size: .84rem; color: var(--ph-muted); }
.st-now .icon { width: 15px; height: 15px; flex-shrink: 0; margin-top: .15rem; }

.st-now-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); border-top: 1px solid var(--ph-line); }
.st-now-list li { padding: .9rem 0; border-bottom: 1px solid var(--ph-line); display: flex; flex-direction: column; gap: .15rem; padding-right: 1rem; }
.st-now-list strong { color: var(--ph-ink); }
.st-now-list span { color: var(--ph-text); font-size: .92rem; }
.st-now-list small { color: var(--ph-muted); display: inline-flex; gap: .3rem; align-items: center; }
.st-now-list small .icon { width: 13px; height: 13px; }

.st-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: 2.5rem; padding: 1.5rem; border: 1px solid var(--ph-line2); border-radius: 10px; background: var(--ph-surface); }
.st-cta h2 { margin: 0 0 .25rem; font-size: 1.25rem; color: var(--ph-ink); }
.st-cta p { margin: 0; color: var(--ph-muted); max-width: 60ch; }

/* Timeline */
.st-timeline { list-style: none; margin: 0; padding: 0 0 0 1.5rem; border-left: 1px solid var(--ph-line2); }
.st-year { position: relative; padding: 0 0 2rem 1rem; }
.st-year::before { content: ""; position: absolute; left: calc(-1.5rem - 6px); top: .55rem; width: 11px; height: 11px; border-radius: 50%; background: var(--ph-magenta); box-shadow: 0 0 0 4px var(--ph-bg); }
.st-year.is-empty::before { background: var(--ph-surface3); }
.st-year-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1rem; margin-bottom: .75rem; }
.st-year-head h2 { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); color: var(--ph-ink); }
.st-year-head a { color: var(--ph-muted); display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; }
.st-year-head a .icon { width: 14px; height: 14px; }
.st-top { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: .75rem; }
.st-top li { display: flex; align-items: center; gap: .75rem; padding: .65rem .75rem; border: 1px solid var(--ph-line); border-radius: 8px; background: var(--ph-surface); min-width: 0; }
.st-top img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.st-top span { min-width: 0; }
.st-top strong { display: block; color: var(--ph-ink); overflow-wrap: anywhere; }
.st-top small { color: var(--ph-muted); font-size: .8rem; }

/* Results */
.st-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 0; margin: 0 0 2rem; border-top: 1px solid var(--ph-line); border-bottom: 1px solid var(--ph-line); }
.st-totals div { padding: 1rem 1rem 1rem 0; }
.st-totals dt { color: var(--ph-muted); font-size: .85rem; }
.st-totals dd { margin: .2rem 0 0; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); font-weight: 700; color: var(--ph-ink); font-variant-numeric: tabular-nums; }
.st-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.st-chart { margin: 0; padding: 1rem; border: 1px solid var(--ph-line); border-radius: 10px; background: var(--ph-surface); }
.st-chart figcaption { color: var(--ph-ink); font-weight: 600; margin-bottom: .5rem; }
.st-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.st-chart .st-gridline { stroke: rgba(196, 140, 255, .12); stroke-width: 1; }
.st-chart .st-axis { stroke: rgba(196, 140, 255, .35); stroke-width: 1; }
.st-chart .st-tick { fill: var(--ph-muted); font-size: 12px; }
.st-chart .st-val { fill: var(--ph-text); font-size: 12px; font-weight: 600; }
.st-chart .st-hit { fill: transparent; }
.st-chart .st-mark:hover .st-hit { fill: rgba(196, 140, 255, .07); }
.st-c-passed { fill: #D24AE6; background: #D24AE6; }
.st-c-appeared { fill: #6E5BA8; background: #6E5BA8; }
.st-legend { list-style: none; margin: 0 0 .5rem; padding: 0; display: flex; gap: 1rem; font-size: .85rem; color: var(--ph-text); }
.st-legend li { display: inline-flex; align-items: center; gap: .4rem; }
.st-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

.st-table-wrap { overflow-x: auto; border: 1px solid var(--ph-line); border-radius: 10px; }
.st-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 720px; }
.st-table th, .st-table td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--ph-line); color: var(--ph-text); }
.st-table thead th { color: var(--ph-muted); font-weight: 600; font-size: .8rem; background: var(--ph-surface); }
.st-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-table tfoot th, .st-table tfoot td { color: var(--ph-ink); font-weight: 700; border-bottom: 0; }
.st-table .st-note { color: var(--ph-muted); font-size: .85rem; min-width: 12rem; }

/* Forms */
.st-form-wrap { max-width: 760px; }
.st-form .form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0 1rem; }
.st-help { display: block; color: var(--ph-muted); font-size: .82rem; margin-top: .35rem; }
.st-fieldset { border: 1px solid var(--ph-line); border-radius: 8px; padding: .75rem 1rem 0; margin: 0 0 1.1rem; }
.st-fieldset legend { font-weight: 700; font-size: .9rem; padding: 0 .35rem; }
.st-consent { margin: .5rem 0 1.25rem; }
.st-note-box { padding: .75rem 1rem; border: 1px solid var(--ph-line2); border-radius: 8px; color: var(--ph-text); margin: 0 0 1rem; }
.st-tips { margin: 0 0 1.25rem; padding-left: 1.1rem; color: var(--ph-muted); font-size: .9rem; display: grid; gap: .3rem; }
.st-warn { color: var(--ph-yellow); font-size: .88rem; margin: .4rem 0 0; }
.st-or { display: flex; align-items: center; gap: .75rem; color: var(--ph-muted); font-size: .85rem; margin: 0 0 1rem; }
.st-or::before, .st-or::after { content: ""; flex: 1; height: 1px; background: var(--ph-line); }

@media (prefers-reduced-motion: reduce) {
  .st-poster img { transition: none; }
  .st-poster:hover img { transform: none; }
}
