/* Course pages, "practice first" layout (server/coursev2.js). Colours from base.css, so dark mode follows. */
.wrap.seo:has(.cv-hero){max-width:1180px}
.cv-hero{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:44px;align-items:start;padding:18px 0 34px}
.cv-hl{display:flex;flex-direction:column;gap:18px;padding-top:6px;min-width:0}
.cv-eyebrow{align-self:flex-start;font-size:12.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--acc-text);background:var(--acc-soft);padding:6px 12px;border-radius:999px}
.cv-hero h1{margin:0;font:700 clamp(28px,3.2vw,36px)/1.12 var(--f-display);letter-spacing:-.02em}
.cv-lead{margin:0;font-size:18.5px;line-height:1.55;color:var(--muted)}
.cv-stats{display:flex;flex-wrap:wrap;gap:10px}
.cv-stat{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;background:var(--surface);border:1px solid var(--line);border-radius:14px;font-weight:600;font-size:14.5px}
.cv-stat b{font:700 20px var(--f-display);color:var(--acc-text)}
.cv-cta{display:flex;flex-wrap:wrap;gap:12px}
.cv-cta .btn{min-height:52px;padding:0 24px;border-radius:14px;font-size:16.5px;font-weight:700;text-decoration:none}
.cv-ghost{border-color:var(--acc-line);color:var(--acc-text);background:var(--surface)}
/* the live question */
.cv-quiz{background:var(--surface);border:1px solid var(--soft);border-radius:22px;padding:22px;display:flex;flex-direction:column;gap:16px;box-shadow:0 14px 40px rgba(22,22,29,.08)}
.cv-qhead{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:var(--muted)}
.cv-dot{width:8px;height:8px;border-radius:50%;background:var(--good);box-shadow:0 0 0 4px var(--good-soft)}
.cv-lv{margin-inline-start:auto;font-weight:600}
.cv-q{margin:0;font:700 23px/1.3 var(--f-display);letter-spacing:-.01em}
.cv-opts{display:grid;gap:10px}
.cv-opts .choice{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;text-align:start;width:100%;cursor:pointer;color:var(--ink)}
.cv-opts .choice:disabled{cursor:default}
.cv-why{padding:14px 16px;border-radius:14px;background:var(--soft);font-size:15px;line-height:1.55}
.cv-why p{margin:0}
.cv-next{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:13px;color:var(--muted)}
.cv-next .btn{min-height:48px;padding:0 20px;border-radius:14px;font-size:16px;font-weight:700;text-decoration:none}
/* sections */
.cv-sec{padding:26px 0}
.cv-sec h2{margin:0 0 6px;font:700 28px var(--f-display);letter-spacing:-.01em}
.cv-sh{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:18px}
.cv-sh p{margin:0;color:var(--muted);font-size:15.5px}
.cv-sec>h2{margin-bottom:18px}
.cv-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
.cv-tile{display:flex;gap:14px;align-items:flex-start;padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:16px;text-decoration:none;color:var(--ink);transition:border-color .2s,box-shadow .2s,transform .15s}
a.cv-tile:hover{border-color:var(--acc-line);box-shadow:0 6px 18px rgba(22,22,29,.07);transform:translateY(-1px)}
.cv-tile b{display:block;font-size:16px;margin-bottom:3px}
.cv-tile>span>span{font-size:14px;color:var(--muted);line-height:1.45}
.cv-ic{flex:none;width:40px;height:40px;padding:10px;border-radius:12px;background:var(--acc-soft);color:var(--acc-text)}
/* the mock exam card: the accent colour, the same in light and dark */
.cv-dark{background:var(--acc);border-color:var(--acc);color:#fff}
a.cv-dark:hover{border-color:var(--acc-hover);background:var(--acc-hover)}
.cv-dark>span>span{color:rgba(255,255,255,.82)}
.cv-dark .cv-ic{background:rgba(255,255,255,.18);color:#fff}
/* Free vs Unlimited */
.cv-plans{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px}
.cv-plan{padding:26px;background:var(--surface);border:1px solid var(--line);border-radius:20px;display:flex;flex-direction:column;gap:14px}
.cv-plan p{margin:4px 0 0;color:var(--muted)}
.cv-pn{font:700 22px var(--f-display)}
.cv-pro{background:var(--acc-soft);border:2px solid var(--acc)}
.cv-ph{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap}
.cv-price{font:700 26px var(--f-display)}
.cv-bill{margin:-8px 0 0!important;font-size:14px}
.cv-plan ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:9px;line-height:1.45}
.cv-plan li{display:flex;gap:10px;align-items:flex-start}
.cv-plan li svg{flex:none;width:18px;height:18px;margin-top:2px;color:var(--good)}
.cv-plan .btn{margin-top:auto;min-height:48px;justify-content:center;border-radius:12px;font-weight:700;text-decoration:none}
/* tips */
.cv-tips{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:12px}
.cv-tips li{padding:20px;background:var(--surface);border:1px solid var(--line);border-radius:16px}
.cv-tips b{display:block;font:700 30px var(--f-display);color:var(--acc);margin-bottom:6px}
.cv-tips p{margin:0;line-height:1.5}
/* folded texts */
.cv-more{display:flex;flex-direction:column;gap:10px}
.cv-det{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:16px 20px}
.cv-det summary{cursor:pointer;font-weight:700;font-size:16.5px;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:12px}
.cv-det summary::-webkit-details-marker{display:none}
.cv-det summary::after{content:"";width:9px;height:9px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg) translateY(-3px);transition:transform .2s;flex:none}
.cv-det[open] summary::after{transform:rotate(-135deg)}
.cv-det p,.cv-det ul{margin:12px 0 0;line-height:1.6;color:var(--muted)}
.cv-det .seo-links{margin-top:12px}
.cv-foot{padding:10px 0 30px;font-size:13px;color:var(--muted)}
.cv-foot .safety{margin:0 0 10px}
@media (max-width:900px){.cv-hero{grid-template-columns:minmax(0,1fr);gap:26px;padding-top:8px}}
@media (max-width:560px){
  .cv-hero h1{font-size:28px}
  .cv-lead{font-size:16.5px}
  .cv-stat{padding:8px 11px;font-size:13.5px}.cv-stat b{font-size:17px}
  .cv-cta .btn{flex:1 1 auto;justify-content:center}
  .cv-quiz{padding:18px;border-radius:20px}
  .cv-q{font-size:20px}
  .cv-sec h2{font-size:23px}
}
@media (prefers-reduced-motion:no-preference){.cv-why:not([hidden]),.cv-next:not([hidden]){animation:viewIn .3s ease-out both}}
/* calculation courses: the topic page's free problem card, stacked (figure on top) to fit the column */
.cv-try .demo{border-radius:22px;border-color:var(--soft);box-shadow:0 14px 40px rgba(22,22,29,.08)}
.cv-try .demo-body{grid-template-columns:minmax(0,1fr)}
.cv-try .demo-body .diagram{border-inline-end:0;border-bottom:1px solid var(--line);padding:16px}
.cv-try .demo-body .diagram svg{min-width:0;max-height:240px}
