/*
 * ACB Myth Quiz: the stylesheet.
 *
 * Everything sits under .acb-myth-quiz, and component rules are written
 * .acb-myth-quiz .acb-myth-quiz__x, at specificity (0,2,0), so they beat the
 * theme's button and link rules at (0,1,1). Deeper rules, up to (0,6,2), hold
 * against an Elementor kit, whose stylesheet prints after this one; each says why
 * where it sits. Sizes are in px, so the theme's root size cannot shrink them, and
 * nothing is smaller than 16px.
 *
 * Order matters in one place: the first-paint rules come after every rule that
 * can match the Start button (see the comment there).
 */

/* ---- Tokens and type ------------------------------------------------------ */

/* On the root rather than :root, with the solution finder's names. */
.acb-myth-quiz {
  --acb-navy: #223e5a;
  --acb-blue: #4790cd;
  --acb-yellow: #ffcd47;
  --acb-surface: #ffffff;
  --acb-focus: #223e5a;
  --acb-radius: 6px;
  --acb-yellow-hover: #ffdd7e;
  --acb-on-yellow: #111111;
  --acb-muted: #5a6e82;
  --acb-tint: #edf4fb;

  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  /* The buttons' font: inherit takes these two from here, so a page set in italic or small capitals never reaches them. */
  font-style: normal;
  font-variant-caps: normal;
  font-variant-numeric: lining-nums;
  /*
   * An Elementor kit's body type (Site Settings > Typography) can set these three, which every element inherits; the
   * root stops them once, for everything in the quiz.
   */
  text-transform: none;
  letter-spacing: normal;
  word-spacing: normal;
  color: var(--acb-navy);
  background: var(--acb-surface);
  text-align: left;
  /* A long unbroken word, such as a pasted address, wraps instead of pushing the page sideways. */
  overflow-wrap: break-word;
}

/*
 * The root's own box. The selector is (0,3,1) on purpose. On a page made in the block
 * editor, Astra gives every direct child of .entry-content its content width, at
 * (0,2,0), or no max-width at all on its Full Width layout, at (0,3,0). Either would
 * stretch the quiz.
 */
div.acb-myth-quiz[data-acb-myth-quiz][id] {
  max-width: 680px;
  margin: 0 auto;
  padding: 4px;
  /* Clears the site's sticky header when the quiz is scrolled to. */
  scroll-margin-top: 96px;
}

/* ---- Normalisation --------------------------------------------------------- */

/* A content-box theme once turned the solution finder's 720px into 736px, so the root is listed too. */
.acb-myth-quiz,
.acb-myth-quiz *,
.acb-myth-quiz *::before,
.acb-myth-quiz *::after {
  box-sizing: border-box;
}

/*
 * Themes set case, spacing and style on these. font-variant-caps, never the
 * font-variant shorthand, which would wipe out the lining numerals. An Elementor
 * kit sets them on h2, h3, a, button and label at (0,1,1), in a stylesheet printed
 * after this one, so these go through the root's own attribute, at (0,2,1). A
 * link's type under the mouse, which the kit sets at (0,2,1) too, is held by the
 * links' own rules below.
 */
.acb-myth-quiz[data-acb-myth-quiz] h2,
.acb-myth-quiz[data-acb-myth-quiz] h3,
.acb-myth-quiz[data-acb-myth-quiz] p,
.acb-myth-quiz[data-acb-myth-quiz] li,
.acb-myth-quiz[data-acb-myth-quiz] a,
.acb-myth-quiz[data-acb-myth-quiz] button,
.acb-myth-quiz[data-acb-myth-quiz] label {
  text-transform: none;
  letter-spacing: normal;
  word-spacing: normal;
  font-style: normal;
  font-variant-caps: normal;
}

/* A kit can underline its headings at (0,1,1) too; the quiz's never are. */
.acb-myth-quiz[data-acb-myth-quiz] h2,
.acb-myth-quiz[data-acb-myth-quiz] h3 {
  text-decoration: none;
}

/* The one !important. A theme's [hidden] { display: block !important } would show what the script hides. */
.acb-myth-quiz [hidden] {
  display: none !important;
}

/* Some themes style script { display: block }, which would print the JSON. */
.acb-myth-quiz .acb-myth-quiz__data {
  display: none;
}

/* ---- Buttons ----------------------------------------------------------------- */

/*
 * Every button and the booking link. Astra gives bare buttons its own padding, text
 * size, line height, radius, shadow and a blue fill on hover and focus, and an
 * Elementor kit a text shadow too, so this sets every one of them. A 2px border on
 * every kind, transparent on the filled ones, keeps them all the same height.
 * font: inherit keeps the lining numerals, which the browser's own button font would
 * reset.
 */
