/* "Best AI apps for <exam>" pages (Loop 2026-11-03: design 2B "Pick pinned", the template for every exam page).
   Loaded after web.css, which gives the colors, fonts, header, footer and the 3 store buttons. No inline styles: the
   site's content security policy blocks them. */
.ex-wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding-left: 18px; padding-right: 18px; }
.ex-hero { display: flex; flex-direction: column; gap: 12px; padding-top: 22px; padding-bottom: 30px; }
.ex-hero h1 { font-size: 36px; line-height: 1.12; letter-spacing: -0.5px; text-wrap: balance; }
.ex-hero h1 span { color: var(--primary); }
.ex-lead { margin: 0; font-size: 18px; color: var(--muted); }
.ex-date { margin: 0; font-size: 13px; color: var(--secondary); }
.ex-section { display: flex; flex-direction: column; gap: 14px; padding-top: 34px; padding-bottom: 6px; }
.ex-section:last-of-type { padding-bottom: 56px; }
.ex-page h2 { font-size: 26px; line-height: 1.2; letter-spacing: -0.3px; text-align: left; }
.ex-page h3 { margin: 0; font-family: var(--serif); font-size: 28px; }
.ex-page h2.ex-pick-name { font-size: 28px; line-height: normal; letter-spacing: normal; text-wrap: wrap; } /* looks the same as the old h3 */

/* Our pick: AskMed's card with its spec sheet */
.ex-pick { background: #FFFFFF; border: 2px solid var(--primary); border-radius: 16px; padding: 20px; box-shadow: 0 10px 30px rgba(18, 89, 181, 0.10);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
.ex-pick-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ex-pick-main p { margin: 0; color: var(--muted); line-height: 1.55; }
.ex-chip { align-self: flex-start; display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #FFF5D1; color: #7A5A00; }
@media (min-width: 760px) { .ex-pick { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 24px; } }

/* Tables */
.ex-tbl { overflow-x: auto; border: 1px solid var(--stroke); border-radius: 14px; background: #FFFFFF; min-width: 0; }
.ex-tbl table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.45; }
.ex-tbl.wide table { min-width: 620px; }
.ex-tbl th, .ex-tbl td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--stroke); }
.ex-tbl th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--secondary); background: var(--subtle); }
.ex-tbl tr:last-child td, .ex-tbl tr:last-child th { border-bottom: 0; }
.ex-tbl tbody th { text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--text); background: none; width: 34%; }

/* Sample question: everything is in the HTML (readable without JavaScript); exam.js hides the explanations until an answer is picked */
.ex-quiz { background: #FFFFFF; border: 1px solid var(--stroke); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.ex-quiz-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.ex-tag { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--highlight); color: var(--primary); }
.ex-tag.teal { background: #E2F5F6; color: #0B6D73; }
.ex-tag.gold { background: #FFF5D1; color: #7A5A00; }
.ex-stem { margin: 0; line-height: 1.55; }
.ex-quiz ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ex-opt { width: 100%; text-align: left; font: inherit; color: var(--text); background: var(--subtle); border: 1px solid var(--stroke); border-radius: 12px; padding: 11px 14px; display: flex; gap: 10px; cursor: pointer; }
.ex-opt b { color: var(--secondary); }
.ex-opt:hover { border-color: var(--primary); }
.ex-why { margin: 6px 0 0 24px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.ex-src, .ex-hint { margin: 0; font-size: 13px; color: var(--secondary); }
.ex-hint { display: none; }
.ex-quiz.ready .ex-hint { display: block; }
.ex-quiz.ready:not(.done) .ex-why, .ex-quiz.ready:not(.done) .ex-src { display: none; }
.ex-quiz.done .ex-hint { display: none; }
.ex-quiz.done .ex-opt { cursor: default; }
.ex-quiz.done .ex-opt.right { background: #E6F5EE; border-color: #0F7A4A; }
.ex-quiz.done .ex-opt.wrong { background: #FDECEC; border-color: #B4232C; }

/* "What to look for" points and plain paragraphs */
.ex-points { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 12px; max-width: 760px; line-height: 1.6; color: var(--muted); }
.ex-points b { color: var(--text); }
.ex-text { margin: 0; max-width: 760px; color: var(--muted); line-height: 1.6; }
.ex-topics { max-width: 520px; }
.ex-topics td:last-child, .ex-topics th:last-child { text-align: right; font-variant-numeric: tabular-nums; }

/* Questions */
.ex-faq details { border-bottom: 1px solid var(--stroke); padding: 14px 0; }
.ex-faq summary { cursor: pointer; font-weight: 600; }
.ex-faq p { margin: 8px 0 0; color: var(--muted); line-height: 1.55; }

/* The 3 buttons: on desktop always one row (Loop 2026-11-03), scaled down together when the column is narrow.
   --bh is the button height: 56px when there's room; the row is 10.1 x --bh wide. Phones keep the home page layout. */
.ex-pick .stores { justify-content: flex-start; }
/* Phones: the home page layout (2 badges, then the web button), a touch smaller so it fits inside the pick card */
@media (max-width: 639px) { .ex-pick .stores { --bh: 46px; } .ex-pick { padding: 16px; } }
@media (min-width: 640px) {
  .ex-pick .stores { container-type: inline-size; width: 100%; max-width: 566px; flex-wrap: nowrap; gap: 0; }
  .ex-pick .stores > * { --bh: min(56px, 100cqi / 10.1); flex: none; }
  .ex-pick .stores > * + * { margin-left: calc(var(--bh) * 0.18); }
  .ex-pick .store { gap: calc(var(--bh) * 0.18); width: calc(var(--bh) * 3.3); min-width: 0; padding: 0 calc(var(--bh) * 0.28); }
  .ex-pick .store svg { width: calc(var(--bh) * 0.43); height: calc(var(--bh) * 0.43); }
  .ex-pick .store span { font-size: calc(var(--bh) * 0.34); white-space: nowrap; }
  .ex-pick .store small { font-size: calc(var(--bh) * 0.2); }
  .ex-hero h1 { font-size: 46px; }
  .ex-page h2 { font-size: 30px; }
}
