/* Selected state for the sitting chips. The shared stylesheet styles only
     .is-active, and the script drives aria-pressed, so both the Exam Pass row
     and the new Live rows get their selected state from here. */
  .sub-v2-sitting-btn[aria-pressed="true"],
  .alt-chip[aria-pressed="true"] {
    border-color: #1d1724 !important;
    background: #1d1724 !important;
    color: #fffdf9 !important;
  }
  /* On the dark card the chip takes the SUBJECT accent. These three values were
     hardcoded to chemistry's lime, so every other subject showed a yellow chip
     on a pink/green/blue page. var(--chem) is set per subject in the page head;
     the fallback is chemistry, which is what the tokens were copied from. */
  .sub-v2-card--dark .sub-v2-sitting-btn[aria-pressed="true"] {
    border-color: var(--chem, #c3d809) !important;
    background: var(--chem, #c3d809) !important;
    color: var(--ink, #1a141f) !important;
  }

  /* "A more exact answer" panel, in the method section.
     Not pricing, but it belongs with the other page-level CSS corrections so
     one file still serves all nine subjects.

     That panel carries BOTH the light and dark good-answer classes. Webflow's
     own sheet resolves the clash by source order (dark wins, faint tint over
     the dark section), but each subject head re-states the LIGHT rule with a
     `body ` prefix, which outranks it and paints an opaque pale panel — while
     the text keeps .sub-alt-v2-compare-item-dark-p's translucent white. Pale on
     pale: the model answer was effectively invisible on eight of nine subjects.

     Settled deliberately on the light treatment everywhere: the pale card reads
     as a highlight against the dark one beside it. Two-class selectors (0,2,0)
     outrank both the head's `body .class` (0,1,1) and Webflow's (0,1,0). */
  .sub-v2-compare-item--dark.sub-alt-v2-compare-item-v2-good {
    background: var(--chem-pale, #f7fadf);
  }
  .sub-alt-v2-compare-item-v2-good .sub-alt-v2-compare-item-dark-p {
    color: #1a141f;
  }
  .sub-alt-v2-compare-item-v2-good .sub-alt-v2-compare-item-dark-v2-good-small {
    color: var(--chem-dark, #2a2e05);
  }

  /* Live card controls: the four groups sit side by side, each with its label
     above its chips, and wrap onto new lines as the card narrows. */
  .alt-live-controls {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 18px 30px;
    margin: 0 0 4px;
    padding: 18px 0 20px;
    border-top: 1px solid #e0e1e3;
    border-bottom: 1px solid #e0e1e3;
  }
  .alt-live-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .alt-live-row__label {
    flex: none;
    color: #5a5465;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .12em;
    line-height: 1.3;
    text-transform: uppercase;
  }
  .alt-live-row__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .alt-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 14px;
    border: 1px solid #d7d3cc;
    background: #ffffff;
    color: #1d1724;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .14s ease, background .14s ease, color .14s ease;
  }
  .alt-chip:hover { border-color: #1d1724; }
  .alt-chip:focus-visible {
    outline: 3px solid #006da3;
    outline-offset: 2px;
  }
  .alt-live-row[hidden] { display: none !important; }

  @media (max-width: 767px) {
    .alt-live-controls { gap: 14px 18px; padding: 16px 0 18px; }
    .alt-live-row { gap: 6px; }
    /* Chips get a 38px target on touch. */
    .alt-chip { min-height: 38px; font-size: 12px; padding: 8px 12px; }
  }