.acb-myth-quiz .acb-myth-quiz__btn {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 16px 20px;
  font: inherit;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: break-word;
  border: 2px solid transparent;
  border-radius: var(--acb-radius);
  box-shadow: none;
  text-shadow: none;
  cursor: pointer;
  transition: none;
}

/* Start the quiz, Check my answer, Next question, See my score. */
.acb-myth-quiz .acb-myth-quiz__btn--primary {
  color: var(--acb-surface);
  background: var(--acb-navy);
  border-color: var(--acb-navy);
}

/*
 * An Elementor kit styles every button under the mouse and with focus at (0,2,1) (Site Settings > Buttons): its colours,
 * a background that can be a gradient, a box shadow, the border and the radius, which beat the rules above. So these
 * are set again through the part that holds the button, one class deeper, where no state changes them: a button keeps
 * its focus after a mouse press, and a touch screen keeps :hover on the one tapped last. The focus ring, deeper still,
 * draws over this shadow. The other buttons do the same below: the answers through __answers, Try the quiz again
 * through __screen.
 */
.acb-myth-quiz .acb-myth-quiz__intro .acb-myth-quiz__btn--primary,
.acb-myth-quiz .acb-myth-quiz__actions .acb-myth-quiz__btn--primary {
  color: var(--acb-surface);
  background: var(--acb-navy);
  border: 2px solid var(--acb-navy);
  border-radius: var(--acb-radius);
  box-shadow: none;
}

/* The booking link: an <a> that opens in the same tab. */
.acb-myth-quiz .acb-myth-quiz__btn--cta {
  color: var(--acb-on-yellow);
  background: var(--acb-yellow);
  border-color: var(--acb-yellow);
}

/*
 * An Elementor kit sets every link's colour and type under the mouse at (0,2,1), which beats the rules above. So the
 * button's text colour and type are set again through the part that holds it, one class deeper, where no state changes
 * them: not under the mouse, and not on a touch screen, which leaves :hover on the link tapped last.
 */
.acb-myth-quiz .acb-myth-quiz__closing .acb-myth-quiz__btn--cta,
.acb-myth-quiz .acb-myth-quiz__end .acb-myth-quiz__btn--cta {
  font: inherit;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--acb-on-yellow);
  text-decoration: none;
  text-transform: none;
  letter-spacing: normal;
  word-spacing: normal;
}

/*
 * A lighter yellow under a pointer that can hover. A touch screen leaves :hover on whatever was touched last, so
 * there the button would keep the lighter yellow after a tap.
 */
@media (hover: hover) {
  .acb-myth-quiz .acb-myth-quiz__btn--cta:hover {
    background: var(--acb-yellow-hover);
    border-color: var(--acb-yellow-hover);
  }
}

/*
 * Try the quiz again: an underlined text button. It keeps the 56px height and the 19px at 700 that every button has
 * (design 5.6), not the 48px and 18px of the finder's text link.
 */
