/* Szarpidrut 2027 — W27 (quiz): poprawki ręczne do w27.css.
   Makieta buduje opcje odpowiedzi i podsumowanie w JS (ekstraktor ich nie widzi), a tytuł pytania ma tam
   pojedynczy #question-title — tu pytania są renderowane z bazy, każde we własnym .q-question-item. */

/* Tytuł pytania (odpowiednik #question-title z makiety) */
:where(.sz27-w27) #w27 .q-question-title{font-size: clamp(28px, 4vw, 44px); line-height: 1.22; text-transform: none; max-width: 760px; margin-bottom: 28px; overflow-wrap: anywhere;}

/* Opcje odpowiedzi */
:where(.sz27-w27) #w27 .q-option{position: relative; display: flex; align-items: center; min-height: 80px; max-width: 100%; border: 1px solid #3a3a3a; background: #202020; gap: 17px; padding: 14px 18px; cursor: pointer; transition: border-color .16s, background .16s;}
:where(.sz27-w27) #w27 .q-option:hover{background: #282828; border-color: #777;}
:where(.sz27-w27) #w27 .q-option.is-selected{border-color: var(--q-red); background: #311b20;}
:where(.sz27-w27) #w27 .q-option input{position: absolute; opacity: 0; inline-size: 1px; block-size: 1px;}
:where(.sz27-w27) #w27 .q-option:focus-within{outline: 2px solid var(--q-red); outline-offset: 3px;}
:where(.sz27-w27) #w27 .q-option-letter{display: grid; place-items: center; min-width: 38px; min-height: 38px; border: 1px solid #606060; font: 23px/1 Anton, Impact, sans-serif; color: #ededed;}
:where(.sz27-w27) #w27 .q-option.is-selected .q-option-letter{background: var(--q-red); border-color: var(--q-red);}
:where(.sz27-w27) #w27 .q-option-text{font-size: 16px; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; min-width: 0;}
:where(.sz27-w27) #w27 .q-note--multi{margin: -14px 0 24px; color: var(--q-muted);}
:where(.sz27-w27) #w27 .q-main-button:disabled{opacity: .7; cursor: progress;}
:where(.sz27-w27) #w27 .q-form-error{margin: 16px 0 0; color: #ff8f95; font-weight: 800; font-size: 14px;}

/* Podsumowanie odpowiedzi */
:where(.sz27-w27) #w27 .q-review-row{border-top: 1px solid #3a3a3a; padding: 14px 0 15px;}
:where(.sz27-w27) #w27 .q-review-kicker{font-size: 11px; font-weight: 800; letter-spacing: .06em; display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; color: #bbb;}
:where(.sz27-w27) #w27 .q-review-kicker .correct{color: #8dd49a;}
:where(.sz27-w27) #w27 .q-review-kicker .wrong{color: #ff8f95;}
:where(.sz27-w27) #w27 .q-review-title{font-weight: 800; color: #f5f5f5; font-size: 14px; margin-bottom: 6px;}
:where(.sz27-w27) #w27 .q-review-answer{font-size: 12px; color: #aaa; line-height: 1.5;}
:where(.sz27-w27) #w27 .q-result-panel:focus{outline: none;}

/* Opis quizu z edytora (HTML) w miejscu leadu makiety */
:where(.sz27-w27) #w27 .q-description{max-width: 540px; overflow-wrap: anywhere;}
:where(.sz27-w27) #w27 .q-description p{margin: 0 0 10px;}
:where(.sz27-w27) #w27 .q-description p:last-child{margin-bottom: 0;}
:where(.sz27-w27) #w27 .q-description a{text-decoration: underline; text-decoration-color: var(--q-red); text-underline-offset: 3px;}
:where(.sz27-w27) #w27 .q-description + .q-hero-bottom{margin-top: 18px;}

/* Prawdziwa grafika quizu (mainImage) w kadrze ilustracji makiety
   (grafiki quizów to zwykle kwadratowe plakaty z napisami — pokazujemy całe, bez paska z podpisem i bez nakładki) */
:where(.sz27-w27) #w27 .q-visual--photo{min-height: 0; max-height: 560px; aspect-ratio: 1 / 1; align-self: center; width: 100%; background: #000;}
:where(.sz27-w27) #w27 .q-visual--photo::after,
:where(.sz27-w27) #w27 .q-visual--photo .q-visual-label{display: none;}
:where(.sz27-w27) #w27 .q-visual--photo .q-visual-img{position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block;}

@media (max-width: 760px){
  :where(.sz27-w27) #w27 .q-visual--photo{max-height: none; min-height: 0;}
  :where(.sz27-w27) #w27 .q-question-title{font-size: clamp(28px, 7.5vw, 34px); line-height: 1.28; margin-bottom: 21px;}
  :where(.sz27-w27) #w27 .q-option{min-height: 69px; gap: 12px; padding: 12px 15px; min-width: 0;}
  :where(.sz27-w27) #w27 .q-option-text{font-size: 16px; line-height: 1.48;}
  :where(.sz27-w27) #w27 .q-review-kicker{font-size: 12px; line-height: 1.45; letter-spacing: .03em;}
  :where(.sz27-w27) #w27 .q-review-title{font-size: 16px; line-height: 1.45;}
  :where(.sz27-w27) #w27 .q-review-answer{font-size: 14px; line-height: 1.6;}
}

/* Przewinięcie do panelu quizu nie chowa go pod przyklejonym nagłówkiem */
:where(.sz27-w27) #w27 #quiz-panel{scroll-margin-top: calc(var(--sz45-top, 78px) + 12px);}
