/* Skill test detail page (Views/SkillTest/SkillTest.cshtml). Needs st-theme.css (tokens, .st-wrap/.st-section/.st-h1..). Classes prefixed std-.
   Leaderboard = shared _SkillBoard partial (st-board.css, prefix stb-), test mode.
   Type = site scale (st-theme.css): headings 800/700, buttons 700, body 400/500. ONE container (.st-wrap) for every section.
   Vivid accents stay in the site's cyan > blue family with one indigo stop. Motion: transform/opacity, IntersectionObserver reveals, all off under prefers-reduced-motion. */
.std *, .std *::before, .std *::after { box-sizing: border-box; }
.std { overflow-x: clip; --std-r1: 12px; --std-r2: 16px; --std-r3: 20px; --std-ease: cubic-bezier(.16, 1, .3, 1);
  --std-ind: #6366f1; --std-g3: linear-gradient(100deg, #0891b2, #2563eb 55%, #6366f1);
  --std-n1: linear-gradient(135deg, #0e7490, #1d4ed8); --std-n2: linear-gradient(135deg, #1d4ed8, #4f46e5); --std-n3: linear-gradient(135deg, #0b6f8c, #4338ca);
  --st-r: var(--std-r2); --st-r-lg: var(--std-r3); --st-r-sm: var(--std-r1); }
[data-bs-theme="dark"] .std { --std-ind: #818cf8; --std-g3: linear-gradient(100deg, #22d3ee, #60a5fa 55%, #a5b4fc); }
.std i.bi { line-height: 1; }
:where(.std) :where(h1,h2,h3,p,ol,ul,dl,dd) { margin: 0; padding: 0; }
:where(.std) :where(ol,ul) { list-style: none; }
:where(.std) a { text-decoration: none; }
.std :focus-visible { outline: 2px solid var(--st-a); outline-offset: 3px; box-shadow: 0 0 0 5px var(--st-ring); border-radius: 8px; }
.std b, .std strong { font-weight: 700; }
.std-sec { background: var(--st-bg); }
.std-sec--alt { background: var(--st-bg2); border-block: 1px solid var(--st-line); }
.std-wash { background: radial-gradient(760px 320px at 92% 8%, color-mix(in srgb, var(--std-ind) 11%, transparent), transparent 70%), radial-gradient(700px 300px at 0 90%, color-mix(in srgb, var(--st-a) 11%, transparent), transparent 70%), var(--st-bg); }
.std-sub { margin-top: 16px; }
.std p, .std li { text-wrap: pretty; }
.std-sub + * { margin-top: clamp(28px, 3.5vw, 44px); }
.std .std-u + :is(.std-lists, .std-faq, .std-rich, .std-rep4) { margin-top: clamp(28px, 3.5vw, 44px); }

/* heading underline: draws in when the heading is revealed */
.std-u { position: relative; display: inline-block; padding-bottom: 16px; }
.std-u::after { content: ""; position: absolute; left: 0; bottom: 0; width: 84px; height: 5px; border-radius: 99px; background: linear-gradient(90deg, #0891b2, #2563eb, #6366f1, #0891b2); background-size: 200% 100%; transform-origin: left; }
.std-js .std-u.std-rv:not(.is-in)::after { transform: scaleX(0); }
.std-u.is-in::after, .std-rv.is-in .std-u::after { transition: transform .8s var(--std-ease) .2s; }
.std-how .std-u::after { transform: none; }

/* scroll reveal: .std-rv fades in; .std-stg children stagger by --i */
.std-js .std-rv:not(.is-in) { opacity: 0; }
.std-js .std-rv.std-stg:not(.is-in) > *, .std-js .std-rv:not(.is-in) .std-stg > * { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .std-js .std-rv.is-in { animation: std-in .7s var(--std-ease) backwards; animation-delay: calc(min(var(--i, 0), 6) * 80ms); }
  .std-js .std-rv.std-stg.is-in > *, .std-js .std-rv.is-in .std-stg > * { animation: std-in .6s var(--std-ease) backwards; animation-delay: calc(min(var(--i, 0), 12) * 55ms); }
  .std-u::after { animation: std-shine 5s linear infinite; }
}
@keyframes std-in { from { opacity: 0; transform: translateY(22px); } }
@keyframes std-shine { to { background-position: 200% 0; } }
@keyframes std-float { 50% { transform: translate3d(0, -10px, 0); } }
@keyframes std-spin { to { transform: rotate(360deg); } }
@keyframes std-drift { 50% { transform: translate3d(14px, -12px, 0); } }
@keyframes std-sweep { to { background-position: 300% 0; } }

/* ---------- buttons ---------- */
.std-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px;
  border: 1px solid transparent; border-radius: 999px; font: inherit; font-size: 1rem; font-weight: 700; white-space: nowrap; cursor: pointer;
  transition: transform .2s var(--std-ease), box-shadow .25s, background .2s, color .2s, border-color .2s;
}
.std-btn i { transition: transform .25s var(--std-ease); }
.std-btn:hover i { transform: translateX(4px); }
.std-btn:active { transform: translateY(0) scale(.985); }
.std-btn--main { background: var(--st-grad); color: var(--st-on-grad); box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 16px 28px -14px rgba(8,145,178,.75); }
.std-btn--main:hover { color: var(--st-on-grad); transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 22px 34px -14px rgba(37,99,235,.75); }
.std-btn--ghost { background: var(--st-panel); color: var(--st-ink); border-color: var(--st-line); }
.std-btn--ghost:hover { color: var(--st-a-ink); border-color: var(--st-a); transform: translateY(-2px); }
.std-btn--light { background: #fff; color: #0b3a66; box-shadow: 0 14px 26px -16px rgba(0,0,0,.5); }
.std-btn--light:hover { color: #0b3a66; transform: translateY(-2px); }
.std-btn--lg { min-height: 58px; padding: 0 34px; }
.std-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--st-a-ink); min-height: 44px; }
.std-link i { transition: transform .25s; }
a:hover > .std-link i, .std-link:hover i { transform: translateX(4px); }

/* ---------- hero: copy cols 1-6 (test image, facts, CTA), board cols 7-12 ---------- */
.std-hero { position: relative; padding: clamp(16px, 2vw, 28px) 0 clamp(32px, 4vw, 56px); overflow: hidden; isolation: isolate;
  background: radial-gradient(720px 380px at 8% -8%, color-mix(in srgb, var(--st-a) 20%, transparent), transparent 70%), radial-gradient(760px 460px at 96% 10%, color-mix(in srgb, var(--std-ind) 18%, transparent), transparent 70%), var(--st-bg); }
.std-crumb { margin-bottom: clamp(16px, 2.4vw, 32px); font-size: 14px; }
.std-crumb :is(ol,ul,nav,div) { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.std-crumb a { color: var(--st-a-ink); }
.std-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px var(--st-gap); align-items: center; }
@media (min-width: 992px) {
  .std-hero__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .std-hero__copy { grid-column: 1 / span 6; }
  .std-hero__card { grid-column: 7 / -1; }
}
.std-hero__copy { display: grid; gap: 20px; justify-items: start; min-width: 0; }
.std-hero__card { min-width: 0; }
.std-hero .st-h1 { overflow-wrap: break-word; }
.std-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.std-hero #leaderboard { scroll-margin-top: 90px; }

/* test image tile: soft glow, slow float, orbit ring; facts float beside it */
.std-art { margin-bottom: 14px; display: flex; align-items: center; flex-wrap: wrap; gap: 20px 28px; }
.std-art__tile { position: relative; flex: none; display: grid; place-items: center; width: 168px; height: 168px; border-radius: 36px; isolation: isolate;
  background: linear-gradient(150deg, #ffffff, #e6f3fb); border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 1px 0 #fff inset, 0 30px 60px -24px color-mix(in srgb, var(--st-b) 70%, transparent), 0 0 0 10px color-mix(in srgb, var(--st-a) 10%, transparent); }
.std-art__tile::before { content: ""; position: absolute; inset: -34px; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--st-a) 38%, transparent), transparent); filter: blur(6px); }
.std-art__tile::after { content: ""; position: absolute; inset: -16px; z-index: -1; border-radius: 48px; border: 2px dashed color-mix(in srgb, var(--st-a) 45%, transparent); }
[data-bs-theme="dark"] .std-art__tile { background: linear-gradient(150deg, #f4faff, #cfe6f5); border-color: rgba(255,255,255,.35); box-shadow: 0 1px 0 #fff inset, 0 30px 70px -20px rgba(34,211,238,.45), 0 0 0 10px rgba(34,211,238,.08); }
.std-art__tile img { position: relative; width: 104px; height: 104px; object-fit: contain; }
.std-art__ini { font-size: 3rem; font-weight: 800; letter-spacing: -.04em; background: var(--std-g3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.std-art__tile.has-img .std-art__ini { display: none; }
.std-chips { display: grid; gap: 10px; }
.std-chips li { display: inline-flex; align-items: center; gap: 10px; justify-self: start; min-height: 44px; padding: 0 18px 0 12px; border-radius: 999px; background: var(--st-panel); border: 1px solid var(--st-line); box-shadow: var(--st-shadow); color: var(--st-body); font-size: .9375rem; white-space: nowrap; }
.std-chips li i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--std-n1); color: #fff; font-size: .875rem; }
.std-chips li:nth-child(2) i { background: var(--std-n2); }
.std-chips li:nth-child(3) i { background: var(--std-n3); }
.std-chips li b { color: var(--st-ink); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) {
  .std-art__tile { animation: std-float 6s ease-in-out infinite; }
  .std-art__tile::after { animation: std-spin 40s linear infinite; }
  .std-chips li { animation: std-float 5s ease-in-out infinite; }
  .std-chips li:nth-child(2) { animation-delay: -1.6s; margin-left: 18px; }
  .std-chips li:nth-child(3) { animation-delay: -3.2s; }
  .std-hero__copy > * { animation: std-in .6s var(--std-ease) backwards; }
  .std-hero__copy > :nth-child(2) { animation-delay: .06s; } .std-hero__copy > :nth-child(3) { animation-delay: .12s; } .std-hero__copy > :nth-child(4) { animation-delay: .18s; }
  .std-art { animation-name: std-in; }
  .std-hero__card { animation: std-in .7s .1s var(--std-ease) backwards; }
}

/* ---------- syllabus + report ---------- */
.std-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px var(--st-gap); align-items: start; }
@media (min-width: 992px) { .std-split { grid-template-columns: repeat(12, minmax(0, 1fr)); } .std-split__main { grid-column: 1 / 9; } .std-report { grid-column: 9 / 13; } }
.std-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 12px; }
.std-topics li { position: relative; display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 14px 18px 14px 14px; border-radius: var(--std-r2); border: 1px solid var(--st-line); background: var(--st-panel); color: var(--st-ink); font-size: 16px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; transition: transform .25s var(--std-ease), border-color .2s, box-shadow .25s, background .25s; }
.std-topics li:hover { transform: translateY(-3px); border-color: var(--st-a); box-shadow: 0 18px 30px -22px var(--st-b); background: color-mix(in srgb, var(--st-a) 6%, var(--st-panel)); }
.std-topics__n { flex: none; display: grid; place-items: center; min-width: 38px; height: 38px; border-radius: var(--std-r1); background: var(--std-n1); color: #fff; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; transition: transform .3s var(--std-ease); }
.std-topics li:nth-child(3n+2) .std-topics__n { background: var(--std-n2); }
.std-topics li:nth-child(3n) .std-topics__n { background: var(--std-n3); }
.std-topics li:hover .std-topics__n { transform: rotate(-8deg) scale(1.1); }
.std-report { position: relative; padding: 28px; border: 1px solid var(--st-line); border-radius: var(--std-r3); background: var(--st-panel); box-shadow: var(--st-shadow); overflow: hidden; }
.std-report::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--std-g3); }
.std-report__sub { margin: 4px 0 16px; font-size: 14px; color: var(--st-muted); }
.std-report ul { display: grid; gap: 0; margin-bottom: 24px; }
.std-report .std-btn { width: 100%; }
.std-report li { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-top: 1px solid var(--st-line); color: var(--st-body); font-size: 16px; line-height: 1.4; }
.std-report li:first-child { border-top: 0; }
.std-report li i { flex: none; margin-top: 2px; color: var(--st-a-ink); font-size: 18px; }
.std-report li b { display: block; color: var(--st-ink); }
.std-rep4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: var(--st-gap); }
.std-rep4 li { display: grid; gap: 4px; align-content: start; padding: 24px; border-radius: var(--std-r2); background: var(--st-panel); border: 1px solid var(--st-line); transition: transform .25s var(--std-ease), border-color .2s; }
.std-rep4 li:hover { transform: translateY(-3px); border-color: var(--st-a); }
.std-rep4 i { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 8px; border-radius: var(--std-r1); background: var(--std-n1); color: #fff; font-size: 20px; }
.std-rep4 li:nth-child(2) i { background: var(--std-n2); } .std-rep4 li:nth-child(3) i { background: var(--std-n3); }
.std-rep4 b { color: var(--st-ink); font-size: 18px; }
.std-rep4 small { color: var(--st-muted); font-size: 14px; }

/* ---------- why + gain: two vivid panels ---------- */
.std-lists { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--st-gap); }
@media (min-width: 900px) { .std-lists:not(.std-lists--one) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.std-list { position: relative; padding: clamp(22px, 2.6vw, 32px); border-radius: var(--std-r3); border: 1px solid var(--st-line); background: var(--st-panel); box-shadow: var(--st-shadow); overflow: hidden; transition: transform .3s var(--std-ease), border-color .2s; }
.std-list::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--std-n1); }
.std-list::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--st-a) 18%, transparent), transparent); pointer-events: none; }
.std-list--b::before { background: var(--std-n2); }
.std-list--b::after { background: radial-gradient(closest-side, color-mix(in srgb, var(--std-ind) 20%, transparent), transparent); }
.std-list:hover { transform: translateY(-4px); border-color: var(--st-a); }
.std-list__h { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.std-ic { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: var(--std-r2); background: var(--std-n1); color: #fff; font-size: 1.35rem; box-shadow: 0 12px 22px -12px var(--st-b); transition: transform .35s var(--std-ease); }
.std-list--b .std-ic { background: var(--std-n2); }
.std-list:hover .std-ic { transform: rotate(-8deg) scale(1.08); }
.std-list ul { position: relative; display: grid; gap: 4px; }
.std-list li { display: flex; align-items: flex-start; gap: 14px; padding: 12px 10px; margin-inline: -10px; border-radius: var(--std-r1); transition: transform .25s var(--std-ease), background .25s; }
.std-list li:hover { transform: translateX(5px); background: var(--st-soft); }
.std-list li > i { flex: none; display: grid; place-items: center; width: 28px; height: 28px; margin-top: 1px; border-radius: 50%; background: var(--st-soft); color: var(--st-a-ink); font-size: .95rem; transition: background .25s, color .25s, transform .25s var(--std-ease); }
.std-list li:hover > i { background: var(--std-n1); color: #fff; transform: scale(1.1); }
.std-list li > span { display: grid; gap: 2px; min-width: 0; }
.std-list li b { color: var(--st-ink); font-size: 17px; line-height: 1.3; letter-spacing: -.01em; }
.std-list li span span { color: var(--st-body); font-size: 16px; line-height: 1.55; }
.std-rich { color: var(--st-body); line-height: 1.7; overflow-wrap: anywhere; max-width: 70ch; }
.std-rich h2, .std-rich h3, .std-rich h4 { color: var(--st-ink); font-weight: 600; margin: 1.4em 0 .5em; }
.std-rich a { color: var(--st-a-ink); text-decoration: underline; }
.std-rich img { max-width: 100%; height: auto; border-radius: var(--std-r2); }
.std-rich ul, .std-rich ol { list-style: revert; padding-left: 1.3em; }
.std-rich table { display: block; max-width: 100%; overflow-x: auto; }

/* ---------- how it works: stepper + sample window (data-on 1-3) ---------- */
.std-how { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px var(--st-gap); align-items: center; }
@media (min-width: 992px) { .std-how { grid-template-columns: repeat(12, minmax(0, 1fr)); } .std-how__copy { grid-column: 1 / span 5; } .std-frame { grid-column: 7 / -1; } }
.std-how__copy { display: grid; gap: 24px; justify-items: start; min-width: 0; }
.std-steps { position: relative; display: grid; gap: 8px; width: 100%; }
.std-steps::before, .std-steps::after { content: ""; position: absolute; left: 35px; top: 40px; bottom: 40px; width: 3px; border-radius: 3px; }
.std-steps::before { background: var(--st-line); }
.std-steps::after { background: linear-gradient(180deg, var(--st-a), var(--std-ind)); transform-origin: top; transform: scaleY(0); transition: transform .7s var(--std-ease); }
.std-how[data-on="2"] .std-steps::after { transform: scaleY(.5); }
.std-how[data-on="3"] .std-steps::after { transform: scaleY(1); }
.std-step { position: relative; z-index: 1; width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; text-align: left; padding: 14px 16px 14px 14px; min-height: 72px; border-radius: var(--std-r2); border: 1px solid transparent; background: transparent; color: var(--st-body); font: 400 1rem/1.5 var(--st-font); cursor: pointer; transition: background .25s, border-color .25s, box-shadow .25s, transform .25s var(--std-ease); }
.std-step:hover { background: var(--st-panel); border-color: var(--st-line); transform: translateX(4px); }
.std-step[aria-pressed="true"] { background: var(--st-panel); border-color: var(--st-a); box-shadow: var(--st-shadow); }
.std-step__n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--st-panel); border: 2px solid var(--st-line); color: var(--st-a-ink); font-weight: 700; font-size: 1.1rem; transition: background .3s, color .3s, transform .3s var(--std-ease), border-color .3s; }
.std-step[aria-pressed="true"] .std-step__n { background: var(--st-grad); color: #fff; border-color: transparent; transform: scale(1.08); }
.std-step b { display: block; margin-bottom: 2px; font-size: 1.0625rem; color: var(--st-ink); }
.std-frame { min-width: 0; border: 1px solid var(--st-line); border-radius: var(--std-r3); background: var(--st-panel); box-shadow: var(--st-shadow); overflow: hidden; }
.std-frame__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; background: linear-gradient(100deg, #0e7490, #1d4ed8 60%, #4338ca); color: #fff; font-weight: 600; font-size: 14px; }
.std-frame__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.std-frame__timer { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.2); font-variant-numeric: tabular-nums; white-space: nowrap; transition: transform .35s var(--std-ease), background .35s, color .35s, box-shadow .35s; }
.std-how[data-on="1"] .std-frame__timer { transform: scale(1.12); background: #fff; color: #0b2a4a; box-shadow: 0 0 0 4px rgba(255,255,255,.3); }
.std-frame__prog { height: 4px; background: var(--st-line); }
.std-frame__prog span { display: block; height: 100%; background: var(--std-g3); transform-origin: left; transform: scaleX(.85); transition: transform 1s var(--std-ease); }
.std-how[data-on="2"] .std-frame__prog span { transform: scaleX(.5); }
.std-how[data-on="3"] .std-frame__prog span { transform: scaleX(.12); }
.std-frame__body { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .std-frame__body { grid-template-columns: minmax(0, 1fr) 190px; } }
.std-frame__q { display: grid; gap: 12px; align-content: start; padding: 22px; }
.std-frame__qno { font-size: .875rem; font-weight: 600; color: var(--st-a-ink); }
.std-sk { display: block; height: 14px; border-radius: 7px; background: var(--st-line); }
.std-sk--l { width: 92%; height: 16px; } .std-sk--m { width: 64%; height: 16px; }
.std-opts { display: grid; gap: 10px; margin-top: 6px; }
.std-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--std-r1); border: 1px solid var(--st-line); transition: border-color .3s, background .3s, transform .3s var(--std-ease); }
.std-opt i { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--st-panel2); color: var(--st-ink); font-style: normal; font-weight: 600; font-size: .8125rem; }
.std-opt:nth-child(1) .std-sk { width: 70%; } .std-opt:nth-child(2) .std-sk { width: 58%; } .std-opt:nth-child(3) .std-sk { width: 78%; } .std-opt:nth-child(4) .std-sk { width: 50%; }
.std-opt.is-on { border-color: var(--st-a); background: var(--st-soft); }
.std-opt.is-on i { background: var(--st-grad); color: #fff; }
.std-how[data-on="2"] .std-opt.is-on { transform: translateX(6px); }
.std-frame__nav { display: grid; gap: 16px; align-content: start; padding: 22px; border-top: 1px solid var(--st-line); background: var(--st-panel2); }
@media (min-width: 560px) { .std-frame__nav { border-top: 0; border-left: 1px solid var(--st-line); } }
.std-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(30px, 1fr)); gap: 6px; transition: transform .35s var(--std-ease); transform-origin: top left; }
.std-grid span { display: grid; place-items: center; height: 30px; border-radius: 8px; background: var(--st-panel); border: 1px solid var(--st-line); font-size: .75rem; font-weight: 600; color: var(--st-body); font-variant-numeric: tabular-nums; transition: background .3s, border-color .3s; }
.std-grid .is-cur { background: var(--st-grad); color: #fff; border-color: transparent; }
.std-grid .is-done { background: var(--st-ok-bg); border-color: var(--st-ok); color: var(--st-ink); }
.std-how[data-on="2"] .std-grid { transform: scale(1.04); }
.std-how[data-on="2"] .std-grid span:not(.is-cur):not(.is-done):nth-child(-n+9) { border-color: var(--st-a); }
.std-fake { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--st-line); background: var(--st-panel); font-weight: 700; font-size: .9375rem; color: var(--st-ink); transition: background .3s, color .3s, transform .35s var(--std-ease), box-shadow .35s; }
.std-how[data-on="3"] .std-fake { background: var(--st-grad); color: #fff; border-color: transparent; transform: scale(1.06); box-shadow: 0 14px 24px -12px var(--st-b); }

/* ---------- study cards (gradient border sweep) + related row ---------- */
.std-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--st-gap); }
@media (min-width: 720px) { .std-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.std-card { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 28px; border-radius: var(--std-r3); border: 1px solid var(--st-line); background: var(--st-panel); box-shadow: var(--st-shadow); color: var(--st-body); transition: transform .3s var(--std-ease), box-shadow .3s; }
.std-card::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 2px; opacity: 0; transition: opacity .3s;
  background: linear-gradient(100deg, #0891b2, #2563eb, #6366f1, #0891b2) 0 0 / 300% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.std-card:hover, .std-card:focus-visible { transform: translateY(-5px); box-shadow: 0 26px 44px -26px var(--st-b); }
.std-card:hover::before, .std-card:focus-visible::before { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .std-card:hover::before { animation: std-sweep 2.2s linear infinite; } }
.std-card h3 { font-size: 20px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; color: var(--st-ink); }
.std-card p { font-size: 16px; line-height: 1.5; }
.std-card__ic { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 8px; border-radius: var(--std-r2); background: var(--std-n1); color: #fff; font-size: 1.3rem; transition: transform .3s var(--std-ease); }
.std-card:nth-child(3n+2) .std-card__ic { background: var(--std-n2); } .std-card:nth-child(3n) .std-card__ic { background: var(--std-n3); }
.std-card:hover .std-card__ic { transform: rotate(-8deg) scale(1.08); }
.std-card .std-link { margin-top: auto; padding-top: 10px; }
.std-next__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.std-next__head--gap { margin-top: clamp(40px, 5vw, 64px); }
.std-next__btns { display: none; gap: 8px; margin-left: auto; }
@media (hover: hover) and (min-width: 720px) { .std-next__btns { display: inline-flex; } }
.std-arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--st-line); background: var(--st-panel); color: var(--st-ink); cursor: pointer; transition: transform .2s, border-color .2s, background .2s, color .2s; }
.std-arrow:hover { border-color: var(--st-a); color: var(--st-a-ink); transform: translateY(-2px); }
.std-next { display: flex; gap: 16px; overflow-x: auto; padding: 8px 4px 20px; margin: -8px -4px 0; scroll-snap-type: x mandatory; scroll-padding-inline: 4px; overscroll-behavior-x: contain; scrollbar-width: thin; }
.std-next > li { flex: 0 0 min(78%, 264px); scroll-snap-align: start; }
.std-next a { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px 14px; align-items: center; height: 100%; padding: 18px; border-radius: var(--std-r2); border: 1px solid var(--st-line); background: var(--st-panel); color: var(--st-ink); transition: transform .3s var(--std-ease), border-color .2s, box-shadow .3s; }
.std-next a:hover { transform: translateY(-5px); border-color: var(--st-a); box-shadow: 0 22px 36px -24px var(--st-b); }
.std-next__logo { grid-row: span 2; position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--std-r1); background: linear-gradient(150deg, #fff, #e6f3fb); border: 1px solid var(--st-line); font-weight: 800; color: #0b6f8c; }
.std-next__logo img { width: 32px; height: 32px; object-fit: contain; }
.std-next__logo.has-img > span { display: none; }
.std-next__name { align-self: end; min-width: 0; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.std-next small { align-self: start; color: var(--st-muted); font-size: 14px; }
.std-next .std-link { grid-column: 1 / -1; padding-top: 6px; }
.std-more { margin-top: 4px; }

/* ---------- faq: compact, two columns ---------- */
.std-faq { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px var(--st-gap); align-items: start; }
@media (min-width: 820px) { .std-faq { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.std-faq details { border: 1px solid var(--st-line); border-radius: var(--std-r2); background: var(--st-panel); transition: border-color .2s, box-shadow .25s; }
.std-faq details:hover, .std-faq details[open] { border-color: var(--st-a); }
.std-faq details[open] { box-shadow: 0 16px 28px -22px var(--st-b); }
.std-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 10px 18px; cursor: pointer; list-style: none; font-size: 16px; font-weight: 700; color: var(--st-ink); }
.std-faq summary:hover { color: var(--st-a-ink); }
.std-faq summary::-webkit-details-marker { display: none; }
.std-faq summary i { flex: none; color: var(--st-a-ink); transition: transform .25s var(--std-ease); }
.std-faq details[open] summary i { transform: rotate(45deg); }
.std-faq p { padding: 0 18px 16px; color: var(--st-body); font-size: 15px; line-height: 1.5; }

/* ---------- closing banner ---------- */
.std-close-sec { padding: 0 0 var(--st-section); background: var(--st-bg); }
.std-close { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(28px, 4vw, 56px); border-radius: var(--std-r3); background: linear-gradient(120deg, #0e7490, #1d4ed8 58%, #4338ca); color: #e6f2fb; box-shadow: var(--st-shadow); }
.std-close__o { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(255,255,255,.28), transparent); }
.std-close__o--1 { width: 360px; height: 360px; right: -80px; top: -140px; }
.std-close__o--2 { width: 260px; height: 260px; left: 30%; bottom: -150px; opacity: .7; }
@media (prefers-reduced-motion: no-preference) { .std-close__o--1 { animation: std-drift 11s ease-in-out infinite; } .std-close__o--2 { animation: std-drift 14s ease-in-out -4s infinite; } }
.std-close h2 { color: #fff; }
.std-close p { margin: 10px 0 0; max-width: 42ch; font-size: var(--st-lead); line-height: 1.5; }
.std-close .std-btn:focus-visible { outline-color: #fff; box-shadow: none; }

/* ---------- sticky mobile bar ---------- */
.std-bar { display: none; }
@media (max-width: 991.98px) {
  .std-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--st-panel); border-top: 1px solid var(--st-line); box-shadow: 0 -10px 30px -18px rgba(15,60,100,.4); }
  .std-bar__meta { font-size: .875rem; color: var(--st-body); line-height: 1.3; }
  .std-bar__meta b { display: block; color: var(--st-ink); }
  .std-bar .std-btn { min-height: 48px; padding: 0 22px; }
  .std { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* ---------- small screens ---------- */
@media (max-width: 575.98px) {
  .std-art__tile { width: 132px; height: 132px; border-radius: 30px; }
  .std-art__tile img { width: 84px; height: 84px; }
  .std-art { gap: 20px 22px; }
  .std-chips li:nth-child(2) { margin-left: 0; }
  .std-cta .std-btn { flex: 1 1 100%; }
  .std-report { padding: 20px; }
  .std-frame__q, .std-frame__nav { padding: 18px; }
  .std-close .std-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .std *, .std *::before, .std *::after { animation: none !important; transition: none !important; }
}