.acb-myth-quiz .acb-myth-quiz__btn--text {
  display: inline-block;
  width: auto;
  padding: 12px 0;
  color: var(--acb-navy);
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Its colours, border, radius and shadow one class deeper, against an Elementor kit's buttons (see the primary buttons). */
.acb-myth-quiz .acb-myth-quiz__screen .acb-myth-quiz__btn--text {
  color: var(--acb-navy);
  background: none;
  border: 0;
  border-radius: var(--acb-radius);
  box-shadow: none;
}

/* ---- Links ------------------------------------------------------------------- */

/* Read-more links: 48px tall, so they are easy to tap. Astra's link transition is cancelled. */
.acb-myth-quiz .acb-myth-quiz__link {
  display: inline-block;
  min-height: 48px;
  padding: 10px 0;
  font-weight: 700;
  color: var(--acb-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: none;
}

/*
 * "(opens in a new tab)" after each read-more link, shown to everyone (Mark's changes of 20 November): in the muted
 * grey at the regular weight and 16px, so it reads as a note on the link rather than part of its label. It sits inside
 * the link, after a real space, so the link's name for a screen reader is unchanged. inline-block stops the link's
 * underline reaching it, and lets it move to the next line whole when the label fills the line. The muted grey on the
 * feedback panel's tint is 4.7:1, on white 5.3:1.
 */
.acb-myth-quiz .acb-myth-quiz__link .acb-myth-quiz__newtab {
  display: inline-block;
  font-size: 16px;
  font-weight: 400;
  color: var(--acb-muted);
  text-decoration: none;
}

/*
 * The phone number never breaks across lines. Its box is 48px tall, but its margins take back the 10px of padding above
 * and below, so the line it sits in keeps the paragraph's own height, with no gap above or below the number: the box
 * reaches 10px into the lines around it, where a tap dials. That is the same on the end screen, in the unavailable
 * message and in the closing block, which all print the number with this class.
 */
.acb-myth-quiz .acb-myth-quiz__phone-link {
  display: inline-block;
  min-height: 48px;
  margin: -10px 0;
  padding: 10px 0;
  font-weight: 700;
  color: var(--acb-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  transition: none;
}

/*
 * An Elementor kit sets every link's colour and type, at rest at (0,1,1) and under the mouse at (0,2,1), which beat the
 * two rules above and the type the links would inherit. So each navy link's colour and type are set again through the
 * part that holds it, one class deeper, where no state changes them: not under the mouse, and not on a touch screen,
 * which leaves :hover on the link tapped last. font: inherit takes the type of the line the link sits in. The end
 * screen's white phone link has its own rule there, at the same depth.
 */
.acb-myth-quiz .acb-myth-quiz__feedback-link .acb-myth-quiz__link,
.acb-myth-quiz .acb-myth-quiz__item-link .acb-myth-quiz__link,
.acb-myth-quiz .acb-myth-quiz__reading-item .acb-myth-quiz__link,
.acb-myth-quiz .acb-myth-quiz__closing .acb-myth-quiz__phone-link,
.acb-myth-quiz.acb-myth-quiz--unavailable .acb-myth-quiz__phone-link {
  font: inherit;
  font-weight: 700;
  color: var(--acb-navy);
  text-decoration: underline;
  text-transform: none;
  letter-spacing: normal;
  word-spacing: normal;
}

/* ---- Focus ring ---------------------------------------------------------------- */

/*
 * Inner to outer: a 2px white gap, the 2px navy outline, then the yellow ring. Astra's
 * button:focus { outline: 0 } and its other focus rules lose to these selectors. In
 * forced colours mode the shadow goes but the outline stays. Through the root's own
 * attribute, at (0,4,0), so the ring outranks the box shadow that the kit-proof button
 * rules set at (0,3,0): specificity decides it, not order, as the answers' rule comes
 * after this one. The box goes deeper still, to (0,5,2): an Elementor kit's focused
 * field rule is (0,4,1), and the box's own rule, further down, (0,4,2).
 */
.acb-myth-quiz[data-acb-myth-quiz] .acb-myth-quiz__btn:focus,
.acb-myth-quiz[data-acb-myth-quiz] .acb-myth-quiz__link:focus,
.acb-myth-quiz[data-acb-myth-quiz] .acb-myth-quiz__phone-link:focus,
.acb-myth-quiz label.acb-myth-quiz__choice input.acb-myth-quiz__check[type="checkbox"]:focus {
  outline: 2px solid var(--acb-navy);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--acb-surface), 0 0 0 7px var(--acb-yellow);
}

/*
 * Browsers that know :focus-visible drop the ring after a mouse or touch press. Older
 * ones ignore this whole rule and keep the ring, which is why plain :focus has it too.
 * Each selector is its ring's with :not(:focus-visible) added, at (0,5,0) and, for the
 * box, (0,6,2): the ring's rules were raised against an Elementor kit (above), and this
 * one has to outrank them to take the ring off.
 */
.acb-myth-quiz[data-acb-myth-quiz] .acb-myth-quiz__btn:focus:not(:focus-visible),
.acb-myth-quiz[data-acb-myth-quiz] .acb-myth-quiz__link:focus:not(:focus-visible),
.acb-myth-quiz[data-acb-myth-quiz] .acb-myth-quiz__phone-link:focus:not(:focus-visible),
.acb-myth-quiz label.acb-myth-quiz__choice input.acb-myth-quiz__check[type="checkbox"]:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

/* Headings and the score line take focus from the script: the ring is for keyboard users only. */
.acb-myth-quiz [tabindex="-1"]:focus {
  outline: none;
}

.acb-myth-quiz [tabindex="-1"]:focus-visible {
  outline: 2px solid var(--acb-navy);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--acb-surface), 0 0 0 7px var(--acb-yellow);
}

/* ---- The server's intro ---------------------------------------------------------- */

/* The script takes the intro over in place, so these are the quiz's first screen too. */
.acb-myth-quiz .acb-myth-quiz__intro {
  margin: 0;
}

.acb-myth-quiz .acb-myth-quiz__title {
  margin: 0 0 16px;
  font-family: inherit;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--acb-navy);
}

