/* Student's Review and Success Gallery (public pages and their dashboard copies), laid out like the old site in the glass look.
   Built on the glass theme tokens (theme-base.css), so the dark and the bright theme both work. */
:root { --sx-violet: var(--g-accent); --sx-gold: #facc15; --sx-band: var(--g-year); }
:root[data-theme="light"] { --sx-gold: #f59e0b; }

.sx-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sx-i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sx { padding-top: 14px; }
.sx h1, .sx h2 { overflow-wrap: anywhere; }

/* Breadcrumb, search, the big button */
.sx-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 calc(8px - var(--g-gap, 14px)); font-size: 15px; color: var(--g-muted); }
.sx-crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--g-accent); font-weight: 700; }
.sx-search { position: relative; margin-bottom: 12px; }
.sx-search .sx-i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--g-muted); pointer-events: none; }
.sx-search input { width: 100%; min-height: 50px; padding: 8px 16px 8px 46px; font: inherit; font-size: 16px; color: var(--g-text); background: var(--g-field); border: 1px solid var(--g-line); border-radius: 16px; }
.sx-search input:focus { outline: none; border-color: var(--g-accent); }
.sx-cta { margin: 0; }

/* Heading row with the sort menu at the right */
.sx-listhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin: 0 0 12px; }
.sx-listhead h1 svg, .sx-listhead h2 > svg:first-child { display: inline-block; width: 24px; height: 24px; margin-right: 8px; vertical-align: -4px; color: var(--g-accent); }
.sx-listhead h1, .sx-listhead h2 { font-size: clamp(22px, 5.6vw, 28px); font-weight: 700; }
.sx-listhead p { color: var(--g-muted); font-size: 15px; }
.sx-sort select, .sx-filters select { min-height: 44px; padding: 6px 36px 6px 14px; font: inherit; font-size: 15px; color: var(--g-text); background: var(--g-field); border: 1px solid var(--g-tile-line); border-radius: 12px; max-width: 100%;
  -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--g-muted) 50%), linear-gradient(135deg, var(--g-muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }

/* Review cards: one column on phones, two or three on wider screens */
.rv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; align-items: start; }
.rv { min-width: 0; }
.rv-who b { display: block; line-height: 1.3; }
.rv-who small { font-size: 14px; line-height: 1.35; }
.rv-noface { background: var(--g-field); color: var(--g-muted); }
.rv-noface .sx-i { width: 28px; height: 28px; }
.rv-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--g-muted); }
.rv-stars { display: inline-flex; align-items: center; gap: 2px; }
.rv-stars svg { width: 16px; height: 16px; fill: var(--sx-gold); }
.rv-stars svg.off { fill: var(--g-line); }
.rv-stars b { margin-left: 6px; color: var(--g-text); font-size: 15px; }
.rv-text { white-space: pre-line; overflow-wrap: anywhere; font-size: 16px; line-height: 1.65; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
.rv-more:checked + .rv-text { display: block; -webkit-line-clamp: unset; line-clamp: none; }
.rv-toggle { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; margin-top: -10px; color: var(--g-accent); font-size: 14px; font-weight: 700; cursor: pointer; }
.rv-toggle span + span, .rv-more:checked ~ .rv-toggle span:first-child { display: none; }
.rv-more:checked ~ .rv-toggle span + span { display: inline; }
.rv-quoted .rv-text { font-style: italic; }
.rv-quoted .rv-text::before { content: "\201C"; }
.rv-quoted .rv-text::after { content: "\201D"; }
.rv-shot, .rv-shot img { max-height: 380px; }
.rv-video, .rv-frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; overflow: hidden; background: #000; }
.rv-video img { width: 100%; height: 100%; object-fit: cover; opacity: .88; }

/* "Share Your Success Story" form */
.sx-share { margin: 0; }
.sx-share h2 { font-size: 22px; margin-bottom: 2px; }
.sx-sub { color: var(--g-muted); font-size: 15px; margin-bottom: 14px; }
.sx-ok { padding: 10px 14px; margin-bottom: 14px; border-radius: 12px; border: 1px solid var(--g-green-text); color: var(--g-green-text); font-size: 16px; }
.sx-form { display: grid; gap: 14px; }
.sx-form > label, .sx-file { display: grid; gap: 6px; font-weight: 700; font-size: 16px; color: var(--g-text); }
.sx-form i { color: var(--g-pink-text); font-style: normal; }
.sx-form small { font-weight: 400; color: var(--g-muted); font-size: 13.5px; }
.sx-form input[type=text], .sx-form textarea { width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; font-size: 16px; font-weight: 400; color: var(--g-text); background: var(--g-field); border: 1px solid var(--g-tile-line); border-radius: 12px; }
.sx-form textarea { resize: vertical; min-height: 120px; }
.sx-form input:focus, .sx-form textarea:focus { outline: none; border-color: var(--g-accent); }
.sx-form .err { font-style: normal; font-weight: 400; font-size: 14px; color: var(--g-pink-text); }
.sx-count { justify-self: end; }
.sx-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sx-rate { border: 0; margin: 0; padding: 0; min-width: 0; }
.sx-rate legend { padding: 0; margin-bottom: 6px; font-weight: 700; font-size: 16px; color: var(--g-text); }
.sx-rate-row { display: flex; align-items: center; gap: 12px; }
.sx-rate-stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.sx-rate-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sx-rate-stars label { display: grid; place-items: center; width: 40px; height: 40px; cursor: pointer; border-radius: 10px; }
.sx-rate-stars svg { width: 32px; height: 32px; fill: var(--g-line); transition: fill .12s; }
.sx-rate-stars input:checked ~ label svg, .sx-rate-stars label:hover svg, .sx-rate-stars label:hover ~ label svg { fill: var(--sx-gold); }
.sx-rate-stars input:focus-visible + label { outline: 3px solid var(--g-accent); }
.sx-rate-num { font-size: 20px; color: var(--g-text); }
.sx-upload { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 8px 18px; justify-self: start; max-width: 100%; border: 1px dashed var(--g-accent); border-radius: 12px; background: var(--g-field); color: var(--g-accent); font-weight: 700; cursor: pointer; }
.sx-upload span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.sx-upload:focus-within { outline: 3px solid var(--g-accent); outline-offset: 2px; }

/* Success Gallery: heading with confetti */
.sx-hero { text-align: center; }
.sx-hero h1 { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: clamp(22px, 6vw, 34px); font-weight: 700; }
.sx-hero p { color: var(--g-muted); font-size: 15.5px; margin-top: 8px; }
.sx-confetti { position: relative; flex: none; width: 30px; height: 30px; }
.sx-confetti i { position: absolute; width: 6px; height: 11px; border-radius: 2px; }
.sx-confetti i:nth-child(1) { left: 2px; top: 3px; background: #f59e0b; transform: rotate(-30deg); }
.sx-confetti i:nth-child(2) { left: 14px; top: 0; background: #ec4899; transform: rotate(20deg); }
.sx-confetti i:nth-child(3) { left: 22px; top: 12px; width: 7px; height: 7px; border-radius: 99px; background: #22c55e; }
.sx-confetti i:nth-child(4) { left: 6px; top: 17px; background: #8b5cf6; transform: rotate(50deg); }
.sx-confetti i:nth-child(5) { left: 16px; top: 22px; width: 6px; height: 6px; border-radius: 99px; background: #0ea5e9; }
.sx-confetti.flip { transform: scaleX(-1); }

/* Year cards: two per row on phones, up to four on wide screens. The running year is solid violet. */
.sx-years { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
@media (min-width: 760px) { .sx-years { grid-template-columns: repeat(auto-fit, minmax(max(200px, calc(25% - 9px)), 1fr)); } }
.sx-year { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px; border-radius: var(--g-r-tile); background: var(--g-tile); border: 1px solid var(--g-tile-line); min-width: 0; }
.sx-year small { color: var(--g-muted); font-size: 15px; font-weight: 700; }
.sx-year b { color: var(--sx-violet); font-size: clamp(26px, 7vw, 34px); font-weight: 700; line-height: 1.15; }
.sx-year p { font-size: 14.5px; color: var(--g-muted); line-height: 1.4; }
.sx-chip { display: grid; place-items: center; width: 38px; height: 38px; margin-top: 10px; border-radius: 99px; background: rgba(139, 92, 246, .16); color: var(--sx-violet); }
.sx-year.now { background: var(--sx-band); border-color: #7a5cf0; box-shadow: 0 10px 24px rgba(74, 39, 214, .25); }
.sx-year.now b { color: var(--g-gold); }
.sx-year.now small, .sx-year.now p { color: #e3dcff; }
.sx-year.now .sx-chip { background: rgba(255, 255, 255, .2); color: #fde047; }
.sx-live { position: absolute; top: 10px; right: 10px; padding: 1px 9px; border-radius: 99px; background: #fde047; color: #422006; font-size: 12.5px; font-weight: 700; }

/* Filters */
.sx-filters { display: grid; gap: 12px; margin: 0; }
.sx-filters label { display: grid; gap: 6px; min-width: 0; }
.sx-filters label > span { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; color: var(--g-text); }
.sx-filters label .sx-i { color: var(--sx-violet); width: 16px; height: 16px; }
.sx-filters select { width: 100%; }
.sx-reset, .sx-filters noscript { grid-column: 1 / -1; }
@media (min-width: 760px) { .sx-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Statistics card with the donut */
.sx-chart { margin: 0; }
.sx-chart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sx-chart-head h2 { font-size: 19px; margin: 0; }
.sx-tag { display: inline-flex; align-items: center; gap: 5px; flex: none; padding: 3px 11px; border-radius: 99px; background: rgba(139, 92, 246, .16); color: var(--sx-violet); font-size: 13.5px; font-weight: 700; }
.sx-tag .sx-i { width: 15px; height: 15px; }
.sx-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.sx-pills a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--g-tile-line); background: var(--g-field); font-size: 15px; font-weight: 700; }
.sx-pills a.on { background: var(--g-brand); border-color: var(--g-brand); color: #fff; }
.sx-donut { position: relative; width: min(240px, 72vw); margin: 16px auto; }
.sx-donut svg { display: block; width: 100%; height: auto; }
.sx-donut circle { fill: none; stroke-width: 5.5; }
.sx-donut circle.track { stroke: var(--g-field); }
.sx-donut-mid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.sx-donut-mid b { font-size: clamp(24px, 7vw, 30px); font-weight: 700; color: var(--g-text); line-height: 1.1; }
.sx-donut-mid small { font-size: 12.5px; color: var(--g-muted); }
.sx-chart .sx-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sx-legend li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--g-field); background: color-mix(in srgb, var(--dot) 13%, transparent); font-size: 15.5px; }
.sx-legend i { width: 12px; height: 12px; flex: none; border-radius: 99px; background: var(--dot); }
.sx-legend span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.sx-legend b { color: var(--g-text); }
@media (min-width: 900px) {
  .sx-chart { display: grid; grid-template-columns: 280px 1fr; column-gap: 28px; align-items: center; }
  .sx-chart-head, .sx-pills, .sx-chart .note { grid-column: 1 / -1; }
  .sx-donut { width: 240px; }
}

/* "Our proud students" heading and the Top 100 switch */
.sx-count-tag { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 2px 11px; border-radius: 99px; background: rgba(139, 92, 246, .16); color: var(--sx-violet); font-size: 15px; font-weight: 700; }
.sx-top { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 8px 6px 14px; border-radius: 99px; border: 1px solid var(--g-tile-line); background: var(--g-tile); font-size: 15px; font-weight: 700; max-width: 100%; }
.sx-top .sx-i { color: var(--sx-gold); }
.sx-switch { position: relative; flex: none; width: 38px; height: 22px; border-radius: 99px; background: var(--g-line); transition: background .15s; }
.sx-switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 99px; background: #fff; transition: transform .15s; }
.sx-top.on { border-color: var(--g-brand); }
.sx-top.on .sx-switch { background: var(--g-brand); }
.sx-top.on .sx-switch::after { transform: translateX(16px); }

/* Student cards: one per row on phones, two on tablets, three on computers */
.sc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 640px) { .sc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Beside the dashboard menu the panel is narrower, so three cards wait for a wider screen. */
@media (min-width: 1024px) and (max-width: 1299px) { .sx-dash .sc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sc { display: flex; flex-direction: column; min-width: 0; padding: 8px; border-radius: var(--g-r-tile); overflow: hidden; background: var(--g-tile); border: 1px solid var(--g-tile-line); }
.sc-pic { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--g-icon-bg); }
.sc-pic img { width: 100%; height: 100%; object-fit: cover; }
.sc-nopic { display: grid; place-items: center; height: 100%; color: var(--g-accent); }
.sc-nopic .sx-i { width: 72px; height: 72px; stroke-width: 1.2; }
.sc-badge { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; align-items: center; padding: 6px 10px 5px; border-radius: 12px; background: var(--sx-band); color: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); line-height: 1.1; }
.sc-badge small { font-size: 10px; font-weight: 700; letter-spacing: .6px; font-family: system-ui, sans-serif; }
.sc-badge b { font-size: 24px; font-weight: 700; font-family: system-ui, sans-serif; }
.sc-badge i { display: flex; gap: 1px; }
.sc-badge svg { width: 10px; height: 10px; fill: #fde047; }
.sc-body { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 14px 16px; text-align: center; }
.sc-name { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--sx-violet); font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; line-height: 1.3; }
.sc-name span { min-width: 0; overflow-wrap: anywhere; }
.sx-laurel { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--sx-gold); stroke-width: 1.4; stroke-linecap: round; color: var(--sx-gold); }
.sx-laurel.flip { transform: scaleX(-1); }
.sc-college { display: flex; align-items: flex-start; justify-content: center; gap: 6px; font-size: 15px; color: var(--g-muted); line-height: 1.4; }
.sc-college .sx-i { width: 16px; height: 16px; margin-top: 2px; color: var(--g-muted); }
.sc-roll { padding: 2px 12px; border-radius: 99px; background: var(--g-field); border: 1px solid var(--g-tile-line); font-size: 13.5px; font-family: system-ui, sans-serif; color: var(--g-muted); }
.sc-foot { display: grid; grid-template-columns: 1fr 1fr; margin-top: auto; border-radius: 12px; background: var(--sx-band); color: #fff; }
.sc-foot > div { display: flex; align-items: center; gap: 8px; padding: 10px 12px; min-width: 0; }
.sc-foot > div + div { border-left: 1px solid rgba(255, 255, 255, .22); }
.sc-foot .sx-i { width: 20px; height: 20px; opacity: .9; }
.sc-foot p { min-width: 0; line-height: 1.25; }
.sc-foot small { display: block; font-size: 11px; letter-spacing: .6px; opacity: .8; font-family: system-ui, sans-serif; font-weight: 700; }
.sc-foot b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Numbered pages */
.sx-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 22px 0 6px; }
.sx-pager a, .sx-pager span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; color: var(--g-text); border: 1px solid var(--g-tile-line); background: var(--g-tile); font-size: 15px; font-weight: 700; }
.sx-pager .on { background: var(--g-brand); border-color: var(--g-brand); color: #fff; }
.sx-pager .sx-gap { border: 0; background: none; min-width: 20px; padding: 0; color: var(--g-muted); }
.sx-pager .off { opacity: .45; }

/* Dashboard copies */
.sx-dash { padding-top: 0; }
.sx-dhead { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 14px; }
.sx-dhead h1 { font-size: clamp(21px, 5.4vw, 26px); font-weight: 700; }
.sx-dhead p { color: var(--g-muted); font-size: 15.5px; }
.sx-dhead .btn { margin-top: 4px; width: auto; }
.sx-showing { display: flex; justify-content: space-between; gap: 10px; margin: 2px 0 12px; font-size: 14px; color: var(--g-muted); }

@media (prefers-reduced-motion: reduce) { .sx-rate-stars svg, .sx-switch, .sx-switch::after { transition: none; } }

/* ---------- Public pages in the glass layout (.sx-page on a .g-page) ---------- */
.sx-page .sx-listhead h1 { margin: 0; font-size: 25px; line-height: 1.3; }
.sx-page .sx-listhead p { margin: 2px 0 0; }
.sx-page .sx-search { margin: 0; }
.sx-page .sx-hero { display: flex; flex-direction: column; gap: 12px; }
.sx-page .sx-hero p { margin: 0; }
.sx-page .sx-hero .sx-years { margin-top: 6px; text-align: left; }
.sx-page .sx-chart .note { margin: 10px 0 0; font-size: 14px; color: var(--g-muted); }
.sx-filters { padding: 14px; }
.sx-empty { margin: 0; text-align: center; color: var(--g-muted); }
.rv { padding: 14px; }
@media (min-width: 1024px) { .sx-page .sx-listhead h1 { font-size: 34px; } .sx-page .sx-listhead h1 svg { width: 30px; height: 30px; vertical-align: -5px; } }
/* A review with no photo shows a cartoon face (App\Support\CartoonFace) filling the round box. */
.rv-cartoon { padding: 0; overflow: hidden; background: transparent; }
.rv-cartoon svg { display: block; width: 100%; height: 100%; }
