/* Published Quiz element: length cards, the question, answers, the score ring and the review of mistakes. Colours come
   from the site palette (--lp-c-*), so the light and the dark theme of a site recolour it. Look of licensekleanthous.com
   "Test Yourself". */
.lp-quiz { --lq-accent: var(--lp-c-accent, #4f46e5); --lq-card: var(--lp-c-card, #fff); --lq-text: var(--lp-c-text, #0e1626);
  --lq-muted: var(--lp-c-muted, #66738c); --lq-ok: #16a34a; --lq-bad: #e11d48; width: 100%; }
.lp-quiz .lq-data, .lp-quiz .lq-pics { display: none; }
.lp-quiz button { font: inherit; }
.lp-quiz .lq-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; max-width: 820px; margin: 0 auto; }
.lp-quiz .lq-mode { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 22px 28px; border: 0; border-radius: 20px; cursor: pointer;
  background: var(--lq-card); color: var(--lq-text); box-shadow: 0 2px 8px rgba(14, 22, 38, .06); transition: transform .28s ease, box-shadow .28s ease; }
.lp-quiz .lq-mode:hover { transform: translateY(-6px); box-shadow: 0 30px 70px rgba(14, 22, 38, .18); }
.lp-quiz .lq-thumbs { display: flex; gap: 10px; margin-bottom: 14px; }
.lp-quiz .lq-thumbs span { width: 60px; height: 60px; border-radius: 12px; background: #fff; display: grid; place-items: center; padding: 7px; box-sizing: border-box; }
.lp-quiz .lq-thumbs img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lp-quiz .lq-mode strong { font-size: 34px; line-height: 1.1; color: var(--lq-accent); }
.lp-quiz .lq-mode > span:last-child { font-size: 15px; font-weight: 600; color: var(--lq-muted); }
.lp-quiz .lq-play { max-width: 720px; margin: 0 auto; padding: 30px; border-radius: 20px; background: var(--lq-card); color: var(--lq-text);
  box-shadow: 0 14px 40px rgba(14, 22, 38, .12); }
.lp-quiz .lq-top { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.lp-quiz .lq-bar { flex: 1; height: 8px; border-radius: 4px; overflow: hidden; background: color-mix(in srgb, var(--lq-text) 12%, transparent); }
.lp-quiz .lq-bar i { display: block; height: 100%; border-radius: 4px; background: var(--lq-accent); transition: width .4s ease; }
.lp-quiz .lq-count { font-size: 14px; font-weight: 600; color: var(--lq-muted); white-space: nowrap; }
.lp-quiz .lq-pic { display: grid; place-items: center; aspect-ratio: 16 / 10; padding: 18px; margin-bottom: 22px; border-radius: 14px; background: #fff; }
.lp-quiz .lq-pic img { max-height: 200px; max-width: 100%; object-fit: contain; }
.lp-quiz .lq-q { font-size: 20px; font-weight: 700; text-align: center; margin-bottom: 20px; }
.lp-quiz .lq-answers { display: grid; gap: 12px; }
.lp-quiz .lq-answer { width: 100%; padding: 15px 18px; border-radius: 14px; cursor: pointer; text-align: start; font-size: 16px; font-weight: 600;
  border: 2px solid color-mix(in srgb, var(--lq-text) 12%, transparent); background: transparent; color: var(--lq-text); transition: background .18s, border-color .18s; }
.lp-quiz .lq-answer:hover:not(:disabled) { background: color-mix(in srgb, var(--lq-accent) 12%, transparent); border-color: var(--lq-accent); }
.lp-quiz .lq-answer:disabled { cursor: default; }
.lp-quiz .lq-answer.lq-right { border-color: var(--lq-ok); background: color-mix(in srgb, var(--lq-ok) 16%, transparent); }
.lp-quiz .lq-answer.lq-wrong { border-color: var(--lq-bad); background: color-mix(in srgb, var(--lq-bad) 16%, transparent); }
.lp-quiz .lq-actions { display: flex; justify-content: center; margin-top: 22px; }
.lp-quiz .lq-actions:empty { display: none; }
.lp-quiz .lq-go { padding: 14px 26px; border: 0; border-radius: 12px; cursor: pointer; font-size: 16px; font-weight: 700; color: #fff;
  background: var(--lq-accent); box-shadow: 0 12px 40px color-mix(in srgb, var(--lq-accent) 32%, transparent); }
.lp-quiz .lq-result { text-align: center; }
.lp-quiz .lq-ring { position: relative; width: 150px; height: 150px; margin: 0 auto 16px; }
.lp-quiz .lq-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; }
.lp-quiz .lq-ring-bg { stroke: color-mix(in srgb, var(--lq-text) 12%, transparent); }
.lp-quiz .lq-ring-ok { stroke: var(--lq-ok); } .lp-quiz .lq-ring-low { stroke: #f59e0b; }
.lp-quiz .lq-msg { font-size: 22px; font-weight: 700; }
.lp-quiz .lq-sub { margin-top: 6px; color: var(--lq-muted); }
.lp-quiz .lq-review { margin-top: 28px; text-align: start; }
.lp-quiz .lq-review h4 { margin: 0 0 12px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--lq-accent); }
.lp-quiz .lq-miss { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid color-mix(in srgb, var(--lq-text) 10%, transparent); }
.lp-quiz .lq-miss img { width: 56px; height: 56px; object-fit: contain; flex: none; background: #fff; border-radius: 10px; padding: 5px; box-sizing: border-box; }
.lp-quiz .lq-miss p { margin: 2px 0; }
.lp-quiz .lq-was { color: var(--lq-bad); text-decoration: line-through; }
.lp-quiz .lq-is { color: var(--lq-ok); font-weight: 600; }
@media (max-width: 720px) { .lp-quiz .lq-play { padding: 20px 16px; } }