@media (min-width: 768px) {
  .acb-myth-quiz .acb-myth-quiz__title {
    font-size: 30px;
  }
}

.acb-myth-quiz .acb-myth-quiz__text {
  margin: 0 0 24px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--acb-navy);
}

/*
 * Start is full width on a phone and sized to its label from 480px. These rules change
 * only its width: its display belongs to the first-paint rules at the end.
 */
.acb-myth-quiz .acb-myth-quiz__start {
  width: 100%;
  vertical-align: top;
}

@media (min-width: 480px) {
  .acb-myth-quiz .acb-myth-quiz__start {
    width: auto;
    min-width: 240px;
  }
}

/* ---- The list of every answer, for visitors without JavaScript --------------------- */

.acb-myth-quiz .acb-myth-quiz__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.acb-myth-quiz .acb-myth-quiz__item {
  margin: 0;
  padding: 20px 0;
  border-top: 1px solid var(--acb-tint);
}

.acb-myth-quiz .acb-myth-quiz__item-statement {
  margin: 0 0 8px;
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--acb-navy);
}

.acb-myth-quiz .acb-myth-quiz__item-answer,
.acb-myth-quiz .acb-myth-quiz__item-explanation,
.acb-myth-quiz .acb-myth-quiz__item-link {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--acb-navy);
}

/* Whichever paragraph ends an item leaves the spacing to the item. */
.acb-myth-quiz .acb-myth-quiz__item > :last-child {
  margin-bottom: 0;
}

/* ---- The booking button and the phone line ---------------------------------------- */

.acb-myth-quiz .acb-myth-quiz__closing {
  margin: 0;
}

.acb-myth-quiz .acb-myth-quiz__phone {
  margin: 16px 0 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--acb-navy);
}

/* When there is no quiz to run: one sentence, then the phone line. */
.acb-myth-quiz.acb-myth-quiz--unavailable .acb-myth-quiz__text {
  margin-bottom: 16px;
}

/* ---- Motion ------------------------------------------------------------------------ */

/*
 * The only motion: the feedback panel's reveal, 180ms of fade and a 6px slide. Every
 * button and link above has transition: none, and nothing waits for the animation to end.
 */
@keyframes acb-myth-quiz-reveal {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.acb-myth-quiz .acb-myth-quiz__feedback--open {
  animation: acb-myth-quiz-reveal 180ms ease-out;
}

/* After the reveal, because a media query adds no specificity. */
@media (prefers-reduced-motion: reduce) {
  .acb-myth-quiz .acb-myth-quiz__feedback--open {
    animation: none;
  }
}

/* ---- First paint (design 5.3) -------------------------------------------------------- */

/*
 * What a visitor sees before the script has built the quiz. The list of every answer is
 * hidden unless the browser says scripting is off, so it never shows to a visitor whose
 * browser runs JavaScript, older iPads included. When this stylesheet loads in the
 * footer, the plugin prints the same rules inline ahead of the quiz (FIRST_PAINT_CSS in
 * acb-myth-quiz.php), and a test keeps the two copies the same.
 *
 * These rules come after every rule that can match the Start button. Start carries
 * __btn, and the base __btn rule sets display: block at the same specificity as these
 * rules, so only coming later lets them win. They are the only rules that set display on
 * __start, __list or __closing. A rule after them must never set display on a selector
 * whose last class is __btn, __btn--primary, __start, __list or __closing.
 */

/* Defaults: what a browser that does not know the scripting media feature gets. */
.acb-myth-quiz .acb-myth-quiz__start { display: none; }
.acb-myth-quiz .acb-myth-quiz__list { display: none; }

/* Scripting off, in a browser that can say so: the full readable list. */
@media (scripting: none) {
  .acb-myth-quiz .acb-myth-quiz__list { display: block; }
}

/* Scripting on: the quiz's own first screen and nothing else. */
@media (scripting: enabled) {
  .acb-myth-quiz .acb-myth-quiz__start { display: inline-block; }
  .acb-myth-quiz .acb-myth-quiz__closing { display: none; }
}

/* Older browsers, once the script has built the quiz. */
.acb-myth-quiz.acb-myth-quiz--mounted .acb-myth-quiz__start { display: inline-block; }
.acb-myth-quiz.acb-myth-quiz--mounted .acb-myth-quiz__closing { display: none; }

/* The script ran but could not build the quiz: the readable version instead. */
.acb-myth-quiz.acb-myth-quiz--failed .acb-myth-quiz__start { display: none; }
.acb-myth-quiz.acb-myth-quiz--failed .acb-myth-quiz__list,
.acb-myth-quiz.acb-myth-quiz--failed .acb-myth-quiz__closing { display: block; }

/* ---- The quiz the script builds -------------------------------------------------------- */

/*
 * Everything from here on comes after the first-paint rules, so none of it may set display on
 * __btn, __btn--primary, __start, __list or __closing (see the comment there).
 *
 * The script builds the quiz into __app, in the place of the server's intro, and the app holds
 * one screen at a time. Neither adds space of its own, so the intro does not move when the
 * script takes it over.
 */
.acb-myth-quiz .acb-myth-quiz__app,
.acb-myth-quiz .acb-myth-quiz__screen {
  margin: 0;
  padding: 0;
}

/* ---- Progress ---------------------------------------------------------------------------- */

/* "Question 3 of 15". It names the progress bar too. */
.acb-myth-quiz .acb-myth-quiz__progress-text {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--acb-muted);
}

