/* OC Study public SAT demo: page + landing teaser. Builds on css/v4.css tokens. */
.try-page { background: var(--bg); }
.try-main { padding-top: 96px; }
.try-head { max-width: 760px; margin: 0 auto; padding: 56px 24px 8px; text-align: center; }
.try-head h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.1; font-weight: 500; margin: 8px 0 14px; letter-spacing: -0.015em; }
.try-head p { color: var(--muted); font-size: 1.05rem; line-height: 1.75; margin: 0; }
.try-wrap { max-width: 820px; margin: 28px auto 0; padding: 0 20px; }

.try-card, .tz-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
    padding: 30px 32px 28px; box-shadow: 0 18px 50px rgba(28, 42, 36, 0.07);
}
.try-loading { padding: 40px 0; text-align: center; color: var(--muted); }
.try-err { color: #b5452f; font-size: 0.92rem; margin-top: 14px; line-height: 1.6; }
.try-err:empty { display: none; }

.try-tracks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.try-track {
    text-align: left; cursor: pointer; background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
    padding: 22px 20px; font: inherit; color: var(--ink); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.try-track:hover, .try-track:focus-visible { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 14px 30px rgba(171, 132, 52, 0.18); outline: none; }
.try-track strong { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; margin-bottom: 6px; }
.try-track span { color: var(--muted); font-size: 0.88rem; line-height: 1.5; }

.try-progress { height: 4px; background: var(--border-soft); border-radius: 4px; overflow: hidden; margin-bottom: 18px; }
.try-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); transition: width .4s ease; }
.try-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 16px; }
.try-tag { color: var(--gold-deep); border: 1px solid var(--border); border-radius: 100px; padding: 4px 12px; letter-spacing: 0.08em; text-align: right; }
.try-passage, .try-eq { background: var(--bg); border: 1px solid var(--border-soft); border-radius: 10px; padding: 18px 20px; margin-bottom: 18px; font-family: var(--serif); font-size: 1.06rem; line-height: 1.75; color: var(--ink); }
.try-passage-label { font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; margin-bottom: 8px; }
.try-attr { display: block; font-family: var(--sans); font-size: 0.8rem; color: var(--muted); margin-bottom: 8px; }
.try-stem { font-family: var(--serif); font-size: 1.2rem; line-height: 1.65; color: var(--ink); margin-bottom: 18px; }
.try-options { display: grid; gap: 10px; }
.try-opt {
    display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; cursor: pointer;
    background: var(--bg); border: 1.5px solid var(--border); border-radius: 10px; padding: 14px 16px; font: inherit; color: var(--ink);
    transition: border-color .15s ease, background .15s ease, transform .15s ease; min-height: 52px;
}
.try-opt:hover:not(:disabled) { border-color: var(--gold); transform: translateY(-1px); }
.try-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.try-lab { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--border); display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; color: var(--muted); background: var(--surface); }
.try-txt { flex: 1; font-size: 1rem; line-height: 1.5; }
.try-opt.sel { border-color: var(--accent); background: rgba(23, 98, 74, 0.07); }
.try-opt.sel .try-lab { background: var(--accent); color: #fff; border-color: var(--accent); }
.try-opt.right { border-color: var(--accent); background: rgba(23, 98, 74, 0.12); }
.try-opt.right .try-lab { background: var(--accent); color: #fff; border-color: var(--accent); }
.try-opt.wrong { border-color: #b5452f; background: rgba(181, 69, 47, 0.08); }
.try-opt.wrong .try-lab { background: #b5452f; color: #fff; border-color: #b5452f; }
.try-opt:disabled { cursor: default; }
.try-fb { display: none; margin-top: 18px; border-radius: 10px; padding: 18px 20px; }
.try-fb.show { display: block; }
.try-fb.ok { background: rgba(23, 98, 74, 0.08); border: 1px solid rgba(23, 98, 74, 0.28); }
.try-fb.no { background: rgba(181, 69, 47, 0.07); border: 1px solid rgba(181, 69, 47, 0.28); }
.try-fb-h { font-weight: 700; font-size: 1.02rem; margin-bottom: 10px; }
.try-fb-h span { font-weight: 500; color: var(--muted); margin-left: 6px; }
.try-fb-l { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; margin-bottom: 6px; }
.try-fb-b { font-size: 0.97rem; line-height: 1.75; color: var(--ink); }
.try-actions { margin-top: 20px; display: flex; justify-content: flex-end; }
.try-actions .btn4 { min-width: 200px; text-align: center; }
.try-actions .btn4[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

.try-result { text-align: left; }
.try-score { font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.15; font-weight: 500; }
.try-caveat { color: var(--muted); font-size: 0.95rem; line-height: 1.7; margin: 10px 0 22px; }
.try-result h4 { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); font-family: var(--sans); font-weight: 700; margin: 24px 0 12px; }
.try-bar { margin-bottom: 12px; }
.try-bar-t { display: flex; justify-content: space-between; font-size: 0.92rem; margin-bottom: 5px; }
.try-bar-r { height: 8px; background: var(--border-soft); border-radius: 8px; overflow: hidden; }
.try-bar-r span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 8px; }
.try-worth { margin: 0; padding-left: 20px; color: var(--muted); line-height: 1.8; }
.try-perfect { color: var(--accent); font-weight: 600; }
.try-cta { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border-soft); text-align: center; }
.try-cta-fine { margin-top: 10px; font-size: 0.82rem; color: var(--muted); }
.try-email { margin-top: 26px; padding: 22px 22px 18px; background: var(--bg); border: 1px solid var(--border-soft); border-radius: 10px; }
.try-email h4 { margin-top: 0; }
.try-email input[type=email] { width: 100%; padding: 13px 14px; border: 1.5px solid var(--border); border-radius: 8px; font: inherit; background: var(--surface); margin-bottom: 12px; }
.try-email input[type=email]:focus { outline: 2px solid var(--accent); border-color: transparent; }
.try-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.try-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.86rem; line-height: 1.55; color: var(--muted); margin-bottom: 14px; cursor: pointer; }
.try-consent input { margin-top: 3px; accent-color: var(--accent); }
.try-email .btn4 { width: 100%; text-align: center; }
.try-email-msg { margin-top: 10px; font-size: 0.9rem; }
.try-email-msg.bad { color: #b5452f; } .try-email-msg.good { color: var(--accent); font-weight: 600; }
.try-again { margin-top: 18px; text-align: center; }
.try-link { background: none; border: 0; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; padding: 8px; }
.try-disclaimer { max-width: 640px; margin: 22px auto 60px; text-align: center; font-size: 0.8rem; line-height: 1.6; color: var(--dim); padding: 0 20px; }

/* landing teaser */
.tz { padding: 110px 24px; border-top: 1px solid var(--border-soft); }
.tz-in { max-width: 820px; margin: 0 auto; }
.tz-head { text-align: center; margin-bottom: 34px; }
.tz-head .ll { display: inline-block; font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.12; }
.tz-head .ll::after { left: 50%; transform: translateX(-50%); }
.tz-head p { margin-top: 26px; color: var(--muted); font-size: 1.02rem; }
.tz-card { text-align: center; }
.tz-card .try-card { box-shadow: none; border: 0; padding: 0; background: none; }
#tryTeaserApp { text-align: left; }
.tz-go { display: block; margin: 0 auto; }
.tz-disc { margin-top: 16px; text-align: center; font-size: 0.78rem; color: var(--dim); }

@media (max-width: 768px) {
    .try-main { padding-top: 78px; }
    .try-head { padding: 36px 18px 4px; }
    .try-wrap { padding: 0 14px; }
    .try-card, .tz-card { padding: 22px 18px 22px; border-radius: 12px; }
    .try-tracks { grid-template-columns: 1fr; }
    .try-stem { font-size: 1.1rem; }
    .try-passage { font-size: 1rem; padding: 16px; }
    .try-actions { position: sticky; bottom: 0; margin: 18px -18px -22px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: rgba(251, 248, 239, 0.96); border-top: 1px solid var(--border-soft); backdrop-filter: blur(8px); border-radius: 0 0 12px 12px; }
    .try-actions .btn4 { width: 100%; }
    .tz { padding: 70px 14px; }
}

/* small polish */
.try-fb-b ol, .try-fb-b ul { padding-left: 22px; margin: 6px 0; }
.try-email .btn4 { background: var(--surface); }
.try-email .btn4:hover { background: rgba(28, 42, 36, 0.05); }

/* ═══ interactive scoreboard ═══════════════════════════════════ */
.try-board { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; }
.try-dots { display: flex; gap: 7px; flex-wrap: wrap; }
.try-dots .d { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border); background: var(--bg); display: grid; place-items: center; color: #fff; transition: background .25s ease, border-color .25s ease, transform .25s ease; }
.try-dots .d svg { width: 14px; height: 14px; }
.try-dots .d.cur { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(199, 160, 78, 0.22); animation: tryPulse 1.6s ease-in-out infinite; }
.try-dots .d.ok { background: var(--accent); border-color: var(--accent); }
.try-dots .d.no { background: #c4533a; border-color: #c4533a; }
.try-dots .d.pop { animation: tryPop .5s cubic-bezier(.2, 1.6, .4, 1); }
.try-hud { display: flex; gap: 10px; align-items: center; }
.try-streak, .try-xp { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--bg); border-radius: 100px; padding: 6px 12px; font-size: 0.82rem; color: var(--dim); font-weight: 700; transition: all .3s ease; }
.try-streak svg { width: 16px; height: 16px; }
.try-streak em { font-style: normal; font-weight: 600; font-size: 0.74rem; letter-spacing: 0.04em; color: inherit; }
.try-streak.on { color: #b5521f; border-color: rgba(217, 119, 6, 0.5); background: linear-gradient(135deg, rgba(251, 191, 36, 0.22), rgba(217, 119, 6, 0.16)); box-shadow: 0 6px 18px rgba(217, 119, 6, 0.22); }
.try-streak.on svg { filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.7)); }
.try-streak.bump { animation: tryBump .55s cubic-bezier(.2, 1.6, .4, 1); }
.try-xp { color: var(--gold-deep); }
.try-xp span { font-size: 0.68rem; letter-spacing: 0.16em; }
.try-xp b { font-variant-numeric: tabular-nums; min-width: 2ch; text-align: right; }
.try-meta { gap: 10px; flex-wrap: wrap; justify-content: flex-start; }
.try-lvl { display: inline-flex; gap: 1px; }
.try-lvl i { width: 14px; height: 14px; color: var(--border); display: inline-block; }
.try-lvl i.on { color: #d97706; }
.try-lvl svg { width: 100%; height: 100%; }
.try-clock { font-variant-numeric: tabular-nums; letter-spacing: 0.06em; color: var(--dim); }
.try-meta .try-tag { margin-left: auto; }
.try-fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 600; }
@keyframes tryPulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(199, 160, 78, 0.22); } 50% { box-shadow: 0 0 0 7px rgba(199, 160, 78, 0.05); } }
@keyframes tryPop { 0% { transform: scale(.4); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes tryBump { 0% { transform: scale(1); } 40% { transform: scale(1.22) rotate(-3deg); } 100% { transform: scale(1); } }
@keyframes exIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ═══ the explanation: premium answer review ═══════════════════ */
.try-fb { display: none; margin-top: 22px; }
.try-fb.show { display: block; }
.ex { border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); box-shadow: 0 24px 60px rgba(18, 51, 42, 0.14); }
.ex > * { animation: exIn .55s ease both; animation-delay: calc(var(--i, 0) * 90ms); }
.ex-head { display: flex; align-items: center; gap: 14px; padding: 18px 22px; color: #f6f2e7; background: linear-gradient(135deg, #12332a 0%, #17624a 100%); position: relative; }
.ex.no .ex-head { background: linear-gradient(135deg, #2b1f1a 0%, #6a3426 100%); }
.ex-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, #e0bd6a, transparent); opacity: .8; }
.ex-badge { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(246, 242, 231, 0.12); border: 2px solid #e0bd6a; color: #e0bd6a; }
.ex-badge svg { width: 22px; height: 22px; }
.ex-title { flex: 1; min-width: 0; }
.ex-title b { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; letter-spacing: -0.01em; }
.ex-title span { display: block; font-size: 0.8rem; opacity: .85; margin-top: 2px; }
.ex-title .ex-pace { font-size: 0.72rem; opacity: .6; }
.pace { font-style: normal; font-weight: 700; }
.pace.fast { color: #8be0b4; } .pace.ok { color: #e0bd6a; } .pace.slow { color: #f0a58f; }
.ex-xp { flex: 0 0 auto; font-weight: 800; font-size: 0.82rem; letter-spacing: 0.08em; color: #12332a; background: linear-gradient(135deg, #e0bd6a, #c7a04e); border-radius: 100px; padding: 7px 14px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25); }
.ex-ans { flex: 0 0 auto; text-align: center; border-left: 1px solid rgba(246, 242, 231, 0.2); padding-left: 16px; }
.ex-ans small { display: block; font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: .7; }
.ex-ans b { display: block; font-family: var(--serif); font-size: 2rem; line-height: 1; color: #e0bd6a; margin-top: 2px; }
.ex-insight { display: flex; gap: 16px; padding: 22px 24px; background: linear-gradient(180deg, rgba(199, 160, 78, 0.12), rgba(199, 160, 78, 0.04)); border-bottom: 1px solid var(--border-soft); }
.ex-ic { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; background: #e0bd6a; color: #12332a; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(171, 132, 52, 0.35); }
.ex-ic svg { width: 20px; height: 20px; }
.ex-insight small, .ex-check small { display: block; font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; margin-bottom: 6px; }
.ex-it { font-family: var(--serif); font-size: 1.12rem; line-height: 1.65; color: var(--ink); }
.ex-sec { padding: 22px 24px 6px; }
.ex-sec h5 { font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; margin: 0 0 16px; }
.ex-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.ex-steps li { position: relative; display: flex; gap: 14px; padding-bottom: 18px; animation: exIn .5s ease both; animation-delay: calc(var(--i, 0) * 90ms + var(--k, 0) * 110ms + 120ms); }
.ex-steps li::before { content: ''; position: absolute; left: 14px; top: 30px; bottom: -2px; width: 2px; background: linear-gradient(180deg, var(--accent), rgba(23, 98, 74, 0.1)); }
.ex-steps li:last-child::before { display: none; }
.ex-steps .n { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 0.82rem; display: grid; place-items: center; box-shadow: 0 0 0 4px rgba(23, 98, 74, 0.12); }
.ex-st { flex: 1; min-width: 0; font-size: 0.99rem; line-height: 1.75; color: var(--ink); padding-top: 3px; }
.ex-line + .ex-line { margin-top: 6px; }
.ex-line .katex-display { margin: 8px 0; overflow-x: auto; overflow-y: hidden; }
.ex-ev { background: linear-gradient(180deg, transparent 55%, rgba(199, 160, 78, 0.45) 55%); color: inherit; padding: 0 2px; border-radius: 2px; }
.ex-check { margin: 4px 24px 14px; padding: 14px 18px; border: 1px dashed rgba(23, 98, 74, 0.4); border-radius: 12px; background: rgba(23, 98, 74, 0.05); font-size: 0.95rem; line-height: 1.7; }
.ex-wrong { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-bottom: 14px; }
.ex-w { display: flex; gap: 12px; align-items: flex-start; padding: 14px 14px; border: 1px solid var(--border-soft); border-radius: 12px; background: var(--bg); }
.ex-w .l { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(196, 83, 58, 0.14); color: #b5452f; font-weight: 800; font-size: 0.8rem; }
.ex-w.mine { border-color: rgba(196, 83, 58, 0.55); background: rgba(196, 83, 58, 0.07); }
.ex-wt { font-weight: 700; font-size: 0.9rem; margin-bottom: 3px; }
.ex-wt .tag { font-style: normal; font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: #b5452f; border: 1px solid rgba(196, 83, 58, 0.5); border-radius: 100px; padding: 2px 8px; margin-left: 6px; vertical-align: middle; }
.ex-wr { font-size: 0.88rem; line-height: 1.6; color: var(--muted); }
.ex-final { display: flex; gap: 16px; align-items: center; margin: 8px 0 0; padding: 18px 24px; background: linear-gradient(135deg, #12332a, #174236); color: #f6f2e7; }
.ex-fl { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 1.6rem; color: #12332a; background: linear-gradient(135deg, #e0bd6a, #c7a04e); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); }
.ex-fc { font-size: 0.98rem; line-height: 1.65; }
.ex-fc .katex { color: #f6f2e7; }
.ex-foot { padding: 14px 24px 16px; font-size: 0.8rem; line-height: 1.6; color: var(--muted); background: var(--bg); border-top: 1px solid var(--border-soft); text-align: center; }

/* ═══ animated results ═════════════════════════════════════════ */
.rs-top { display: flex; align-items: center; gap: 28px; margin-bottom: 22px; }
.rs-ring { position: relative; width: 150px; height: 150px; flex: 0 0 auto; }
.rs-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.rs-ring circle { fill: none; stroke-width: 10; }
.rs-ring .bg { stroke: var(--border-soft); }
.rs-ring .fg { stroke: #c7a04e; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(199, 160, 78, 0.55)); }
.rs-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.rs-num b { font-family: var(--serif); font-size: 3.2rem; line-height: 1; font-weight: 500; color: var(--ink); }
.rs-num span { font-size: 0.9rem; color: var(--muted); }
.rs-title small { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; }
.rs-title h3 { font-family: var(--serif); font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 500; margin: 6px 0 4px; line-height: 1.12; }
.rs-title p { margin: 0; color: var(--muted); }
.rs-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 6px 0 4px; }
.rs-chips div { background: var(--bg); border: 1px solid var(--border-soft); border-radius: 12px; padding: 14px 10px; text-align: center; }
.rs-chips b { display: block; font-family: var(--serif); font-size: 1.5rem; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.rs-chips span { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.try-bar-r span { width: 0; transition: width 1s cubic-bezier(.2, .8, .2, 1); }
.try-bar-r span.hi { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.try-bar-r span.mid { background: linear-gradient(90deg, #c7a04e, #e0bd6a); }
.try-bar-r span.lo { background: linear-gradient(90deg, #c4533a, #e8896c); }
.try-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.try-chips span { border: 1px solid var(--border); background: var(--bg); border-radius: 100px; padding: 7px 14px; font-size: 0.86rem; color: var(--ink); }

@media (max-width: 768px) {
    .try-board { flex-direction: column; align-items: stretch; gap: 10px; }
    .try-dots { justify-content: center; }
    .try-hud { justify-content: center; }
    .try-dots .d { width: 22px; height: 22px; }
    .ex-head { flex-wrap: wrap; padding: 16px 16px; gap: 10px; }
    .ex-xp { order: 3; }
    .ex-insight, .ex-final { padding: 18px 16px; }
    .ex-sec { padding: 18px 16px 4px; }
    .ex-check { margin: 4px 16px 12px; }
    .ex-wrong { grid-template-columns: 1fr; }
    .rs-top { flex-direction: column; text-align: center; gap: 14px; }
    .rs-chips { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .ex > *, .ex-steps li, .try-dots .d.cur, .try-dots .d.pop, .try-streak.bump, .shake { animation: none !important; }
    .try-bar-r span { transition: none; }
}

@media (max-width: 768px) { .ex-title .ex-pace { display: none; } .ex-title b { font-size: 1.2rem; } .ex-ans { padding-left: 12px; } .ex-ans b { font-size: 1.7rem; } }

/* highlighted evidence phrases: clickable, like practice mode */
.ex-ev.passage-ref { background: rgba(199, 160, 78, 0.22); border-bottom: 1.5px dashed var(--gold-deep); cursor: pointer; padding: 1px 3px; border-radius: 3px; font-style: italic; transition: background .15s ease; }
.ex-ev.passage-ref:hover, .ex-ev.passage-ref:focus { background: rgba(199, 160, 78, 0.45); outline: none; }
.ex-ev.passage-ref.no-match { border-bottom-style: dotted; background: rgba(199, 160, 78, 0.1); cursor: default; }
.ex-hint { padding: 10px 24px; font-size: 0.8rem; color: var(--muted); background: rgba(199, 160, 78, 0.08); border-bottom: 1px solid var(--border-soft); text-align: center; }
.ex-hint::before { content: ''; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 2px; background: rgba(199, 160, 78, 0.55); border-bottom: 2px dashed var(--gold-deep); vertical-align: -1px; }
.try-ghost { position: fixed; z-index: 700; display: none; background: var(--surface); border: 1px solid rgba(199, 160, 78, 0.6); border-radius: 12px; box-shadow: 0 24px 60px rgba(18, 51, 42, 0.28); opacity: 0; transform: translateY(6px); transition: opacity .15s ease, transform .15s ease; pointer-events: auto; }
.try-ghost.visible { opacity: 1; transform: none; }
.try-ghost-l { padding: 9px 16px; font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: #f6f2e7; background: linear-gradient(135deg, #12332a, #17624a); border-radius: 11px 11px 0 0; }
.try-ghost-b { padding: 14px 18px; max-height: 220px; overflow-y: auto; font-family: var(--serif); font-size: 1rem; line-height: 1.7; color: var(--ink); }
.try-ghost-b mark.passage-highlight, .try-passage mark.passage-highlight { background: rgba(255, 213, 79, 0.55); color: inherit; padding: 1px 2px; border-radius: 3px; }

/* left panel: the secondary headline sits under the main one and is readable */
.a4 { flex-direction: column; align-items: flex-start; justify-content: flex-end; }
.a4 h2.a4-sub { font-size: clamp(1.25rem, 2vw, 1.9rem); line-height: 1.2; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(246, 242, 231, 0.28); opacity: 1; max-width: 90%; }
@media (max-width: 768px) { .a4 h2.a4-sub { font-size: 1.15rem; } }

/* ═══ student tools: cross out + highlighter (like practice mode) ═══ */
.try-ow { position: relative; }
.try-ow .try-opt { padding-right: 60px; }
.try-elim { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; display: grid; place-items: center; color: var(--muted); font: 700 0.8rem var(--sans); transition: background .15s ease, border-color .15s ease, color .15s ease; }
.try-elim span { position: relative; padding: 0 3px; }
.try-elim span::after { content: ''; position: absolute; left: -2px; right: -2px; top: 50%; height: 2px; background: currentColor; transform: rotate(-12deg); }
.try-elim:hover:not(:disabled) { border-color: #b5452f; color: #b5452f; }
.try-elim:disabled { opacity: .3; cursor: default; }
.try-ow.elim .try-opt { opacity: .42; background: var(--border-soft); }
.try-ow.elim .try-txt { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: #b5452f; }
.try-ow.elim .try-elim { background: #b5452f; border-color: #b5452f; color: #fff; }
.try-tip { margin: -4px 0 14px; font-size: 0.8rem; color: var(--muted); text-align: center; padding: 8px 12px; border: 1px dashed var(--border); border-radius: 8px; background: var(--bg); }
.try-passage ::selection, .try-stem ::selection { background: rgba(23, 98, 74, 0.22); }
mark.user-hl { color: inherit; padding: 1px 0; border-radius: 3px; cursor: pointer; }
mark.user-hl.c1 { background: rgba(255, 213, 79, 0.62); }
mark.user-hl.c2 { background: rgba(120, 214, 150, 0.55); }
mark.user-hl.c3 { background: rgba(255, 150, 190, 0.5); }
.try-hl { position: fixed; z-index: 800; display: none; gap: 8px; align-items: center; padding: 8px 12px; border-radius: 100px; background: #12332a; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35); opacity: 0; transform: translateY(6px); transition: opacity .12s ease, transform .12s ease; }
.try-hl.visible { opacity: 1; transform: none; }
.try-hl button { width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(246, 242, 231, 0.55); cursor: pointer; padding: 0; position: relative; }
.try-hl button:hover { transform: scale(1.15); }
.try-hl .c1 { background: #ffd54f; } .try-hl .c2 { background: #78d696; } .try-hl .c3 { background: #ff96be; }
.try-hl .clr { background: transparent; }
.try-hl .clr span::before, .try-hl .clr span::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: #f6f2e7; }
.try-hl .clr span::before { transform: translate(-50%, -50%) rotate(45deg); } .try-hl .clr span::after { transform: translate(-50%, -50%) rotate(-45deg); }
.try-hl.only-clear .c1, .try-hl.only-clear .c2, .try-hl.only-clear .c3 { display: none; }
@media (max-width: 768px) { .try-ow .try-opt { padding-right: 56px; } .try-elim { width: 32px; height: 32px; right: 10px; } }

.try-passage.uline b, .try-passage.uline strong { font-weight: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* rank: gives XP a visible goal */
.try-rank { display: flex; align-items: center; gap: 12px; margin: -4px 0 16px; font-size: 0.78rem; color: var(--muted); }
.try-rank .rk b { color: var(--gold-deep); font-weight: 800; letter-spacing: 0.04em; }
.try-rank .bar { flex: 1; height: 6px; background: var(--border-soft); border-radius: 6px; overflow: hidden; display: block; }
.try-rank .bar b { display: block; height: 100%; background: linear-gradient(90deg, #c7a04e, #e0bd6a); border-radius: 6px; transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.try-rank .nx { white-space: nowrap; color: var(--dim); font-weight: 600; }
.try-rank.up .rk b { animation: tryBump .7s cubic-bezier(.2, 1.6, .4, 1); color: var(--accent); }
.rs-rank { display: inline-block; margin-top: 10px; padding: 6px 14px; border: 1px solid var(--gold); border-radius: 100px; font-size: 0.8rem; color: var(--gold-deep); background: rgba(199, 160, 78, 0.12); }
.rs-rank b { font-weight: 800; letter-spacing: 0.04em; }
.try-ow { cursor: pointer; }
.try-ow .try-opt { cursor: pointer; }
.try-opt.sel { box-shadow: 0 8px 22px rgba(23, 98, 74, 0.16); }
@media (max-width: 768px) { .try-rank { flex-wrap: wrap; } .try-rank .bar { order: 3; flex-basis: 100%; } }

/* landing teaser: no box around the start button; the card appears only once a question is showing */
.tz-card { background: none; border: 0; box-shadow: none; padding: 0; }
.tz-card.active { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 18px 50px rgba(28, 42, 36, 0.07); padding: 30px 32px 28px; }
.tz-go { border: 0; cursor: pointer; }
button.btn4, .btn4 { cursor: pointer; }
@media (max-width: 768px) { .tz-card.active { padding: 22px 18px; } }

/* highlighted evidence phrases: a map-pin cursor (tip is the hotspot) says "this points to the passage" */
.ex-ev.passage-ref, .ex-ev.passage-ref:hover, .ex-ev.passage-ref:focus {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M14 26.5s8-8.2 8-14.2a8 8 0 1 0-16 0c0 6 8 14.200 8 14.200z' fill='%2312332a' stroke='%23f6f2e7' stroke-width='1.6' stroke-linejoin='round'/%3E%3Ccircle cx='14' cy='12.2' r='3.2' fill='%23e0bd6a'/%3E%3C/svg%3E") 14 26, pointer;
}
.ex-ev.passage-ref.no-match, .ex-ev.passage-ref.no-match:hover { cursor: default; }
.ex-hint::before {
    width: 12px; height: 14px; border: 0; border-radius: 0; vertical-align: -2px; background: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M14 26.5s8-8.2 8-14.2a8 8 0 1 0-16 0c0 6 8 14.200 8 14.200z' fill='%2312332a'/%3E%3Ccircle cx='14' cy='12.2' r='3.2' fill='%23e0bd6a'/%3E%3C/svg%3E");
    background-size: contain; background-repeat: no-repeat;
}

/* highlighted evidence phrases: a thumbtack (push pin) cursor; the needle tip is the click point */
.ex-ev.passage-ref, .ex-ev.passage-ref:hover, .ex-ev.passage-ref:focus {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M14 27V17' stroke='%2312332a' stroke-width='2' stroke-linecap='round'/%3E%3Crect x='5.5' y='15' width='17' height='3.4' rx='1.7' fill='%2312332a'/%3E%3Cpath d='M9 15L10.4 4.6h7.2L19 15z' fill='%23c7a04e' stroke='%2312332a' stroke-width='1.3' stroke-linejoin='round'/%3E%3Cellipse cx='14' cy='4.6' rx='3.8' ry='1.9' fill='%23e0bd6a' stroke='%2312332a' stroke-width='1.3'/%3E%3Cpath d='M11.6 7.5l.7 6' stroke='%23f6f2e7' stroke-width='1.3' stroke-linecap='round' opacity='.7'/%3E%3C/svg%3E") 14 27, pointer;
}
.ex-ev.passage-ref.no-match, .ex-ev.passage-ref.no-match:hover { cursor: default; }
.ex-hint::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M14 27V17' stroke='%2312332a' stroke-width='2' stroke-linecap='round'/%3E%3Crect x='5.5' y='15' width='17' height='3.4' rx='1.7' fill='%2312332a'/%3E%3Cpath d='M9 15L10.4 4.6h7.2L19 15z' fill='%23c7a04e' stroke='%2312332a' stroke-width='1.3' stroke-linejoin='round'/%3E%3Cellipse cx='14' cy='4.6' rx='3.8' ry='1.9' fill='%23e0bd6a' stroke='%2312332a' stroke-width='1.3'/%3E%3C/svg%3E");
}

/* the closing band: the right answer's text, then why it is right */
.ex-fc { flex: 1; min-width: 0; }
.ex-fo { font-family: var(--serif); font-size: 1.12rem; line-height: 1.5; color: #fff; margin-bottom: 6px; font-weight: 500; }
.ex-fo .katex { color: #fff; }
.ex-fc .ex-line { color: rgba(246, 242, 231, 0.88); font-size: 0.93rem; line-height: 1.65; }
.ex-final { align-items: flex-start; }

.ex-fk { display: block; font-family: var(--sans); font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700; color: #e0bd6a; margin-bottom: 4px; }

/* label on top, then medal and answer side by side at a similar size */
.ex-final { padding: 20px 24px 22px; }
.ex-fk { margin-bottom: 10px; }
.ex-frow { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.ex-frow .ex-fl { width: 38px; height: 38px; font-size: 1.35rem; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3); }
.ex-frow .ex-fo { font-size: 1.45rem; line-height: 1.2; margin: 0; min-width: 0; }
.ex-final { margin: 10px 0 14px; }
.ex-final .ex-frow { margin-bottom: 0; }

/* the question follows the student down the explanation */
.try-ref-pill { position: fixed; right: 18px; bottom: 22px; z-index: 650; display: none; align-items: center; gap: 8px; padding: 12px 20px; border: 0; border-radius: 100px; cursor: pointer; font-family: var(--sans); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #12332a; background: linear-gradient(135deg, #e0bd6a, #c7a04e); box-shadow: 0 14px 34px rgba(18, 51, 42, 0.32); }
.try-ref-pill.on { display: inline-flex; }
.try-ref-pill.hide { display: none; }
.try-ref { position: fixed; z-index: 660; right: 12px; top: 96px; width: 300px; max-height: calc(100vh - 120px); display: none; flex-direction: column; background: var(--surface, #fffdf8); border: 1px solid rgba(199, 160, 78, 0.55); border-radius: 14px; box-shadow: 0 24px 60px rgba(18, 51, 42, 0.28); overflow: hidden; }
.try-ref.open { display: flex; }
.try-ref-h { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px 10px 16px; background: #12332a; color: #e0bd6a; font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; }
.try-ref-x { border: 0; background: transparent; color: #f6f2e7; font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0 6px; }
.try-ref-b { overflow-y: auto; padding: 14px 16px 16px; font-size: 0.88rem; line-height: 1.55; overscroll-behavior: contain; }
.try-ref-b .try-passage { max-height: none; margin: 0 0 12px; font-size: 0.86rem; }
.try-ref-s { margin: 0 0 12px; font-weight: 600; }
.try-ref-o { display: flex; gap: 10px; align-items: baseline; padding: 7px 10px; margin-top: 6px; border: 1px solid var(--border-soft, #e6dfcc); border-radius: 10px; }
.try-ref-o .l { flex: 0 0 auto; font-weight: 700; color: var(--dim, #6b6b5f); }
.try-ref-o .t { min-width: 0; }
.try-ref-o.right { background: #e3efe7; border-color: #2e6b52; }
.try-ref-o.right .l { color: #2e6b52; }
.try-ref-o.mine { background: #f7e6df; border-color: #b8523a; }
.try-ref-o.mine .l { color: #b8523a; }
@media (max-width: 768px) {
    .try-ref-pill { right: 14px; bottom: 84px; padding: 11px 18px; }
    .try-ref { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 62vh; border-radius: 16px 16px 0 0; border-left: 0; border-right: 0; border-bottom: 0; }
}

/* reference panel: question and choices first, the long passage tucked behind a toggle */
.try-ref-b { padding: 12px 14px 14px; }
.try-ref-s { margin: 0 0 8px; }
.try-ref-o { margin-top: 5px; padding: 6px 9px; }
.try-ref-p { margin-top: 12px; border-top: 1px solid var(--border-soft, #e6dfcc); padding-top: 10px; }
.try-ref-p summary { cursor: pointer; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #8a6d2c; list-style: none; }
.try-ref-p summary::-webkit-details-marker { display: none; }
.try-ref-p summary::before { content: '+'; display: inline-block; width: 1.1em; }
.try-ref-p[open] summary::before { content: '\2212'; }
.try-ref-p .try-passage { margin: 10px 0 0; padding: 0; background: none; border: 0; box-shadow: none; font-size: 0.82rem; line-height: 1.55; }
.try-ref-p .try-passage-label { display: none; }
.try-ref-s .katex-display, .try-ref-s .try-eq, .try-ref-s p { margin: 0.2em 0; }
.try-ref-s .katex-display > .katex { font-size: 1em; }

/* reference panel: left side, larger */
.try-ref-pill { right: auto; left: 18px; }
.try-ref { right: auto; left: 12px; width: clamp(300px, calc((100vw - 800px) / 2 - 28px), 420px); }
.try-ref-b { font-size: 0.95rem; padding: 16px 18px 18px; }
.try-ref-o { padding: 8px 12px; margin-top: 7px; }
.try-ref-p .try-passage { font-size: 0.9rem; }
@media (max-width: 768px) {
    .try-ref-pill { left: auto; right: 14px; }
    .try-ref { left: 0; right: 0; width: auto; }
    .try-ref-b { font-size: 0.92rem; }
}

/* question + choices stay pinned; the passage scrolls on its own underneath, open by default */
.try-ref-b { display: flex; flex-direction: column; overflow: hidden; min-height: 0; }
.try-ref-top { flex: 0 0 auto; }
.try-ref-p { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.try-ref-p summary { position: sticky; top: 0; background: var(--surface, #fffdf8); padding-bottom: 6px; z-index: 1; }
@media (max-width: 768px) { .try-ref { max-height: 70vh; } }

/* passage first (as on the question itself), question and choices below it */
.try-ref-p { margin: 0 0 12px; padding: 0 0 10px; border-top: 0; border-bottom: 1px solid var(--border-soft, #e6dfcc); flex: 0 1 auto; }
.try-ref-top { flex: 0 0 auto; }
.try-ref-p summary { padding-top: 2px; }
.try-ref-s mark.passage-highlight { background: rgba(255, 213, 79, 0.55); color: inherit; padding: 1px 2px; border-radius: 3px; }

/* with the question panel open the evidence lights up there: a highlighter cursor instead of the pin */
body.ref-open .ex-ev.passage-ref, body.ref-open .ex-ev.passage-ref:hover { cursor: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2728%27%20height%3D%2728%27%20viewBox%3D%270%200%2028%2028%27%3E%3Cpolygon%20points%3D%2718%2C2%2026%2C10%2012%2C24%204%2C16%27%20fill%3D%27%2312332a%27%20stroke%3D%27%23f6f2e7%27%20stroke-width%3D%271.3%27%20stroke-linejoin%3D%27round%27%2F%3E%3Cpolygon%20points%3D%274%2C16%2012%2C24%202.5%2C26.5%27%20fill%3D%27%23ffd54f%27%20stroke%3D%27%2312332a%27%20stroke-width%3D%271.3%27%20stroke-linejoin%3D%27round%27%2F%3E%3C%2Fsvg%3E") 3 26, text; }
body.ref-open .ex-ev.passage-ref.no-match, body.ref-open .ex-ev.passage-ref.no-match:hover { cursor: default; }

.try-ref-o { align-items: center; }
.try-ref-o .t { flex: 1; }
.try-ref-o .tag { flex: 0 0 auto; font-style: normal; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 9px; border-radius: 100px; border: 1px solid currentColor; color: #8a6d2c; background: rgba(255, 255, 255, 0.55); }
.try-ref-o.mine .tag { color: #b8523a; }
.try-ref-o.right .tag { color: #2e6b52; }

.try-ref-o { align-items: baseline; }
.try-ref-o .tag { display: inline-block; margin-left: 6px; white-space: nowrap; vertical-align: 1px; }

.try-ref-o .why { display: block; margin-top: 4px; font-size: 0.82rem; line-height: 1.45; font-weight: 400; color: var(--muted, #7a7a6c); }
.try-ref-o .why .ex-line { color: inherit; font-size: inherit; line-height: inherit; }
.try-ref-o .why .ex-ev { background: none; border-bottom: 0; font-style: normal; cursor: inherit; padding: 0; }

/* phones: the screen is split. The explanation stays readable above, the question sits in the lower part, and its choices sit under a scroll */
@media (max-width: 768px) {
    .try-ref { max-height: none; height: 40vh; height: 40dvh; }
    .try-ref-b { display: block; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
    .try-ref-p { overflow: visible; flex: none; }
    .try-ref-p summary { position: static; }
    body.ref-open { padding-bottom: 40vh; padding-bottom: 40dvh; }
}

/* tablets and narrow laptops: no spare margin for a side panel, so it is the same bottom split as on phones */
@media (max-width: 1559px) {
    .try-ref { left: 0; right: 0; top: auto; bottom: 0; width: auto; height: 40vh; height: 40dvh; max-height: none; border-radius: 16px 16px 0 0; border-left: 0; border-right: 0; border-bottom: 0; }
    .try-ref-pill { left: auto; right: 18px; bottom: 22px; }
    .try-ref-b { display: block; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 16px max(18px, calc((100% - 760px) / 2)) 22px; }
    .try-ref-p { overflow: visible; flex: none; }
    .try-ref-p summary { position: static; }
    .try-ref-h { padding-left: max(16px, calc((100% - 760px) / 2 + 2px)); padding-right: max(12px, calc((100% - 760px) / 2)); }
    body.ref-open { padding-bottom: 40vh; padding-bottom: 40dvh; }
}
@media (max-width: 768px) { .try-ref-pill { bottom: 84px; right: 14px; } }

/* narrow screens: the question sits at the TOP (passage + question, choices folded away), the explanation keeps the lower half */
.try-ref-ch { display: none; }
@media (max-width: 1559px) {
    .try-ref { top: 74px; bottom: auto; height: auto; max-height: 38vh; max-height: 38dvh; border-radius: 0 0 16px 16px; border-top: 0; border-bottom: 1px solid rgba(199, 160, 78, 0.55); box-shadow: 0 18px 40px rgba(18, 51, 42, 0.25); }
    .try-ref-h { padding-top: 7px; padding-bottom: 7px; gap: 10px; }
    .try-ref-h b { margin-right: auto; }
    .try-ref-ch { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(246, 242, 231, 0.4); background: transparent; color: #f6f2e7; border-radius: 100px; padding: 5px 12px; font: 700 0.64rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; }
    .try-ref-ch i { width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; }
    .try-ref.show-opts .try-ref-ch i { transform: rotate(-135deg) translateY(-2px); }
    .try-ref-opts { display: none; }
    .try-ref.show-opts .try-ref-opts { display: block; }
    body.ref-open { padding-bottom: 0; }
}

/* phones: the question sheet is as lean as it gets (no section label, tight padding, smaller type) */
@media (max-width: 768px) {
    .try-ref { max-height: 36vh; max-height: 36dvh; }
    .try-ref-h { padding: 3px 6px 3px 14px; gap: 8px; font-size: 0.62rem; letter-spacing: 0.18em; }
    .try-ref-x { font-size: 1.35rem; padding: 2px 6px; }
    .try-ref-ch { padding: 4px 10px; font-size: 0.6rem; }
    .try-ref-b { padding: 7px 14px 9px; font-size: 0.84rem; line-height: 1.42; }
    .try-ref-p { margin: 0 0 6px; padding: 0 0 6px; }
    .try-ref-p summary { display: none; }
    .try-ref-p .try-passage { margin: 0; font-size: 0.82rem; line-height: 1.48; }
    .try-ref-s { margin: 0 0 3px; font-size: 0.86rem; line-height: 1.4; }
    .try-ref-s .katex-display, .try-ref-s .try-eq, .try-ref-s p { margin: 0.1em 0; }
    .try-ref-o { padding: 5px 9px; margin-top: 4px; }
    .try-ref-o .why { font-size: 0.74rem; margin-top: 2px; }
}
@media (max-width: 520px) { .ex-frow .ex-fo { font-size: 1.15rem; line-height: 1.3; } .ex-frow { gap: 10px; } .ex-frow .ex-fl { width: 34px; height: 34px; font-size: 1.2rem; } }

/* the demo page header has no language picker to push the buttons right, so the button does it */
body.try-page .nav4 .btn4.sm { margin-left: auto; }

/* phones: tighter card, result header on two lines, smaller explanation type */
@media (max-width: 520px) {
    .try-wrap { padding: 0 8px; margin-top: 18px; }
    .try-card, .tz-card { padding: 14px 12px 16px; border-radius: 12px; }
    .ex-head { padding: 14px 14px; gap: 8px 12px; }
    .ex-badge { width: 38px; height: 38px; }
    .ex-title { flex: 1 1 calc(100% - 56px); }
    .ex-title b { font-size: 1.15rem; }
    .ex-title span { font-size: 0.76rem; }
    .ex-ans { order: 3; border-left: 0; padding-left: 0; display: flex; align-items: baseline; gap: 8px; margin-left: 50px; }
    .ex-ans small { display: inline; }
    .ex-ans b { display: inline; font-size: 1.5rem; margin: 0; }
    .ex-xp { order: 4; margin-left: auto; padding: 6px 12px; font-size: 0.74rem; }
    .ex-insight { gap: 12px; padding: 16px 14px; }
    .ex-ic { width: 32px; height: 32px; }
    .ex-ic svg { width: 17px; height: 17px; }
    .ex-it { font-size: 1rem; line-height: 1.55; }
    .ex-sec { padding: 16px 14px 2px; }
    .ex-sec h5 { margin-bottom: 12px; }
    .ex-steps li { gap: 10px; padding-bottom: 14px; }
    .ex-steps .n { width: 26px; height: 26px; font-size: 0.74rem; }
    .ex-steps li::before { left: 12px; top: 26px; }
    .ex-st { font-size: 0.92rem; line-height: 1.6; padding-top: 1px; }
    .ex-check { margin: 2px 12px 12px; padding: 12px 14px; font-size: 0.9rem; line-height: 1.6; }
    .ex-final { padding: 14px; }
    .ex-w { padding: 12px; gap: 10px; }
    .ex-foot { padding: 12px 14px 14px; }
}
@media (max-width: 520px) { .try-fb { padding: 0; margin-top: 14px; } .ex-final { margin: 8px 0 10px; } .ex-frow .ex-fo { font-size: 1.1rem; } }

.ex-arow { display: flex; align-items: baseline; justify-content: center; gap: 10px; }
.ex-at { font-family: var(--serif); font-size: 1.25rem; line-height: 1.1; color: #f6f2e7; }
.ex-at .katex { color: #f6f2e7; }
.ex-ans { max-width: 46%; }
@media (max-width: 520px) { .ex-ans { max-width: none; } .ex-at { font-size: 1.15rem; } }
