/* Shared quiz page styles, copied from /pub-quiz/ (2026-10-26). /pub-quiz/ keeps its own inline copy. */
:root {
      --bg: #FAFAF7;
      --surface: #FFFFFF;
      --primary: #10b981;
      --primary-dark: #059669;
      --quiz-accent: #2dd4bf;
      --text: #1E293B;
      --text-muted: #475569;
      --text-light: #94A3B8;
      --border-color: #E2E8F0;
      --quiz-dark: #022C22;
      --wrong: #ef4444;
      --wrong-bg: #fef2f2;
      --right-bg: #ecfdf5;
    }
    * { margin: 0; padding: 0; box-sizing: border-box; }
    body {
      font-family: 'Inter', system-ui, -apple-system, sans-serif;
      background: var(--bg); color: var(--text);
      -webkit-font-smoothing: antialiased;
    }
    .wrap { max-width: 820px; margin: 0 auto; padding: 0 1.5rem; }

    /* ---------- quiz app ---------- */
    .app {
      background: var(--surface); border: 1px solid var(--border-color);
      border-radius: 1.5rem; padding: 2rem; margin: 2rem 0;
      box-shadow: 0 20px 45px -25px rgba(2,44,34,.35);
    }
    @media (max-width: 600px) { .app { padding: 1.25rem; border-radius: 1.25rem; } }
    .panel { display: none; animation: rise .35s cubic-bezier(.2,.7,.3,1); }
    .panel.on { display: block; }
    @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

    .setup-label { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-light); margin-bottom: .6rem; }
    .chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
    .chip {
      font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer;
      background: #fff; color: var(--text-muted);
      border: 1px solid var(--border-color); border-radius: 999px;
      padding: .5rem .9rem; transition: all .18s ease;
    }
    .chip:hover { border-color: var(--primary); color: var(--primary-dark); }
    .chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
    .chip-mini { padding: .45rem .8rem; }

    .row { display: flex; flex-wrap: wrap; gap: 2rem; margin-bottom: 1.5rem; }
    .row > div { flex: 1 1 180px; }

    .start {
      width: 100%; font: inherit; font-size: 1.05rem; font-weight: 700; cursor: pointer;
      background: var(--primary); color: #fff; border: none; border-radius: .9rem;
      padding: 1rem; transition: transform .15s ease, background .18s ease;
    }
    .start:hover { background: var(--primary-dark); transform: translateY(-1px); }
    .start:active { transform: none; }
    .start:disabled { background: #cbd5e1; cursor: not-allowed; transform: none; }

    .meta-line { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--text-light); margin-bottom: .6rem; font-weight: 600; }
    .bar { height: 6px; background: var(--border-color); border-radius: 999px; overflow: hidden; margin-bottom: 1.5rem; }
    .bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--quiz-accent)); border-radius: 999px; transition: width .4s cubic-bezier(.2,.7,.3,1); }

    .round-tag { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary-dark); background: var(--right-bg); border-radius: 999px; padding: .3rem .7rem; margin-bottom: .9rem; }
    .qtext { font-size: clamp(1.15rem, 3.5vw, 1.5rem); font-weight: 700; line-height: 1.35; margin-bottom: 1.5rem; letter-spacing: -.01em; }

    .opts { display: grid; gap: .6rem; }
    .opt {
      display: flex; align-items: center; gap: .8rem; text-align: left; width: 100%;
      font: inherit; font-size: .98rem; font-weight: 500; cursor: pointer;
      background: #fff; color: var(--text);
      border: 1.5px solid var(--border-color); border-radius: .8rem; padding: .9rem 1rem;
      transition: border-color .15s ease, background .15s ease, transform .12s ease;
    }
    .opt:hover:not(:disabled) { border-color: var(--primary); transform: translateX(2px); }
    .opt:disabled { cursor: default; }
    .key {
      flex: 0 0 auto; width: 1.6rem; height: 1.6rem; border-radius: .45rem;
      background: #f1f5f9; color: var(--text-light);
      display: grid; place-items: center; font-size: .78rem; font-weight: 700;
    }
    .opt.right { border-color: var(--primary); background: var(--right-bg); }
    .opt.right .key { background: var(--primary); color: #fff; }
    .opt.wrong { border-color: var(--wrong); background: var(--wrong-bg); }
    .opt.wrong .key { background: var(--wrong); color: #fff; }
    .opt.dim { opacity: .5; }

    .next-row { margin-top: 1.25rem; min-height: 3rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
    .verdict { font-size: .9rem; font-weight: 600; }
    .verdict.ok { color: var(--primary-dark); }
    .verdict.no { color: var(--wrong); }
    .next {
      font: inherit; font-size: .92rem; font-weight: 700; cursor: pointer;
      background: var(--quiz-dark); color: #fff; border: none;
      border-radius: .7rem; padding: .7rem 1.4rem; transition: opacity .18s ease;
    }
    .next:hover { opacity: .85; }

    /* in-quiz app nudge, after questions 5 and 15 */

    /* results */
    .score-wrap { text-align: center; padding: .5rem 0 1.5rem; }
    .score-big { font-size: clamp(3rem, 12vw, 4.5rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--primary-dark); }
    .score-of { font-size: 1rem; color: var(--text-light); font-weight: 600; margin-top: .4rem; }
    .verdict-line { font-size: 1.05rem; font-weight: 600; margin-top: 1rem; color: var(--text-muted); }
    .breakdown { display: grid; gap: .5rem; margin: 1.5rem 0; }
    .brow { display: flex; align-items: center; gap: .75rem; font-size: .9rem; }
    .brow .nm { flex: 0 0 40%; font-weight: 600; }
    .brow .bar2 { flex: 1; height: 8px; background: var(--border-color); border-radius: 999px; overflow: hidden; }
    .brow .bar2 span { display: block; height: 100%; background: var(--primary); border-radius: 999px; transition: width .6s ease; }
    .brow .sc { flex: 0 0 3.5rem; text-align: right; font-weight: 700; color: var(--text-muted); font-variant-numeric: tabular-nums; }
    .weak { background: var(--right-bg); border: 1px solid #a7f3d0; border-radius: .9rem; padding: 1rem 1.15rem; font-size: .92rem; line-height: 1.6; margin-bottom: 1.5rem; }
    .weak strong { color: var(--primary-dark); }
    .btn-row { display: flex; flex-wrap: wrap; gap: .6rem; }
    .btn-row button, .btn-row a {
      flex: 1 1 auto; text-align: center; font: inherit; font-size: .92rem; font-weight: 700;
      cursor: pointer; border-radius: .7rem; padding: .8rem 1.2rem; text-decoration: none;
      transition: all .18s ease; border: 1.5px solid var(--border-color); background: #fff; color: var(--text);
    }
    .btn-row .prim { background: var(--primary); border-color: var(--primary); color: #fff; }
    .btn-row .prim:hover { background: var(--primary-dark); }
    .btn-row button:hover, .btn-row a:hover { border-color: var(--primary); }

    .review { margin-top: 1.75rem; border-top: 1px solid var(--border-color); padding-top: 1.5rem; }
    .review h3 { font-size: .95rem; margin-bottom: .9rem; }
    .miss { font-size: .9rem; line-height: 1.55; padding: .75rem 0; border-bottom: 1px dashed var(--border-color); }
    .miss q { font-weight: 600; }
    .miss .ans { color: var(--primary-dark); font-weight: 700; }

    /* ---------- prose ---------- */
    .prose { padding: 1rem 0 2rem; }
    .prose h2 { font-size: clamp(1.4rem, 4vw, 1.9rem); font-weight: 800; letter-spacing: -.02em; margin: 2.5rem 0 .9rem; }
    .prose h3 { font-size: 1.05rem; font-weight: 700; margin: 1.5rem 0 .5rem; }
    .prose p { color: var(--text-muted); line-height: 1.75; margin-bottom: 1rem; }
    .prose a { color: var(--primary-dark); font-weight: 600; }
    .prose ul, .prose ol { color: var(--text-muted); line-height: 1.75; margin: 0 0 1rem 1.25rem; }
    .prose li { margin-bottom: .4rem; }
    .callout { background: var(--surface); border: 1px solid var(--border-color); border-left: 4px solid var(--primary); border-radius: .8rem; padding: 1.1rem 1.3rem; margin: 1.5rem 0; }
    .callout p { margin: 0; }

    .rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8rem; margin: 1.25rem 0; }
    .rcard { background: var(--surface); border: 1px solid var(--border-color); border-radius: .9rem; padding: 1rem 1.1rem; }
    .rcard h3 { margin: 0 0 .3rem; font-size: .95rem; }
    .rcard p { margin: 0; font-size: .85rem; line-height: 1.55; }

    .qa { border-bottom: 1px solid var(--border-color); padding: .85rem 0; }
    .qa p { margin: 0; }
    .qa .qq { font-weight: 600; color: var(--text); }
    .qa .aa { font-size: .9rem; color: var(--primary-dark); font-weight: 600; margin-top: .2rem; }

    .cluster { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .8rem; margin: 1.25rem 0; }
    .ccard { display: block; background: var(--surface); border: 1px solid var(--border-color); border-radius: .9rem; padding: 1.1rem 1.2rem; text-decoration: none; transition: all .18s ease; }
    .ccard:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 12px 28px -18px rgba(2,44,34,.4); }
    .ccard h3 { margin: 0 0 .3rem; font-size: .95rem; color: var(--text); }
    .ccard p { margin: 0; font-size: .84rem; line-height: 1.5; color: var(--text-muted); }

    .cta {
      background: var(--quiz-dark); color: #fff; border-radius: 1.25rem;
      padding: 2.25rem 2rem; text-align: center; margin: 3rem 0 1rem;
    }
    .cta h2 { color: #fff; margin: 0 0 .6rem; font-size: clamp(1.3rem, 4vw, 1.75rem); }
    .cta p { color: rgba(255,255,255,.8); margin-bottom: 1.5rem; line-height: 1.65; }
    .cta a {
      display: inline-block; background: var(--primary); color: #fff; text-decoration: none;
      font-weight: 700; border-radius: .8rem; padding: .9rem 1.9rem; transition: background .18s ease;
    }
    .cta a:hover { background: #34d399; }
    .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
      .rcard .rlink { display: inline-block; margin-top: .5rem; font-size: .85rem; font-weight: 600; color: var(--primary-dark, #1B3A25); text-decoration: underline; text-underline-offset: 3px; }
    .rmore { margin-top: 1rem; }
/* ns-pq-css:start */
    /* All-questions list (scripts/pubquiz-lists.mjs) */
    .pq-all-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
    .pq-print { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1rem; border: 1px solid var(--border-color); border-radius: .75rem; background: var(--surface); color: var(--text); font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; }
    .pq-print:hover { border-color: var(--primary-dark, #1B3A25); }
    .pq-round { border: 1px solid var(--border-color); border-radius: .9rem; margin: .6rem 0; background: var(--surface); }
    .pq-round > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 44px; padding: .8rem 1.1rem; font-weight: 700; }
    .pq-round > summary::-webkit-details-marker { display: none; }
    .pq-round > summary::after { content: "+"; font-size: 1.2rem; line-height: 1; color: var(--primary-dark, #1B3A25); }
    .pq-round[open] > summary::after { content: "−"; }
    .pq-round .pq-count { margin-left: auto; font-weight: 500; font-size: .85rem; color: var(--text-muted); }
    .pq-body { padding: 0 1.1rem 1rem; }
    .pq-body h3 { margin: 1rem 0 .2rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
    .pillar-proof { margin: 1rem 0 0; font-size: .95rem; }
    .pillar-proof a { font-weight: 700; }
    @media print {
      body * { visibility: hidden; }
      #all-questions, #all-questions * { visibility: visible; }
      #all-questions { position: absolute; left: 0; top: 0; width: 100%; }
      .pq-print, .pq-round > summary::after { display: none; }
      .pq-round { border: 0; margin: 0 0 1rem; break-inside: auto; }
      .pq-round > summary { padding: 0; font-size: 1.1rem; }
      .pq-body { padding: 0; }
    }
/* ns-pq-css:end */
    /* Result card + halfway nudge (pub-quiz CTA round, 2026-10-04) */
    .pq-fix { background: #1B3A25; color: #FAF8F2; border-radius: 1.1rem; padding: 1.25rem; margin: 0 0 1.5rem; display: flex; flex-direction: column; gap: .8rem; text-align: left; }
    .pq-fix[hidden] { display: none; }
    .pq-fix p { margin: 0; }
    .pq-fix-kicker { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #E2C67A; }
    .pq-fix-head { font-size: 1.5rem; font-weight: 800; line-height: 1.2; color: #FAF8F2; }
    .pq-fix-line { font-size: .95rem; line-height: 1.5; color: #E8E2CF; }
    .pq-fix-grid { display: grid; gap: 1rem; }
    .pq-course { background: #FAF8F2; color: #1B3A25; border-radius: .9rem; overflow: hidden; }
    .pq-course[hidden] { display: none; }
    .pq-course img { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; }
    @media (max-width: 600px) { .pq-course img { aspect-ratio: 2 / 1; } }
    .pq-course-body { padding: .75rem .9rem .9rem; }
    .pq-course-meta { font-size: .8rem; font-weight: 700; color: #4A5D50; }
    .pq-course-title { font-size: 1.05rem; font-weight: 800; line-height: 1.3; margin-top: .2rem !important; }
    .pq-qr { display: none; }
    a.pq-fix-btn { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 1rem; background: #B8942E; color: #142C1C; border-radius: .9rem; font-weight: 800; font-size: 1rem; text-decoration: none; }
    a.pq-fix-btn:hover { background: #C9A43A; color: #142C1C; }
    .pq-fix-proof { text-align: center; font-size: .85rem; color: #E8E2CF; }
    @media (min-width: 1024px) and (hover: hover) {
      .pq-fix-grid { grid-template-columns: minmax(0, 1fr) 13rem; align-items: start; }
      .pq-qr { display: flex; flex-direction: column; align-items: center; gap: .6rem; text-align: center; font-size: .85rem; line-height: 1.4; color: #E8E2CF; }
      .pq-qr img { width: 140px; height: 140px; padding: 10px; background: #FFFFFF; border-radius: .8rem; }
      .pq-qr-stores { display: flex; gap: .5rem; }
      .pq-qr-stores a { color: #FAF8F2; border: 1px solid rgba(250,248,242,.4); border-radius: .6rem; padding: .45rem .7rem; font-weight: 700; text-decoration: none; }
      .pq-qr-stores a:hover { border-color: #FAF8F2; color: #FAF8F2; }
    }
    .pq-promise { text-align: center; font-size: .88rem; line-height: 1.5; color: var(--text-muted); margin: 1rem 0 0; }
    .pq-nudge { display: flex; gap: .9rem; align-items: center; margin-top: 1rem; background: #F4EEDD; border: 1px solid #E2D3A6; border-radius: 1rem; padding: .9rem; animation: pqNudgeIn .5s ease; }
    .pq-nudge[hidden] { display: none; }
    @keyframes pqNudgeIn { from { opacity: 0; } to { opacity: 1; } }
    .pq-nudge-shot { flex: 0 0 auto; width: 64px; height: 138px; object-fit: cover; object-position: top; border-radius: .7rem; border: 1px solid #E2D3A6; }
    .pq-nudge-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .3rem; }
    .pq-nudge-body p { margin: 0; }
    .pq-nudge-kicker { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #1B3A25; }
    .pq-nudge-head { font-size: .98rem; font-weight: 700; color: #1B3A25; line-height: 1.4; }
    .pq-nudge-text { font-size: .88rem; color: #4A5D50; line-height: 1.45; }
    a.pq-nudge-btn { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; margin-top: .2rem; background: #B8942E; color: #142C1C; border-radius: .7rem; font-weight: 800; font-size: .92rem; text-decoration: none; }
    a.pq-nudge-btn:hover { background: #C9A43A; color: #142C1C; }
    .pq-nudge-proof { font-size: .78rem; color: #4A5D50; }