/* A slim tint track with a blue fill. Nothing inside it can take focus, so it may clip the fill to its rounded ends. */
.acb-myth-quiz .acb-myth-quiz__progress-track {
  height: 8px;
  margin: 0 0 24px;
  overflow: hidden;
  background: var(--acb-tint);
  border-radius: 4px;
}

.acb-myth-quiz .acb-myth-quiz__progress-fill {
  height: 100%;
  background: var(--acb-blue);
}

/* ---- The statement --------------------------------------------------------------------- */

/* The heading each question moves focus to. scroll-margin-top clears the site's sticky header. */
.acb-myth-quiz .acb-myth-quiz__statement {
  margin: 0 0 24px;
  font-family: inherit;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--acb-navy);
  scroll-margin-top: 96px;
}

@media (min-width: 768px) {
  .acb-myth-quiz .acb-myth-quiz__statement {
    font-size: 30px;
  }
}

/* ---- True and False ---------------------------------------------------------------------- */

/* One column on a phone, two from 480px. minmax(0, 1fr) lets a long label wrap inside its button instead of widening the column. */
.acb-myth-quiz .acb-myth-quiz__answers {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 0 0 20px;
}

/*
 * Side by side, each answer keeps its own height. Stretched to match a neighbour that holds more
 * tags, a button would centre its label lower down, so after an answer the two labels would not
 * line up.
 */
