.quiz-shell {
  padding-top: 12px;
}
.quiz-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 32px;
  align-items: start;
}
.quiz-main-column {
  min-width: 0;
}

.quiz-top-ad {
  margin-bottom: 24px;
}

.quiz-top-ad-label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}
  

@media (max-width: 760px) {
  .quiz-shell {
    --quiz-gutter: 28px;
    padding-inline: var(--quiz-gutter);
  }

  .quiz-top-ad {
    margin-inline: calc(-1 * var(--quiz-gutter));
  }
}

@media (max-width: 420px) {
  .quiz-shell {
    --quiz-gutter: 18px;
  }
}

.quiz-main {
  border: 1px solid var(--line);
  background: white;
  border-radius: 15px;
  overflow: hidden;
}
.quiz-cover {
  height: 260px;
  position: relative;
  background: #4f6c59;
  isolation: isolate;
}
.quiz-cover img {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.quiz-cover:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0c251bca, #0c251b45);
  z-index: -1;
}
.quiz-cover > div {
  padding: 34px 38px;
  color: white;
  max-width: 640px;
}
.quiz-cover h1 {
  font-size: 39px;
  letter-spacing: -1px;
  line-height: 1.15;
  margin: 17px 0;
}
.quiz-cover p {
  font-size: 12px;
}
.quiz-cover p span {
  padding: 0 9px;
}
.quiz-body {
  padding: 30px 38px;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--green);
  font-weight: 700;
}
.progress-label > span:last-child {
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
}
progress {
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  display: block;
  margin: 14px 0 30px;
  background: #eaf0e5;
}
progress::-webkit-progress-bar {
  background: #eaf0e5;
}
progress::-webkit-progress-value {
  background: #78965f;
  border-radius: 8px;
}
progress::-moz-progress-bar {
  background: #78965f;
}
fieldset {
  border: 0;
  margin: 0 0 28px;
  padding: 0;
  min-width: 0;
}
legend {
  font-size: 25px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.5px;
  padding: 0;
  margin-bottom: 8px;
  max-width: 100%;
}
.question-instruction {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}
fieldset label {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 10px 0;
  font-size: 15px;
  cursor: pointer;
  position: relative;
  min-height: 58px;
}
fieldset input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
fieldset label:has(input:focus-visible) {
  outline: 3px solid #9ebc67;
  outline-offset: 2px;
}
.option-letter {
  border: 1px solid var(--line);
  border-radius: 5px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: #798574;
  flex-shrink: 0;
}
.option-check {
  margin-left: auto;
  visibility: hidden;
  color: var(--green);
}
fieldset label:hover {
  background: #f5f8f0;
}
fieldset label:has(:checked) {
  background: #eef4e6;
  border-color: #6a8c5d;
  box-shadow: 0 0 0 1px #6a8c5d;
}
fieldset label:has(:checked) .option-letter {
  background: #668452;
  color: white;
  border-color: #668452;
}
fieldset label:has(:checked) .option-check {
  visibility: visible;
}
.question-controls {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding-top: 3px;
}
.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.answer-hint {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  margin: 22px 0 0;
}
.sidebar-box {
  background: #edf1e7;
  padding: 27px;
  border-radius: 12px;
}
.sidebar-box h2 {
  font-size: 23px;
}
.sidebar-box > p:not(.eyebrow) {
  font-size: 13px;
  color: #778371;
}
.sidebar-box .eyebrow {
  font-size: 9px;
}
.sidebar-box ul {
  padding: 16px 0 0;
  border-top: 1px solid #d9e2d0;
  list-style: none;
  font-size: 12px;
  margin-bottom: 0;
}
.sidebar-box li {
  margin: 8px 0;
}
.sidebar-box li:before {
  content: "✓";
  margin-right: 9px;
  color: #739363;
}
.sidebar-more {
  padding: 28px 0;
}
.sidebar-more .eyebrow {
  font-size: 10px;
}
.sidebar-more > a {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 17px;
}
.sidebar-more img {
  width: 75px;
  height: 65px;
  border-radius: 7px;
}
.sidebar-more h3 {
  font-size: 13px;
  line-height: 1.3;
  margin: 0 0 5px;
}
.sidebar-more small {
  font-size: 10px;
  color: var(--muted);
}
.sidebar-note {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 18px 5px;
  color: var(--muted);
}
.sidebar-note span {
  font-size: 35px;
  color: #8eaa74;
}
.sidebar-note p {
  font-size: 12px;
}
.sources {
  font-size: 12px;
}
.sources {
  display: flex;
  gap: 18px;
  padding: 14px 0;
  text-decoration: underline;
}
#results {
  text-align: center;
  background: #f2f6ec;
  border-radius: 12px;
  padding: 25px;
}
#results .result-symbol {
  font-size: 60px;
  color: #87a75d;
}
#results .eyebrow {
  font-size: 9px;
  margin-bottom: 10px;
}
#results h2 {
  font-size: 28px;
}
#results > p:not(.eyebrow) {
  font-size: 13px;
  color: var(--muted);
}
.score {
  font-family: Georgia, serif;
  font-size: 64px;
  line-height: 1;
  margin: 25px 0 15px;
}
.score span {
  font-size: 25px;
  color: #8b9a80;
}
#results h3 {
  font-size: 18px;
}
.result-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 22px 0;
}
#results > a {
  font-size: 12px;
  text-decoration: underline;
}
.explanation {
  font-size: 14px;
  background: #eef5e8;
  padding: 18px;
  border-radius: 8px;
  color: #466338;
}
.explanation strong {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.incorrect .explanation {
  background: #faf0e4;
  color: #79572e;
}
.answer-correct {
  border-color: #668452 !important;
  background: #eef5e8 !important;
}
.answer-correct .option-check {
  visibility: visible;
}
.incorrect legend:after {
  content: " · Review";
  font-size: 13px;
  color: #a17543;
}
.correct legend:after {
  content: " ✓";
  font-size: 18px;
  color: #668452;
}
@media (max-width: 1100px) {
  .quiz-grid {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 23px;
  }
  .quiz-body {
    padding: 28px;
  }
  .quiz-cover > div {
    padding: 30px;
  }
  .quiz-cover h1 {
    font-size: 35px;
  }
  .sidebar-box {
    padding: 22px;
  }
}
@media (max-width: 760px) {
  .quiz-grid {
    grid-template-columns: 1fr;
  }
  .quiz-grid > aside {
    display: none;
  }
  .quiz-cover {
    height: 270px;
  }
  .quiz-cover h1 {
    font-size: 37px;
  }
  .quiz-body {
    padding: 26px;
  }
  .quiz-shell {
    padding-top: 15px;
  }
  .progress-label {
    font-size: 9px;
    letter-spacing: 0.5px;
  }
  legend {
    font-size: 23px;
  }
}
@media (max-width: 420px) {
  .quiz-cover > div {
    padding: 28px 22px;
  }
  .quiz-cover h1 {
    font-size: 34px;
  }
  .quiz-body {
    padding: 23px 18px;
  }
  .progress-label > span:last-child {
    font-size: 9px;
  }
  .question-controls .button {
    font-size: 12px;
    padding: 12px 14px;
  }
  fieldset label {
    font-size: 14px;
  }
  .result-actions .button {
    padding: 12px 15px;
    font-size: 12px;
  }
}
.answer-feedback:has(p:not([hidden])) {
  margin: 18px 0 0;
  padding: 16px 18px;
  background: #edf6e8;
  border: 1px solid #c5dbb6;
  border-radius: 9px;
  color: #325b28;
  font-size: 14px;
}
.answer-feedback p {
  margin: 0;
}
.answer-feedback .correct-answer {
  margin-top: 6px;
}
.incorrect .answer-feedback {
  background: #fff1e8;
  border-color: #edc3ac;
  color: #854428;
}
.answer-wrong {
  background: #fff0e9 !important;
  border-color: #ba684b !important;
  box-shadow: 0 0 0 1px #ba684b !important;
}
.answer-wrong .option-letter {
  background: #a95538 !important;
  border-color: #a95538 !important;
  color: white !important;
}
.answer-wrong .option-check {
  font-size: 0;
  color: #a95538;
  visibility: visible;
}
.answer-wrong .option-check:after {
  content: "✕";
  font-size: 18px;
}
.answer-correct .option-check {
  visibility: visible;
}
.correct legend:after,
.incorrect legend:after {
  content: none;
}
.explanation {
  margin-top: 10px;
}
.answer-feedback:empty {
  display: none;
}
.quiz-shell {
  padding-top: 18px;
}
.quiz-grid {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 30px;
}
.quiz-main {
  border-radius: 24px;
  border-color: #e9e0f1;
  box-shadow: 0 8px 0 #f3edf8;
  background: white;
}
.quiz-cover {
  height: 240px;
  background: #8c71ab;
}
.quiz-cover:after {
  background: linear-gradient(90deg, #41275de8, #41275d38);
}
.quiz-cover > div {
  padding: 32px 38px;
}
.quiz-cover h1 {
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -1.2px;
  font-size: 37px;
  line-height: 1.14;
  max-width: 570px;
}
.quiz-cover .glass-label {
  border-radius: 20px;
  background: #ffe484;
  color: #725632;
  border: 0;
  font-size: 9px;
  letter-spacing: 1px;
  padding: 5px 12px;
}
.quiz-cover p {
  font-size: 12px;
  color: #f2e8fa;
}
.quiz-body {
  padding: 31px 38px;
}
.progress-label {
  color: #956bca;
  font-size: 10px;
}
.progress-label > span:last-child {
  color: #b39ac1;
}
progress {
  height: 9px;
  border-radius: 10px;
  background: #f0e7f9;
  margin-bottom: 31px;
}
progress::-webkit-progress-bar {
  background: #f0e7f9;
}
progress::-webkit-progress-value {
  background: linear-gradient(90deg, #b391eb, #8253ce);
}
progress::-moz-progress-bar {
  background: #9a71d7;
}
legend {
  font-size: 25px;
  font-weight: 700;
  line-height: 1.4;
  color: #4b365f;
}
.question-instruction {
  font-size: 13px;
  color: #a28cab;
  margin: 6px 0 20px;
}
fieldset label {
  border: 1px solid #e8def0;
  border-radius: 13px;
  min-height: 62px;
  margin: 12px 0;
  padding: 14px 16px;
  background: #fefcff;
  font-size: 16px;
  box-shadow: 0 3px 0 #f5eff9;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.option-letter {
  border: 0;
  background: #f0e7f8;
  border-radius: 10px;
  width: 33px;
  height: 33px;
  color: #9c79bd;
  font-weight: 700;
  font-size: 12px;
}
fieldset label:hover {
  background: #f6efff;
  border-color: #b495d4;
}
fieldset label:has(:checked) {
  background: #f1e8ff;
  border-color: #9a75c8;
  box-shadow: 0 0 0 1px #9a75c8;
}
fieldset label:has(:checked) .option-letter {
  background: #956bcc;
  border-color: #956bcc;
}
.question-controls {
  padding-top: 8px;
}
.question-controls .button {
  font-size: 13px;
}
.answer-hint {
  font-size: 11px;
  color: #ad98b8;
  line-height: 1.7;
  margin-top: 22px;
}
.sidebar-box {
  background: #fff1cd;
  border: 1px solid #f3e2b7;
  border-radius: 20px;
  padding: 27px;
}
.sidebar-box .eyebrow {
  font-size: 9px;
  color: #b39252;
}
.sidebar-box h2 {
  font-size: 25px;
  font-weight: 700;
  color: #75583e;
}
.sidebar-box > p:not(.eyebrow) {
  color: #aa8c6a;
  font-size: 13px;
}
.sidebar-box ul {
  border-top: 1px dashed #e6cfa5;
  color: #957553;
  font-size: 12px;
}
.sidebar-box li:before {
  color: #c3a15c;
}
.sidebar-more {
  padding: 29px 4px 22px;
}
.sidebar-more .eyebrow {
  font-size: 9px;
  color: #b298c4;
}
.sidebar-more img {
  border-radius: 12px;
  width: 75px;
  height: 70px;
}
.sidebar-more > a {
  background: white;
  padding: 8px;
  border: 1px solid #eee4f4;
  border-radius: 15px;
  gap: 11px;
}
.sidebar-more h3 {
  font-size: 13px;
  color: #745b86;
}
.sidebar-more small {
  font-size: 10px;
  color: #a991b7;
}
.sidebar-note {
  border: 0;
  border-radius: 18px;
  background: #f2ebfb;
  color: #a089b4;
  padding: 18px 10px;
}
.sidebar-note span {
  color: #bb9bda;
  font-size: 40px;
}
.sidebar-note p {
  font-size: 13px;
}
.answer-feedback:has(p:not([hidden])) {
  border-radius: 13px;
  background: #eefaeb;
  border-color: #bedfb3;
  color: #527645;
  padding: 18px;
}
.answer-feedback strong {
  font-weight: 700;
}
.incorrect .answer-feedback {
  background: #fff0e5;
  border-color: #efc8ae;
  color: #ab6c45;
}
.answer-correct {
  background: #eff8e9 !important;
  border-color: #94b980 !important;
  box-shadow: 0 0 0 1px #94b980 !important;
}
.answer-correct .option-letter {
  background: #dceecf;
  color: #65874e;
}
.answer-correct:has(:checked) .option-letter {
  background: #7fa563 !important;
}
.answer-correct .option-check {
  color: #7a9b60;
}
.answer-wrong {
  background: #fff1e7 !important;
  border-color: #d99a77 !important;
  box-shadow: 0 0 0 1px #d99a77 !important;
}
.answer-wrong .option-letter {
  background: #d28a63 !important;
  border-color: #d28a63 !important;
}
.answer-wrong .option-check {
  color: #c67e59;
}
.explanation {
  background: #f5f8ee;
  color: #7c9467;
  border-radius: 12px;
  padding: 18px;
  font-size: 14px;
}
.incorrect .explanation {
  background: #fff7ec;
  color: #b19270;
}
#results {
  background: #f5edff;
  border: 1px dashed #d8c4ed;
  border-radius: 20px;
  padding: 28px;
}
#results .result-symbol {
  color: #e8be50;
  font-size: 74px;
  line-height: 1.1;
}
#results .eyebrow {
  color: #a385bd;
}
#results h2 {
  font-size: 31px;
  font-weight: 800;
  color: #725091;
}
.score {
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-weight: 800;
  color: #976ac9;
  font-size: 74px;
}
.score span {
  font-size: 28px;
  color: #c4acd6;
}
#results h3 {
  color: #a183b5;
  font-size: 18px;
}
#results > p:not(.eyebrow) {
  color: #a78cb7;
}
.result-actions {
  gap: 15px;
}
#results > a {
  color: #9672b0;
}
@media (max-width: 1100px) {
  .quiz-grid {
    grid-template-columns: minmax(0, 1fr) 250px;
  }
  .sidebar-box {
    padding: 22px;
  }
  .quiz-cover h1 {
    font-size: 32px;
  }
}
@media (max-width: 760px) {
  .quiz-grid {
    grid-template-columns: 1fr;
  }
  .quiz-grid > aside {
    display: none;
  }
  .quiz-cover {
    height: 230px;
  }
  .quiz-cover > div {
    padding: 27px;
  }
  .quiz-cover h1 {
    font-size: 33px;
  }
  .quiz-body {
    padding: 26px;
  }
  .progress-label {
    font-size: 9px;
  }
  .progress-label > span:last-child {
    font-size: 9px;
  }
  legend {
    font-size: 23px;
  }
  .question-controls .button {
    font-size: 12px;
    padding: 13px 18px;
  }
  .answer-hint {
    font-size: 11px;
  }
}
@media (max-width: 420px) {
  .quiz-body {
    padding: 23px 18px;
  }
  .quiz-cover > div {
    padding: 25px 22px;
  }
  .quiz-cover h1 {
    font-size: 31px;
  }
  fieldset label {
    font-size: 14px;
  }
  .option-letter {
    width: 29px;
    height: 29px;
  }
  .question-controls .button {
    font-size: 11px;
    padding: 13px 15px;
  }
  .result-actions .button {
    font-size: 12px;
    padding: 13px 17px;
  }
  #results h2 {
    font-size: 27px;
  }
  .answer-feedback:has(p:not([hidden])) {
    font-size: 13px;
    padding: 16px;
  }
}
.quiz-cover {
  display: flex;
  align-items: stretch;
  height: auto;
  min-height: 260px;
  background: #f4edfc;
  isolation: auto;
}
.quiz-cover:after {
  display: none;
}
.quiz-cover > img {
  position: static;
  inset: auto;
  z-index: auto;
  width: 45%;
  height: auto;
  min-height: 260px;
  object-fit: cover;
  object-position: center;
  order: 2;
}
.quiz-cover > div {
  width: 55%;
  padding: 32px;
  color: #594071;
  align-self: center;
}
.quiz-cover h1 {
  color: #594071;
  font-size: 32px;
}
.quiz-cover p {
  color: #977bab;
}
.quiz-cover .glass-label {
  background: #ffe69b;
  color: #7e603a;
}
.sidebar-more img {
  object-position: center;
}
@media (max-width: 760px) {
  .quiz-cover {
    display: flex;
    flex-direction: column-reverse;
    min-height: 0;
  }
  .quiz-cover > img {
    width: 100%;
    height: 210px;
    min-height: 0;
    object-fit: cover;
  }
  .quiz-cover > div {
    width: 100%;
    padding: 24px;
  }
  .quiz-cover h1 {
    font-size: 30px;
    margin-block: 14px;
  }
  .quiz-cover p {
    margin-bottom: 0;
  }
}
@media (max-width: 420px) {
  .quiz-cover > img {
    height: 190px;
  }
  .quiz-cover h1 {
    font-size: 28px;
  }
  .quiz-cover > div {
    padding: 22px;
  }
}
.quiz-body:not(.is-interactive) .question-controls,
.quiz-body:not(.is-interactive) .progress-label,
.quiz-body:not(.is-interactive) progress,
.quiz-body:not(.is-interactive) .answer-hint {
  display: none;
}
.question-media {
  display: block;
  max-width: 100%;
  max-height: 320px;
  margin: 12px 0;
  object-fit: contain;
}
.option-image {
  display: block;
  max-width: 100%;
  max-height: 140px;
  object-fit: contain;
}
#quiz-score {
  color: inherit;
  font-size: inherit;
}
.score-result p {
  white-space: pre-line;
}
@media (min-width: 520px) {
  .quiz-options.two-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .quiz-options.two-columns label {
    margin: 0;
  }
}

.question-controls .next-question {
  margin-left: auto;
}

.quiz-storage-message {
  margin-top: 12px;
  color: #8a3c53;
}

fieldset label:has(input:disabled) {
  cursor: default;
}