@media (min-width: 480px) {
  .acb-myth-quiz .acb-myth-quiz__answers {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}

/* White with a navy border, the tint on hover, and the label on the left, as in the approved flow. */
.acb-myth-quiz .acb-myth-quiz__btn--answer {
  color: var(--acb-navy);
  background: var(--acb-surface);
  border-color: var(--acb-navy);
  text-align: left;
}

/*
 * Its colours, border, radius and shadow one class deeper, against an Elementor kit's buttons (see the primary
 * buttons). The hover tint below is deeper still, and the chosen tint, at the same depth, comes after this rule, so both
 * still win.
 */
.acb-myth-quiz .acb-myth-quiz__answers .acb-myth-quiz__btn--answer {
  color: var(--acb-navy);
  background: var(--acb-surface);
  border: 2px solid var(--acb-navy);
  border-radius: var(--acb-radius);
  box-shadow: none;
}

/*
 * The tint under a pointer that can hover. A touch screen leaves :hover on whatever was tapped last, so there an
 * answer the guard did not take would keep the tint and look chosen.
 */
@media (hover: hover) {
  .acb-myth-quiz .acb-myth-quiz__btn--answer:not([aria-disabled="true"]):hover {
    background: var(--acb-tint);
  }
}

/*
 * The chosen answer, once both are locked: the tint, with "Your answer" in its tag so it is not shown by colour alone.
 * Through __answers, like the answers' own colours above, so a kit's focus colour cannot replace it.
 */
.acb-myth-quiz .acb-myth-quiz__answers .acb-myth-quiz__btn--chosen {
  background: var(--acb-tint);
}

/* A locked answer is no longer something to press. */
.acb-myth-quiz .acb-myth-quiz__btn--answer[aria-disabled="true"] {
  cursor: default;
}

/* ---- Choose all that apply --------------------------------------------------------------- */

.acb-myth-quiz .acb-myth-quiz__choices {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 0 0 20px;
}

/*
 * Each row is a real label round a real checkbox, so a tap anywhere on it ticks the box. It is a
 * grid, not flex, because iOS 12 ignores a flex gap. minmax(0, 1fr), with min-width: 0 on the
 * text, lets a long word wrap instead of pushing the row wider than the screen. Its own font
 * family and no underline, because an Elementor kit sets type on every label at (0,1,1).
 */
.acb-myth-quiz .acb-myth-quiz__choice {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: 14px;
  align-items: start;
  min-height: 56px;
  margin: 0;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  text-decoration: none;
  color: var(--acb-navy);
  background: var(--acb-surface);
  border: 2px solid var(--acb-navy);
  border-radius: var(--acb-radius);
  cursor: pointer;
  transition: none;
}

/* A ticked row has the tint. The script marks it --checked, because older iPads have no :has(). */
.acb-myth-quiz .acb-myth-quiz__choice--checked {
  background: var(--acb-tint);
}

/*
 * The tint under a pointer that can hover, on a row that can still be ticked. A touch screen leaves :hover on the
 * row tapped last, where the tint would make an unticked row look ticked.
 */
@media (hover: hover) {
  .acb-myth-quiz .acb-myth-quiz__choices:not([aria-disabled="true"]) .acb-myth-quiz__choice:hover {
    background: var(--acb-tint);
  }
}

/* Once the answer is checked the script marks the group aria-disabled, and its rows are no longer something to press. */
.acb-myth-quiz .acb-myth-quiz__choices[aria-disabled="true"] .acb-myth-quiz__choice {
  cursor: default;
}

.acb-myth-quiz .acb-myth-quiz__choice-text {
  min-width: 0;
  overflow-wrap: break-word;
}

/*
 * The box. The theme's input[type="checkbox"]:focus:checked is (0,3,1) and would fill a ticked box
 * blue, and an Elementor kit styles every field at (0,3,1), and every focused field at (0,4,1)
 * (Site Settings > Form Fields: type, colours, box shadow, border, radius, padding and a
 * transition). So the box's rules name its elements and its type, at (0,4,2), which holds in every
 * state, focus included; its states and its ring go one step deeper. A ticked box shows a tick
 * drawn with borders, so the state is a shape and not only a colour.
 */
.acb-myth-quiz label.acb-myth-quiz__choice input.acb-myth-quiz__check[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-transform: none;
  letter-spacing: normal;
  word-spacing: normal;
  background: var(--acb-surface);
  border: 2px solid var(--acb-navy);
  border-radius: 4px;
  box-shadow: none;
  cursor: pointer;
  transition: none;
}

.acb-myth-quiz label.acb-myth-quiz__choice input.acb-myth-quiz__check[type="checkbox"]:checked {
  background: var(--acb-surface);
  border-color: var(--acb-navy);
}

.acb-myth-quiz label.acb-myth-quiz__choice input.acb-myth-quiz__check[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 8px;
  width: 7px;
  height: 13px;
  border: solid var(--acb-navy);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

/*
 * A locked box keeps its colours at full strength, so the visitor's own ticks stay as easy to see as before. iOS
 * Safari's own stylesheet fades a disabled checkbox to opacity 0.4, and a theme may fade one too.
 */
.acb-myth-quiz label.acb-myth-quiz__choice input.acb-myth-quiz__check[type="checkbox"]:disabled {
  opacity: 1;
  background: var(--acb-surface);
  border-color: var(--acb-navy);
  cursor: default;
}

/* ---- Marks and tags ------------------------------------------------------------------------ */

/*
 * "Your answer" and "Correct answer", each on its own line under the label of the answer it marks.
 * The space before each tag is a real one in the text, so the accessible name keeps it whatever
 * display this rule gives the tag.
 */
.acb-myth-quiz .acb-myth-quiz__tag {
  display: block;
  margin: 6px 0 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

/* A yellow disc with a navy tick drawn by two of its borders: 32px beside "That's right.", 22px in a tag. */
.acb-myth-quiz .acb-myth-quiz__mark {
  display: inline-block;
  position: relative;
  width: 32px;
  height: 32px;
  vertical-align: middle;
  background: var(--acb-yellow);
  border-radius: 50%;
}

.acb-myth-quiz .acb-myth-quiz__mark::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 12px;
  width: 7px;
  height: 13px;
  border: solid var(--acb-navy);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.acb-myth-quiz .acb-myth-quiz__mark--small {
  width: 22px;
  height: 22px;
  margin-right: 4px;
}

.acb-myth-quiz .acb-myth-quiz__mark--small::after {
  top: 4px;
  left: 8px;
  width: 6px;
  height: 11px;
  border-width: 0 2px 2px 0;
}

/*
 * The info icon beside "Not quite.", sized here and not by its width and height attributes, which
 * any stylesheet beats: a theme's svg { width: 100% } would stretch it.
 */
.acb-myth-quiz .acb-myth-quiz__info {
  display: block;
  width: 32px;
  height: 32px;
  color: var(--acb-navy);
}

/* ---- Feedback -------------------------------------------------------------------------------- */

/*
 * Closed, the panel has no padding or fill. Its live region is empty, and its actions row is empty or, on the multi
 * question, holds Check my answer and its hint.
 */
.acb-myth-quiz .acb-myth-quiz__feedback {
  margin: 0;
  padding: 0;
}

/* Open: a tint panel. Its reveal is with the motion rules above. */
.acb-myth-quiz .acb-myth-quiz__feedback--open {
  padding: 16px 20px 20px;
  background: var(--acb-tint);
  border-radius: var(--acb-radius);
}

/*
 * A panel the script drew on resume, from the progress saved in the tab, is simply there: nothing moves on load. This
 * rule comes after the reveal, at the same specificity, so it wins.
 */
.acb-myth-quiz .acb-myth-quiz__feedback--restored {
  animation: none;
}

/* The live region. It is displayed at all times, empty or not (see Empty parts below). */
.acb-myth-quiz .acb-myth-quiz__feedback-live {
  margin: 0;
}

/* "That's right." or "Not quite." beside its icon. A grid, because iOS 12 ignores a flex gap. */
.acb-myth-quiz .acb-myth-quiz__feedback-label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--acb-navy);
}

/* On the multi question, "You missed:" and the correct options that were not ticked, between the label and the explanation. */
.acb-myth-quiz .acb-myth-quiz__missed-label {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--acb-navy);
}

.acb-myth-quiz .acb-myth-quiz__missed {
  margin: 0 0 12px;
  padding: 0 0 0 22px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--acb-navy);
  list-style: disc;
}

/* Bulleted whatever the theme gives lists and their items. */
.acb-myth-quiz .acb-myth-quiz__missed li {
  margin: 0;
  padding: 0;
  list-style: disc;
}

.acb-myth-quiz .acb-myth-quiz__missed li + li {
  margin-top: 4px;
}

.acb-myth-quiz .acb-myth-quiz__feedback-body {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--acb-navy);
}

/* The read-more line. Its link is 48px tall (see Links). */
.acb-myth-quiz .acb-myth-quiz__feedback-link {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--acb-navy);
}

/*
 * The row that holds the action button. On the multi question it holds Check my answer and its hint while the panel
 * is closed, under the rows, and the same button as Next question or See my score once the panel is open.
 */
.acb-myth-quiz .acb-myth-quiz__actions {
  margin: 0;
}

/*
 * Check my answer before a box is ticked (design 4.5, Owen's option B): full navy text on the tint with a dashed navy
 * border, so the state is not shown by colour alone, and the hint under it. It is aria-disabled, not disabled, so it
 * stays in the Tab order. Through __actions, a class deeper than the primary buttons' kit-proof colours, so it wins
 * whatever the order.
 */
.acb-myth-quiz .acb-myth-quiz__actions .acb-myth-quiz__action[aria-disabled="true"] {
  color: var(--acb-navy);
  background: var(--acb-tint);
  border: 2px dashed var(--acb-navy);
  cursor: not-allowed;
}

/* "Tick at least one box first." */
.acb-myth-quiz .acb-myth-quiz__hint {
  margin: 10px 0 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--acb-navy);
}

/* ---- Empty parts --------------------------------------------------------------------------------- */

/*
 * Some divs are empty by design: the progress bar's fill always, and the live region and the actions row between
 * questions. Some themes hide every empty div, at up to (0,2,1) (.entry-content div:empty, .elementor div:empty), so
 * these are displayed one class deeper. The live region above all must stay displayed, empty or not, because a live
 * region that is hidden does not speak.
 */
.acb-myth-quiz .acb-myth-quiz__progress-track .acb-myth-quiz__progress-fill,
.acb-myth-quiz .acb-myth-quiz__feedback .acb-myth-quiz__feedback-live,
.acb-myth-quiz .acb-myth-quiz__feedback .acb-myth-quiz__actions {
  display: block;
}

/* ---- The end screen ------------------------------------------------------------------------------ */

/*
 * The one bold moment (design 4.5, item 4): a navy panel holding the score line, the result's heading and message, the
 * yellow booking button and the phone line. Try the quiz again sits under it on the white page. Astra colours every h2
 * #334155 at weight 600 directly, and Elementor takes the underline off links, so no part of the panel relies on what
 * it would inherit: each sets its own colour, weight and margin. The focus ring needs nothing more here, because its
 * yellow carries it on navy, with the white gap inside it.
 */
.acb-myth-quiz .acb-myth-quiz__end {
  margin: 0 0 16px;
  padding: 24px 20px;
  color: var(--acb-surface);
  background: var(--acb-navy);
  border-radius: var(--acb-radius);
}

/* "You got 12 out of 15." See my score moves focus here, so scroll-margin-top clears the site's sticky header. */
.acb-myth-quiz .acb-myth-quiz__score {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--acb-surface);
  scroll-margin-top: 96px;
}

.acb-myth-quiz .acb-myth-quiz__end-heading {
  margin: 0 0 12px;
  font-family: inherit;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--acb-surface);
}

.acb-myth-quiz .acb-myth-quiz__end-message {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--acb-surface);
}

/* The phone line under the booking button, white on the panel, where the closing block's is navy on white. */
.acb-myth-quiz .acb-myth-quiz__end .acb-myth-quiz__phone {
  margin: 16px 0 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--acb-surface);
}

/*
 * The number keeps its 48px height, its one line and its cancelled transition from the rule under Links. Its colour and
 * type are set here at (0,3,0), where an Elementor kit's link rules, at rest and under the mouse, cannot reach them (see
 * the navy links' rule under Links).
 */
.acb-myth-quiz .acb-myth-quiz__end .acb-myth-quiz__phone-link {
  font: inherit;
  font-weight: 700;
  color: var(--acb-surface);
  text-decoration: underline;
  text-transform: none;
  letter-spacing: normal;
  word-spacing: normal;
}

/* ---- Further reading ------------------------------------------------------------------------------ */

/*
 * Under the navy panel and above Try the quiz again (design of 24 November 2026): a heading, the links of the
 * questions the visitor missed, then the fold, a button that opens the list of every other link. Nothing here is
 * yellow, so the booking button stays the strongest thing on the screen. The links are the read-more links' own
 * (see Links), separated by lines in the tint, as the readable version's items are. Astra colours headings directly
 * and an Elementor kit sets their type, so the heading sets every property it relies on, as the panel's heading does.
 */
.acb-myth-quiz .acb-myth-quiz__reading {
  margin: 24px 0 8px;
}

.acb-myth-quiz .acb-myth-quiz__reading-heading {
  margin: 0 0 6px;
  font-family: inherit;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--acb-navy);
}

.acb-myth-quiz .acb-myth-quiz__reading-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.acb-myth-quiz .acb-myth-quiz__reading-list--rest {
  margin-top: 8px;
}

/* The link inside takes this type through font: inherit (see Links). */
.acb-myth-quiz .acb-myth-quiz__reading-item {
  margin: 0;
  padding: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--acb-navy);
  border-top: 1px solid var(--acb-tint);
}

.acb-myth-quiz .acb-myth-quiz__reading-item:last-child {
  border-bottom: 1px solid var(--acb-tint);
}

/*
 * The fold: the full width, its words on the left and the arrow on the right, navy on white with the navy border.
 * A margin keeps the arrow off the words, because older iPads have no gap in a flex row.
 */
.acb-myth-quiz .acb-myth-quiz__btn--fold {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0 0;
  padding: 12px 16px;
  font-size: 18px;
  line-height: 1.4;
  text-align: left;
}

/* Its colours, border, radius and shadow one class deeper, against an Elementor kit's buttons (see the primary buttons). */
.acb-myth-quiz .acb-myth-quiz__reading .acb-myth-quiz__btn--fold {
  color: var(--acb-navy);
  background: var(--acb-surface);
  border: 2px solid var(--acb-navy);
  border-radius: var(--acb-radius);
  box-shadow: none;
}

/* The tint while the list is open, and under a pointer that can hover (see the answers' tint). */
.acb-myth-quiz .acb-myth-quiz__reading .acb-myth-quiz__btn--fold[aria-expanded="true"] {
  background: var(--acb-tint);
}

@media (hover: hover) {
  .acb-myth-quiz .acb-myth-quiz__reading .acb-myth-quiz__btn--fold:hover {
    background: var(--acb-tint);
  }
}

/* The arrow points down while the list is closed, and is turned over, with no movement, while it is open. */
.acb-myth-quiz .acb-myth-quiz__fold-icon {
  display: block;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 0 0 0 12px;
}

.acb-myth-quiz .acb-myth-quiz__btn--fold[aria-expanded="true"] .acb-myth-quiz__fold-icon {
  transform: rotate(180deg);
}
