/*
 * quiz.php desktop and non-touch tablet layout (Phase A of docs/audit/quiz-desktop-design-audit.md).
 * Loaded right after css/quiz-mobile.css. CSS only: it restyles markup that already exists at every width
 * (.oc-m-progress, #ocMobileBar, .oc-m-label, .oc-m-start-title, .oc-selected, aria-pressed).
 *
 * Scope: screen only (print stays with css/dashboard-print.css), and the exact complement of the phone
 * query used by css/quiz-mobile.css and ocPhoneMQ in quiz.php:
 *   phone = (max-width:767px), (pointer:coarse) and (max-height:500px),
 *           (pointer:coarse) and (hover:none) and (max-width:1366px)
 *   so desktop = at least 768px wide and either a fine/no pointer, or a coarse pointer that is at least
 *   501px tall and either hovers or is wider than 1366px (the four queries below).
 * Every selector is also prefixed with body:not(.oc-phone), so the two layouts can never both apply.
 *
 * Brand: EOS Navy #0B3E60, EOS Orange #FF7900 (always with white text), Light Blue #0D7BB4, navy tints.
 * Muted text is navy-80 #3C6580 (6.2:1 on white); navy-60 is used only for 3:1 non-text borders.
 * Component bar colours stay with css/oc-brand-override.css.
 */
@media screen and (min-width: 768px) and (pointer: fine),
       screen and (min-width: 768px) and (pointer: none),
       screen and (min-width: 768px) and (min-height: 501px) and (pointer: coarse) and (hover: hover),
       screen and (min-width: 1367px) and (min-height: 501px) and (pointer: coarse) {

  :root {
    --ocd-navy: #0B3E60;
    --ocd-orange: #FF7900;
    --ocd-burnt: #F04E23;
    --ocd-blue: #0D7BB4;
    --ocd-navy-80: #3C6580;
    --ocd-navy-60: #6D8BA0;
    --ocd-navy-20: #CED8DF;
    --ocd-navy-10: #E7ECEF;
    --ocd-navy-5: #F3F6F8;
    --ocd-grad-bar: linear-gradient(90deg, #F04E23 0%, #FF7900 50%, #FFC900 100%);
    --ocd-radius: 16px;
    --ocd-gutter: 24px;
    --ocd-shadow: 0 4px 16px rgba(11, 62, 96, 0.08);
    --ocd-btn-shadow: 0 6px 18px rgba(255, 121, 0, 0.25);
  }

  /* ================= Shell ================= */
  /* AdminLTE makes <body> the scroll container (html/body height:100%); let the viewport scroll, and
     make the page one column so the footer sits at the bottom of short screens. */
  html {
    height: auto !important;
  }
  body:not(.oc-phone) {
    height: auto !important;
    min-height: 100vh;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    display: flex !important;
    flex-direction: column;
    background: var(--ocd-navy-5) !important;
    color: var(--ocd-navy) !important;
  }
  /* copyright notice and links at the very bottom, banner on top; its extra space goes above the footer */
  body:not(.oc-phone) > .footer {
    margin-top: var(--oc-consent-space, 0px) !important;
  }
  body:not(.oc-phone) > .bg-info,
  body:not(.oc-phone) > .footer {
    flex: 0 0 auto;
    width: 100%;
  }
  body:not(.oc-phone) > .bg-info:not([style*="none"]) {
    flex-grow: 1;
  }
  body:not(.oc-phone) .bg-info,
  body:not(.oc-phone) .container-fluid.bg-info {
    background: var(--ocd-navy-5) !important;
    background-image: none !important;
    min-height: 0 !important;
    padding-left: var(--ocd-gutter) !important;
    padding-right: var(--ocd-gutter) !important;
    padding-bottom: 40px;
  }
  /* Montserrat only (oc-brand-override.css sets Roboto Condensed on body copy) */
  body:not(.oc-phone) p,
  body:not(.oc-phone) td,
  body:not(.oc-phone) label,
  body:not(.oc-phone) .thequestion,
  body:not(.oc-phone) .thequestion td,
  body:not(.oc-phone) .welcome-desc,
  body:not(.oc-phone) .next-steps,
  body:not(.oc-phone) .presc-results-container,
  body:not(.oc-phone) .presc-remind,
  body:not(.oc-phone) .presc-congrats-sub,
  body:not(.oc-phone) .roadmap-desc {
    font-family: 'Montserrat', sans-serif !important;
  }

  /* Header: full-bleed navy strip, 72px, logo 200px, 3px orange-range rule */
  body:not(.oc-phone) .header_logo {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 72px !important;
    margin: 0 calc(-1 * var(--ocd-gutter)) !important;
    padding: 0 var(--ocd-gutter) !important;
    background: var(--ocd-navy) !important;
  }
  body:not(.oc-phone) .header_logo::after {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    margin: 0 !important;
    background: var(--ocd-grad-bar);
  }
  body:not(.oc-phone) .header_logo a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  body:not(.oc-phone) .header_logo a:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
  }
  body:not(.oc-phone) .header_logo_image {
    width: 200px !important;
    max-width: 200px !important;
    height: auto;
    margin: 0 !important;
    padding: 0 !important;
    filter: none;
  }

  /* Footer: one quiet line on the page background instead of a navy band */
  body:not(.oc-phone) .footer {
    background: transparent !important;
    color: var(--ocd-navy-80) !important;
    font-size: 13px !important;
    line-height: 1.5;
    padding: 16px var(--ocd-gutter) 24px !important;
    border-top: 1px solid var(--ocd-navy-10) !important;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0 12px;
    text-align: center;
  }
  body:not(.oc-phone) .footer .oc-legal {
    margin: 0;
  }
  body:not(.oc-phone) .footer::before {
    display: none !important;
  }
  body:not(.oc-phone) .footer .oc-legal a,
  body:not(.oc-phone) .footer .oc-legal button {
    color: var(--ocd-navy-80);
  }
  body:not(.oc-phone) .footer .oc-legal a:hover,
  body:not(.oc-phone) .footer .oc-legal button:hover {
    color: var(--ocd-navy);
  }
  body:not(.oc-phone) .footer .oc-legal a:focus,
  body:not(.oc-phone) .footer .oc-legal button:focus {
    outline-color: var(--ocd-blue);
  }

  /* No pulsing CTAs; no entrance animation on the cards */
  body:not(.oc-phone) .quiz-start,
  body:not(.oc-phone) .quiz-finish,
  body:not(.oc-phone) .quiz-finish-final,
  body:not(.oc-phone) .view-recommendations-button,
  body:not(.oc-phone) .modal-dialog,
  body:not(.oc-phone) .welcome-container {
    animation: none !important;
  }

  /* ================= Question card ================= */
  body:not(.oc-phone) #do_quiz .modal-dialog {
    width: auto !important;
    max-width: 720px;
    margin: 48px auto 0 !important;
  }
  body:not(.oc-phone) #do_quiz .modal-content {
    border: 1px solid var(--ocd-navy-20) !important;
    border-bottom: 0 !important;
    border-radius: var(--ocd-radius) var(--ocd-radius) 0 0 !important;
    box-shadow: var(--ocd-shadow) !important;
  }
  /* the orange "N/20" banner, the legacy navy footer with circle buttons, and the spinner column */
  body:not(.oc-phone) #do_quiz .modal-header,
  body:not(.oc-phone) #do_quiz .modal-footer,
  body:not(.oc-phone) #do_quiz .modal-body > .col-xs-3 {
    display: none !important;
  }
  body:not(.oc-phone) #do_quiz .modal-body {
    padding: 36px 40px 32px !important;
    min-height: 0 !important;
  }

  /* Progress: "Question N of 20" + 6px orange bar (phone markup, shown on desktop) */
  body:not(.oc-phone) #do_quiz .oc-m-progress {
    display: block;
    margin: 0 0 28px;
  }
  body:not(.oc-phone) .oc-m-progress-label {
    margin: 0 0 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ocd-navy-80);
  }
  body:not(.oc-phone) .oc-m-progress-track {
    height: 6px;
    border-radius: 3px;
    background: var(--ocd-navy-10);
    overflow: hidden;
  }
  body:not(.oc-phone) .oc-m-progress-fill {
    height: 100%;
    border-radius: 3px;
    background: var(--ocd-orange);
    transition: width 0.3s ease;
  }

  body:not(.oc-phone) #do_quiz .question {
    min-height: 102px; /* three lines: the card does not jump between questions */
    margin: 0 0 32px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 24px !important;
    line-height: 34px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-align: left !important;
    color: var(--ocd-navy) !important;
    text-wrap: pretty;
  }

  /* Five 72px answer tiles; Weak / Strong captions inside tiles 1 and 5 */
  body:not(.oc-phone) .answer-checks-container {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
  }
  body:not(.oc-phone) #do_quiz .answer-desc,
  body:not(.oc-phone) #do_quiz .answer-numbers {
    display: none !important;
  }
  body:not(.oc-phone) .answer-checks {
    display: flex;
    gap: 16px;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    background: none !important;
  }
  body:not(.oc-phone) .answer-checks .ans {
    position: relative !important;
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0;
    height: 72px !important;
    margin: 0 !important;
    border: 2px solid var(--ocd-navy-60); /* 3.6:1 non-text contrast on white */
    border-radius: var(--ocd-radius) !important;
    background-color: #fff !important; /* the click handler writes an inline transparent / #FF7900 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    color: var(--ocd-navy);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  }
  body:not(.oc-phone) .answer-checks .ans::before {
    content: attr(data-n);
  }
  /* the legacy oversized hit area becomes the caption slot (no overlap with neighbours) */
  body:not(.oc-phone) .answer-checks .ans::after {
    content: none;
    position: static !important;
    inset: auto !important;
    width: auto !important;
    height: auto !important;
  }
  body:not(.oc-phone) .answer-checks .ans1::after,
  body:not(.oc-phone) .answer-checks .ans5::after {
    font-size: 11px;
    line-height: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ocd-navy-80);
  }
  body:not(.oc-phone) .answer-checks .ans1::after {
    content: "Weak";
  }
  body:not(.oc-phone) .answer-checks .ans5::after {
    content: "Strong";
  }
  body:not(.oc-phone) .answer-checks .ans:hover {
    border-color: var(--ocd-navy);
    background-color: var(--ocd-navy-5) !important;
  }
  body:not(.oc-phone) .answer-checks .ans:active {
    transform: scale(0.97);
  }
  body:not(.oc-phone) .answer-checks .ans.oc-selected,
  body:not(.oc-phone) .answer-checks .ans.oc-selected:hover {
    background-color: var(--ocd-orange) !important;
    border-color: var(--ocd-orange);
    color: #fff;
  }
  body:not(.oc-phone) .answer-checks .ans.oc-selected::after {
    color: #fff;
  }
  body:not(.oc-phone) .oc-save-status {
    margin-top: 20px;
  }

  /* One action row at the card foot: the phone bar (#ocMobileBar), static instead of fixed */
  body:not(.oc-phone) #do_quiz .oc-m-bar {
    display: flex;
    position: static;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 720px;
    margin: 0 auto;
    padding: 16px 40px;
    background: #fff;
    border: 1px solid var(--ocd-navy-20);
    border-top-color: var(--ocd-navy-10);
    border-radius: 0 0 var(--ocd-radius) var(--ocd-radius);
    box-shadow: 0 10px 16px -8px rgba(11, 62, 96, 0.10);
  }
  body:not(.oc-phone) .oc-m-back {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 12px 0 4px;
    margin-left: -4px;
    background: transparent;
    border: 0;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ocd-navy);
    cursor: pointer;
  }
  body:not(.oc-phone) .oc-m-back::before {
    content: '\2039';
    font-size: 22px;
    line-height: 0;
    margin-right: 8px;
    position: relative;
    top: -1px;
  }
  body:not(.oc-phone) .oc-m-back:hover {
    background: var(--ocd-navy-5);
  }
  body:not(.oc-phone) .oc-m-primary {
    -webkit-appearance: none;
    appearance: none;
    min-width: 200px;
    min-height: 52px;
    padding: 0 32px;
    border: 0;
    border-radius: 26px;
    background: var(--ocd-orange);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: var(--ocd-btn-shadow);
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
  }
  body:not(.oc-phone) .oc-m-primary:hover {
    background: var(--ocd-burnt);
  }
  body:not(.oc-phone) .oc-m-primary:disabled,
  body:not(.oc-phone) .oc-m-primary[aria-disabled="true"] {
    background: var(--ocd-navy-10);
    color: var(--ocd-navy-80);
    box-shadow: none;
    cursor: default;
  }
  body:not(.oc-phone) .oc-m-back:focus-visible,
  body:not(.oc-phone) .oc-m-primary:focus-visible {
    outline: 3px solid var(--ocd-blue);
    outline-offset: 3px;
  }

  /* ================= Start, finish and lead-form cards ================= */
  body:not(.oc-phone) #start_quiz .row,
  body:not(.oc-phone) #finish_quiz .row,
  body:not(.oc-phone) #finish_quiz_for_anonymous > .row {
    margin: 0 !important;
  }
  body:not(.oc-phone) #start_quiz .col-sm-12,
  body:not(.oc-phone) #finish_quiz .col-sm-12,
  body:not(.oc-phone) #finish_quiz_for_anonymous > .row > .col-sm-12 {
    float: none;
    padding: 0 !important;
  }
  body:not(.oc-phone) .welcome-container {
    max-width: 720px !important;
    margin: 48px auto 0 !important;
    padding: 40px !important;
    background: #fff;
    border: 1px solid var(--ocd-navy-20);
    border-radius: var(--ocd-radius);
    box-shadow: var(--ocd-shadow);
  }
  body:not(.oc-phone) .welcome-container::after {
    content: "";
    display: table;
    clear: both;
  }
  body:not(.oc-phone) #start_quiz .oc-m-start-title {
    display: block !important; /* inline display:none; shown as the card title */
  }
  body:not(.oc-phone) .welcome-title {
    margin: 0 0 12px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 26px !important;
    line-height: 32px !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em !important;
    text-transform: none !important;
    color: var(--ocd-navy) !important; /* orange headline was 2.4:1 */
  }
  body:not(.oc-phone) .welcome-desc {
    margin: 0 0 8px !important;
    font-size: 15px !important;
    line-height: 24px !important;
    color: var(--ocd-navy) !important;
  }
  body:not(.oc-phone) .quiz-start,
  body:not(.oc-phone) .quiz-finish-final {
    float: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    width: auto;
    margin: 24px 0 0 !important;
    padding: 0 32px !important;
    border-radius: 26px !important;
    background: var(--ocd-orange) !important;
    color: #fff !important;
    font-size: 15px !important;
    letter-spacing: 0.06em !important;
    box-shadow: var(--ocd-btn-shadow) !important;
    transform: none !important;
    filter: none !important;
  }
  /* quiz-finish-final carries an inline display:block !important */
  body:not(.oc-phone) .quiz-finish-final {
    width: max-content;
    max-width: 100%;
    line-height: 52px;
    text-align: center;
  }
  body:not(.oc-phone) .quiz-start:hover,
  body:not(.oc-phone) .quiz-finish-final:hover {
    background: var(--ocd-burnt) !important;
  }
  body:not(.oc-phone) .quiz-start:focus-visible,
  body:not(.oc-phone) .quiz-finish-final:focus-visible,
  body:not(.oc-phone) .send-anonymous .btn-primary:focus-visible,
  body:not(.oc-phone) .view-recommendations-button:focus-visible,
  body:not(.oc-phone) .print-btn:focus-visible,
  body:not(.oc-phone) .cta-button:focus-visible,
  body:not(.oc-phone) .cta-button2:focus-visible {
    outline: 3px solid var(--ocd-blue) !important;
    outline-offset: 3px;
  }

  /* ---- Lead form: visible labels, First/Last name side by side ---- */
  body:not(.oc-phone) .send-anonymous {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
    margin: 20px 0 0 !important;
  }
  body:not(.oc-phone) .send-anonymous > .form-group {
    grid-column: 1 / -1;
    margin: 0 0 16px;
  }
  body:not(.oc-phone) .send-anonymous > .form-group:has(#FName),
  body:not(.oc-phone) .send-anonymous > .form-group:has(#LName) {
    grid-column: auto;
  }
  body:not(.oc-phone) .send-anonymous > .form-group:last-child {
    margin-bottom: 0;
  }
  /* the card's intro line already asks for the details; labels sit above each field */
  body:not(.oc-phone) .send-anonymous .oc-m-hide {
    display: none;
  }
  body:not(.oc-phone) .send-anonymous .input-group {
    display: block;
    float: none;
    width: 100% !important;
    padding: 0 !important;
  }
  body:not(.oc-phone) .oc-m-label,
  body:not(.oc-phone) .send-anonymous .input-group > label[style] {
    display: block;
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600 !important;
    color: var(--ocd-navy) !important;
  }
  body:not(.oc-phone) .send-anonymous .input-group > label[for="copycheck"] {
    font-weight: 500 !important;
    margin-bottom: 0;
  }
  body:not(.oc-phone) .send-anonymous .form-control,
  body:not(.oc-phone) .send-anonymous select.form-control {
    display: block;
    float: none;
    width: 100%;
    max-width: 100%;
    height: 48px !important;
    padding: 0 14px !important;
    border: 1.5px solid var(--ocd-navy-60) !important; /* 3.6:1 field boundary */
    border-radius: 10px !important;
    font-size: 16px !important;
    line-height: 45px;
    color: var(--ocd-navy) !important;
  }
  body:not(.oc-phone) .send-anonymous .form-control:focus {
    border-color: var(--ocd-blue) !important;
    box-shadow: 0 0 0 3px rgba(13, 123, 180, 0.25) !important;
    outline: none;
  }
  body:not(.oc-phone) .send-anonymous .form-control::placeholder {
    color: var(--ocd-navy-80) !important;
  }
  body:not(.oc-phone) .send-anonymous #FName::placeholder,
  body:not(.oc-phone) .send-anonymous #LName::placeholder,
  body:not(.oc-phone) .send-anonymous #email::placeholder {
    color: transparent !important;
  }
  /* Subscribe Yes / No: 44px radio pills */
  body:not(.oc-phone) .send-anonymous .form-group:has(.oc-radio-group) .input-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
  }
  body:not(.oc-phone) .send-anonymous #subBlogLabel {
    display: inline;
    margin: 0 !important;
  }
  body:not(.oc-phone) .send-anonymous .oc-radio-group {
    display: inline-flex;
    gap: 8px;
  }
  body:not(.oc-phone) .send-anonymous .radio-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin: 0 !important;
    padding: 0 18px 0 14px;
    border: 1.5px solid var(--ocd-navy-60);
    border-radius: 22px;
    background: #fff;
    font-size: 15px !important;
    font-weight: 600;
    color: var(--ocd-navy) !important;
    cursor: pointer;
  }
  body:not(.oc-phone) .send-anonymous .radio-inline:has(input:checked) {
    border-color: var(--ocd-navy);
    background: var(--ocd-navy-5);
  }
  body:not(.oc-phone) .send-anonymous .radio-inline:has(input:focus-visible) {
    outline: 3px solid var(--ocd-blue);
    outline-offset: 2px;
  }
  body:not(.oc-phone) .send-anonymous input[type="radio"],
  body:not(.oc-phone) .send-anonymous input[type="checkbox"] {
    position: static;
    width: 20px;
    height: 20px;
    margin: 0 !important;
    accent-color: var(--ocd-orange);
  }
  /* "share with my EOS Implementer": 44px checkbox box + email field in one row */
  body:not(.oc-phone) .send-anonymous .checkbox-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 0;
    margin: 0;
  }
  body:not(.oc-phone) .send-anonymous .oc-check-hit {
    margin: 0 0 0 -12px;
  }
  body:not(.oc-phone) .send-anonymous .checkbox-inline .form-control {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }
  body:not(.oc-phone) .send-anonymous .oc-privacy-note {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 20px;
    color: var(--ocd-navy-80) !important;
  }
  body:not(.oc-phone) .send-anonymous .btn-primary {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 0 24px !important;
    border-radius: 26px !important;
    background: var(--ocd-orange) !important;
    color: #fff !important;
    font-size: 15px !important;
    letter-spacing: 0.06em;
    box-shadow: var(--ocd-btn-shadow) !important;
    transform: none !important;
    filter: none !important;
  }
  body:not(.oc-phone) .send-anonymous .btn-primary:hover {
    background: var(--ocd-burnt) !important;
  }

  /* ================= Results ================= */
  /* Results read top to bottom as: page head, score + wheel, roadmap, CTA, the 20 answers.
     The modal wrappers become display:contents so their children can be ordered in one column
     (CSS only; the DOM order and print layout are unchanged). */
  body:not(.oc-phone) #quiz_results:not([style*="none"]) {
    display: flex !important;
    flex-direction: column;
  }
  body:not(.oc-phone) #quiz_results .modal-dialog,
  body:not(.oc-phone) #quiz_results .modal-content,
  body:not(.oc-phone) #quiz_results .modal-body,
  body:not(.oc-phone) #quiz_results .mainrowcontainer {
    display: contents !important;
  }
  body:not(.oc-phone) #quiz_results > .header_logo {
    order: 0;
    flex: 0 0 auto;
  }
  body:not(.oc-phone) #quiz_results .modal-header,
  body:not(.oc-phone) #quiz_results .mainrowcontainer > .pagebreak,
  body:not(.oc-phone) #quiz_results .modal-dialog > .row,
  body:not(.oc-phone) #quiz_results > .row,
  body:not(.oc-phone) #quiz_results #ocAnswersCol {
    align-self: center;
    width: 100% !important;
    max-width: 1120px;
    float: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  body:not(.oc-phone) #quiz_results .modal-header { order: 1; }
  body:not(.oc-phone) #quiz_results .mainrowcontainer > .pagebreak { order: 2; }
  /* the roadmap and CTA rows are parsed as children of .modal-dialog (or of #quiz_results) */
  body:not(.oc-phone) #quiz_results .print-roadmap { order: 3; }
  body:not(.oc-phone) #quiz_results .modal-dialog > .row:not(.print-roadmap),
  body:not(.oc-phone) #quiz_results > .row:not(.print-roadmap) { order: 4; }
  body:not(.oc-phone) #quiz_results #ocAnswersCol { order: 5; }
  body:not(.oc-phone) #quiz_results .mainrowcontainer > .page-break,
  body:not(.oc-phone) #quiz_results .modal-footer {
    display: none !important;
  }

  /* ---- Page head ---- */
  body:not(.oc-phone) #quiz_results .modal-header {
    margin-top: 40px !important;
    margin-bottom: 24px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
  }
  body:not(.oc-phone) #quiz_results .modal-header::before {
    display: none !important;
  }
  body:not(.oc-phone) #quiz_results .modal-header > .row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 24px;
    margin: 0;
  }
  body:not(.oc-phone) #quiz_results .modal-header > .row::before,
  body:not(.oc-phone) #quiz_results .modal-header > .row::after {
    display: none;
  }
  body:not(.oc-phone) #quiz_results .modal-header > .row > div {
    float: none;
    width: auto;
    padding: 0;
  }
  body:not(.oc-phone) #quiz_results .modal-header > .row > div:first-child {
    flex: 1 1 420px;
    min-width: 0;
  }
  body:not(.oc-phone) #quiz_results .modal-header > .row > div + div {
    flex: 0 1 auto;
  }
  body:not(.oc-phone) #quiz_results .modal-header h1 {
    margin: 0 0 6px !important;
    font-size: 12px !important;
    line-height: 16px;
    font-weight: 700 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase;
    color: var(--ocd-navy-80) !important;
  }
  body:not(.oc-phone) #quiz_results .modal-header h2 {
    margin: 0 !important;
    font-size: 26px !important;
    line-height: 34px !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em;
    color: var(--ocd-navy) !important;
    overflow-wrap: anywhere;
  }
  body:not(.oc-phone) #quiz_results .next-steps {
    float: none !important;
    max-width: 520px;
    font-size: 15px;
    line-height: 24px;
    text-align: left !important;
    color: var(--ocd-navy);
  }
  body:not(.oc-phone) #quiz_results .next-steps-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--ocd-navy-80);
  }
  body:not(.oc-phone) #quiz_results .next-steps.oc-next-steps-center {
    max-width: none;
  }
  body:not(.oc-phone) .view-recommendations-button {
    min-height: 52px;
    padding: 0 28px !important;
    border-radius: 26px !important;
    background: var(--ocd-orange) !important;
    color: #fff !important;
    font-size: 15px !important;
    letter-spacing: 0.06em !important;
    box-shadow: var(--ocd-btn-shadow) !important;
    transform: none !important;
    filter: none !important;
    white-space: normal;
  }
  body:not(.oc-phone) .view-recommendations-button:hover {
    background: var(--ocd-burnt) !important;
  }

  /* ---- Score card (score + six bars) beside the wheel card ---- */
  body:not(.oc-phone) #quiz_results .mainrowcontainer > .pagebreak {
    display: grid;
    grid-template-columns: 5fr 6fr;
    grid-template-rows: auto 1fr;
    column-gap: 20px;
    margin-bottom: 20px !important;
    padding: 0 !important;
  }
  body:not(.oc-phone) #quiz_results .pagebreak > .row {
    display: contents;
  }
  body:not(.oc-phone) #quiz_results .pagebreak > .row > div[class*="col-"] {
    float: none;
    width: auto;
    padding: 0;
    min-height: 0;
  }
  body:not(.oc-phone) #quiz_results .pagebreak > .row:first-child > .col-sm-3 {
    grid-column: 1;
    grid-row: 1;
    padding: 28px 28px 20px;
    background: #fff;
    border: 1px solid var(--ocd-navy-20);
    border-bottom: 0;
    border-radius: var(--ocd-radius) var(--ocd-radius) 0 0;
  }
  body:not(.oc-phone) #quiz_results .pagebreak > .row:first-child > .col-sm-9 {
    grid-column: 1;
    grid-row: 2;
    padding: 0 28px 28px !important;
    background: #fff;
    border: 1px solid var(--ocd-navy-20);
    border-top: 0;
    border-radius: 0 0 var(--ocd-radius) var(--ocd-radius);
    box-shadow: 0 10px 16px -8px rgba(11, 62, 96, 0.10);
  }
  body:not(.oc-phone) #quiz_results .pagebreak > .row:last-child > .firefox_print {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px !important;
    background: #fff;
    border: 1px solid var(--ocd-navy-20);
    border-radius: var(--ocd-radius);
    box-shadow: var(--ocd-shadow);
  }
  body:not(.oc-phone) #quiz_results .oc-score-hero {
    display: flex !important;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0 12px;
    height: auto !important;
    text-align: left !important;
  }
  body:not(.oc-phone) #quiz_results .results-score-title {
    flex: 0 0 100%;
    margin: 0 0 8px;
    font-size: 12px !important;
    line-height: 16px;
    letter-spacing: 0.12em !important;
    color: var(--ocd-navy-80) !important;
  }
  body:not(.oc-phone) #quiz_results .results-score {
    margin: 0 !important;
    font-size: 72px !important;
    line-height: 64px !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
    color: var(--ocd-navy) !important;
  }
  body:not(.oc-phone) #quiz_results .oc-m-score-of {
    display: block;
    margin: 0;
    padding-bottom: 4px;
    font-size: 17px;
    font-weight: 600;
    color: var(--ocd-navy-80) !important;
  }
  body:not(.oc-phone) #quiz_results .pagebreak .col-sm-9 > .row {
    display: grid;
    gap: 14px;
    margin: 0;
    padding-top: 20px;
    border-top: 1px solid var(--ocd-navy-10);
  }
  body:not(.oc-phone) #quiz_results .pagebreak .col-sm-9 > .row::before,
  body:not(.oc-phone) #quiz_results .pagebreak .col-sm-9 > .row::after {
    display: none;
  }
  body:not(.oc-phone) #quiz_results .progress-container {
    display: grid;
    grid-template-columns: 84px 1fr;
    align-items: center;
    gap: 12px;
    float: none;
    width: auto;
    margin: 0;
    padding: 0 !important;
  }
  body:not(.oc-phone) #quiz_results .progress-mylabel {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 20px;
  }
  body:not(.oc-phone) #quiz_results .progress-custom {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
  }
  body:not(.oc-phone) #quiz_results .progress-custom .progress {
    display: block !important;
    flex: 1 1 auto;
    width: auto;
    height: 12px !important;
    margin: 0;
    border-radius: 6px !important;
  }
  body:not(.oc-phone) #quiz_results .progress-custom .progress-bar {
    border-radius: 6px !important;
  }
  body:not(.oc-phone) #quiz_results .progress-custom .progress-value {
    display: block !important;
    flex: 0 0 48px;
    width: 48px !important;
    padding: 0 !important;
    text-align: right;
    font-variant-numeric: tabular-nums;
  }
  /* wheel: the canvases scale with the card */
  body:not(.oc-phone) #quiz_results #piechartQuiz {
    width: 100% !important;
    max-width: 480px;
    min-height: 0 !important;
    height: auto;
    aspect-ratio: 860 / 788;
    margin: 0 auto;
  }

  /* ---- Roadmap: emphasised card with a navy head band ---- */
  body:not(.oc-phone) #quiz_results .print-roadmap {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
  }
  body:not(.oc-phone) #quiz_results .modal-dialog > .row > .col-sm-12,
  body:not(.oc-phone) #quiz_results > .row > .col-sm-12 {
    float: none;
    padding: 0;
  }
  body:not(.oc-phone) #recommend-start {
    padding: 0 !important;
    background: var(--ocd-navy) !important; /* replaces the inline off-palette #142233 */
    border: 1px solid var(--ocd-navy-20);
    border-radius: var(--ocd-radius);
    box-shadow: var(--ocd-shadow);
    overflow: hidden;
  }
  body:not(.oc-phone) .roadmap-title {
    margin: 0 !important;
    padding: 28px 32px 8px;
    font-size: 26px !important;
    line-height: 32px !important;
    letter-spacing: -0.01em !important;
    text-transform: none !important;
    color: #fff !important;
  }
  body:not(.oc-phone) .roadmap-desc {
    max-width: 820px;
    margin: 0 !important;
    padding: 0 32px 24px;
    font-size: 15px !important;
    line-height: 24px !important;
    color: #fff !important;
  }
  body:not(.oc-phone) .roadmap-tabs-container {
    position: relative;
    padding: 3px 0 0 !important;
    background: #fff;
  }
  body:not(.oc-phone) .roadmap-tabs-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--ocd-grad-bar);
  }
  body:not(.oc-phone) .roadmap-tabs-container .nav-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    height: auto !important;
    padding: 12px 24px 0 !important;
    background: #fff !important; /* replaces the inline #eaeaea / 61px bar */
    border-bottom: 1px solid var(--ocd-navy-10) !important;
    overflow-x: auto;
  }
  body:not(.oc-phone) .roadmap-tabs-container .nav-tabs::before,
  body:not(.oc-phone) .roadmap-tabs-container .nav-tabs::after {
    display: none;
  }
  body:not(.oc-phone) .roadmap-tabs-container .nav-tabs > li {
    float: none;
    margin: 0;
  }
  body:not(.oc-phone) .roadmap-tabs-container .nav-tabs > li > a {
    display: flex;
    align-items: center;
    width: auto !important; /* quiz.php sets a fixed 138px x 61px */
    height: auto !important;
    min-height: 48px;
    padding: 12px 14px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
    color: var(--ocd-navy) !important;
    background: #fff !important;
    border: 0 !important;
    border-bottom: 3px solid #fff !important;
    transition: color 0.2s ease, border-color 0.2s ease !important;
  }
  body:not(.oc-phone) .roadmap-tabs-container .nav-tabs > li > a:hover {
    border-bottom-color: var(--ocd-navy-20) !important;
  }
  body:not(.oc-phone) .roadmap-tabs-container .nav-tabs > li.active > a,
  body:not(.oc-phone) .roadmap-tabs-container .nav-tabs > li.active > a:hover,
  body:not(.oc-phone) .roadmap-tabs-container .nav-tabs > li.active > a:focus {
    font-weight: 800 !important;
    border-bottom-color: var(--ocd-orange) !important;
  }
  body:not(.oc-phone) .roadmap-tabs-container .nav-tabs > li > a:focus-visible {
    outline: 3px solid var(--ocd-blue);
    outline-offset: -3px;
  }
  body:not(.oc-phone) .roadmap-tabs-container .tab-content {
    background: #fff !important;
  }
  body:not(.oc-phone) .roadmap-tabs-container .tab-pane {
    padding: 0 !important;
  }
  body:not(.oc-phone) .roadmap-tabs-container .presc-container {
    padding: 28px 32px 32px !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  body:not(.oc-phone) .roadmap-tabs-container .presc-container::before {
    display: none;
  }
  /* section heads: sentence-weight navy instead of light uppercase */
  body:not(.oc-phone) .presc-intro,
  body:not(.oc-phone) .presc-reading,
  body:not(.oc-phone) .presc-next-step,
  body:not(.oc-phone) .presc-eos-tools {
    margin: 0 0 12px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 17px !important;
    line-height: 24px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    color: var(--ocd-navy) !important;
  }
  body:not(.oc-phone) .presc-congrats {
    color: var(--ocd-navy) !important; /* orange 26px was 2.6:1 */
  }
  body:not(.oc-phone) .presc-congrats-sub,
  body:not(.oc-phone) .presc-detail,
  body:not(.oc-phone) .presc-book-desc,
  body:not(.oc-phone) .presc-eos-tools-desc,
  body:not(.oc-phone) .presc-next-step-text {
    font-size: 15px !important;
    line-height: 24px !important;
    color: var(--ocd-navy) !important;
  }
  body:not(.oc-phone) .presc-remind {
    font-size: 14px !important;
    line-height: 22px !important;
    color: var(--ocd-navy-80) !important;
  }
  body:not(.oc-phone) .presc-vid-image img {
    border-radius: 12px;
  }
  /* orange 14px link text was 2.6:1: Light Blue, underlined */
  body:not(.oc-phone) .roadmap-tabs-container .tab-content a,
  body:not(.oc-phone) .presc-book-do,
  body:not(.oc-phone) .presc-eos-tools-do {
    color: var(--ocd-blue) !important;
  }
  body:not(.oc-phone) .roadmap-tabs-container .tab-content a {
    text-decoration: underline;
    text-underline-offset: 2px;
  }
  body:not(.oc-phone) .presc-book-do .fa,
  body:not(.oc-phone) .presc-eos-tools-do .fa {
    color: var(--ocd-blue) !important;
  }

  /* ---- CTA: one navy card ---- */
  body:not(.oc-phone) #quiz_results .modal-dialog > .row:not(.print-roadmap),
  body:not(.oc-phone) #quiz_results > .row:not(.print-roadmap) {
    margin-bottom: 20px !important;
  }
  body:not(.oc-phone) .cta-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 !important;
    padding: 28px 32px !important;
    background: var(--ocd-navy) !important; /* replaces off-palette #142233 */
    border-radius: var(--ocd-radius);
    box-shadow: var(--ocd-shadow);
    overflow: hidden;
  }
  body:not(.oc-phone) .cta-container > .col-sm-6 {
    float: none;
    width: auto;
    padding: 0;
  }
  body:not(.oc-phone) .cta-container > .col-sm-6:first-child {
    flex: 1 1 auto;
  }
  body:not(.oc-phone) .cta-container > .col-sm-6 + .col-sm-6 {
    flex: 0 1 260px;
  }
  body:not(.oc-phone) .cta-heading,
  body:not(.oc-phone) .cta-heading2 {
    margin: 0 0 16px !important;
    padding: 0 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 24px !important;
    line-height: 32px !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em;
    text-transform: none !important;
    text-align: left !important;
    color: #fff !important;
  }
  body:not(.oc-phone) .cta-container > .cta-button-container {
    flex: 0 0 auto;
  }
  body:not(.oc-phone) .cta-container > .cta-heading2 {
    margin: 0 !important;
  }
  body:not(.oc-phone) .cta-button,
  body:not(.oc-phone) .cta-button2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: auto !important;
    min-width: 0 !important;
    max-width: none;
    min-height: 52px;
    height: auto !important;
    margin: 0 !important;
    padding: 0 28px !important;
    border: 0 !important;
    border-radius: 26px !important;
    background: var(--ocd-orange) !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    white-space: normal;
    box-shadow: var(--ocd-btn-shadow) !important;
  }
  body:not(.oc-phone) .cta-button:hover,
  body:not(.oc-phone) .cta-button2:hover {
    background: var(--ocd-burnt) !important;
  }
  body:not(.oc-phone) .cta-button2 .fa {
    margin: 0;
    color: #fff !important;
  }
  body:not(.oc-phone) .cta-img-container {
    margin: 0 !important;
    text-align: right;
  }
  body:not(.oc-phone) .cta-img-container img {
    width: 100%;
    max-width: 260px;
    height: auto;
  }

  /* ---- The 20 answers: last, in one card ---- */
  body:not(.oc-phone) #quiz_results #ocAnswersCol {
    margin-bottom: 8px !important;
    padding: 0 !important;
  }
  body:not(.oc-phone) #quiz_results .table-responsive {
    margin: 0;
    padding: 8px 28px 12px;
    background: #fff;
    border: 1px solid var(--ocd-navy-20);
    border-radius: var(--ocd-radius);
    box-shadow: var(--ocd-shadow);
    overflow-x: visible;
  }
  body:not(.oc-phone) #quiz_results .thequestion {
    margin: 0;
  }
  body:not(.oc-phone) #quiz_results .thequestion th {
    padding: 16px 8px 12px !important;
    border-bottom: 1px solid var(--ocd-navy-20) !important;
    font-size: 12px !important;
    letter-spacing: 0.12em;
    color: var(--ocd-navy-80) !important;
  }
  body:not(.oc-phone) #quiz_results .thequestion td {
    padding: 12px 8px !important;
    font-size: 15px !important;
    line-height: 22px;
    color: var(--ocd-navy) !important;
    border-color: var(--ocd-navy-10) !important;
  }
  body:not(.oc-phone) #quiz_results .thequestion th.col-xs-1,
  body:not(.oc-phone) #quiz_results .thequestion td.answers-list-answer {
    width: 88px !important;
    text-align: center;
    white-space: nowrap;
  }
  body:not(.oc-phone) #quiz_results .answers-list-answer {
    font-size: 16px !important;
    font-weight: 800 !important;
    font-variant-numeric: tabular-nums;
    color: var(--ocd-navy) !important; /* orange numerals were 2.6:1 */
  }
  /* print button row under the answers (inline white background removed) */
  body:not(.oc-phone) #ocAnswersCol > .col-sm-3 {
    float: none;
    width: auto;
    margin: 16px 0 0 !important;
    padding: 0;
    background: transparent !important;
  }
  body:not(.oc-phone) #ocAnswersCol > .col-sm-3 > div {
    margin: 0 !important;
  }
  body:not(.oc-phone) .print-btn {
    min-height: 48px;
    padding: 0 28px !important;
    border-radius: 24px !important;
    background: #fff !important;
    font-size: 14px !important;
    letter-spacing: 0.06em;
  }
  body:not(.oc-phone) .print-btn:hover {
    background: var(--ocd-navy) !important;
    color: #fff !important;
  }

  /* ================= Results under 1024px: one column of cards ================= */
  @media (max-width: 1023px) {
    body:not(.oc-phone) #quiz_results .modal-header,
    body:not(.oc-phone) #quiz_results .mainrowcontainer > .pagebreak,
    body:not(.oc-phone) #quiz_results .modal-dialog > .row,
    body:not(.oc-phone) #quiz_results > .row,
    body:not(.oc-phone) #quiz_results #ocAnswersCol {
      max-width: 720px;
    }
    body:not(.oc-phone) #quiz_results .mainrowcontainer > .pagebreak {
      grid-template-columns: 1fr;
      grid-template-rows: auto auto auto;
      row-gap: 0;
    }
    body:not(.oc-phone) #quiz_results .pagebreak > .row:last-child > .firefox_print {
      grid-column: 1;
      grid-row: 3;
      margin-top: 20px;
    }
    body:not(.oc-phone) .presc-container .row > [class*="col-"] {
      float: none;
      width: 100%;
    }
    body:not(.oc-phone) .cta-container {
      flex-wrap: wrap;
    }
  }

  /* ================= Phase B/C additions ================= */
  /* ---- keyboard hints: non-touch desktop only ---- */
  body:not(.oc-phone) #do_quiz .oc-m-progress {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    column-gap: 16px;
  }
  body:not(.oc-phone) #do_quiz .oc-m-progress-track {
    grid-column: 1 / -1;
  }
  body:not(.oc-phone) .oc-kbd-hint {
    font-size: 13px;
    line-height: 20px;
    color: var(--ocd-navy-80);
    white-space: nowrap;
  }
  body:not(.oc-phone) .oc-kbd-hint kbd {
    display: inline-block;
    min-width: 22px;
    margin: 0 2px;
    padding: 1px 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    line-height: 18px;
    font-weight: 700;
    text-align: center;
    color: var(--ocd-navy);
    background: #fff;
    border: 1px solid var(--ocd-navy-20);
    border-bottom-width: 2px;
    border-radius: 6px;
    box-shadow: none;
  }
  body:not(.oc-phone) #do_quiz .oc-m-bar .oc-kbd-enter {
    margin-left: auto;
  }
  @media (hover: hover) and (pointer: fine) {
    body:not(.oc-phone) .oc-kbd-hint {
      display: inline;
    }
  }

  /* ---- results page head: eyebrow, name (or company), meta ---- */
  body:not(.oc-phone) #quiz_results .modal-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 24px;
  }
  body:not(.oc-phone) #quiz_results .modal-header > .oc-results-head {
    display: block;
    flex: 1 1 420px;
    min-width: 0;
  }
  body:not(.oc-phone) #quiz_results .modal-header > .row {
    flex: 0 1 auto;
  }
  /* the legacy "Organizational Checkup results for name (email)" column; phones and print keep it */
  body:not(.oc-phone) #quiz_results .modal-header > .row > div:first-child {
    display: none;
  }
  body:not(.oc-phone) .oc-results-eyebrow {
    margin: 0 0 6px !important;
    font-size: 12px !important;
    line-height: 16px !important;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ocd-navy-80) !important;
  }
  body:not(.oc-phone) #quiz_results .modal-header .oc-results-name {
    margin: 0 0 4px !important;
    font-size: 34px !important;
    line-height: 40px !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em !important;
    text-transform: none;
    color: var(--ocd-navy) !important;
    overflow-wrap: anywhere;
  }
  body:not(.oc-phone) .oc-results-meta {
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 22px !important;
    color: var(--ocd-navy-80) !important;
  }

  /* ---- coaching line under the score ---- */
  body:not(.oc-phone) #quiz_results .oc-coach {
    display: block;
    flex: 0 0 100%;
    margin: 14px 0 0 !important;
    font-size: 15px !important;
    line-height: 24px !important;
    color: var(--ocd-navy) !important;
  }

  /* ---- SVG wheel replaces the canvas chart on desktop (print and phones keep the canvases) ---- */
  body:not(.oc-phone) #quiz_results .pagebreak > .row:last-child > .firefox_print {
    flex-direction: column;
    align-items: stretch;
    padding: 28px !important;
  }
  body:not(.oc-phone) #quiz_results .firefox_print #piechartQuiz {
    display: none !important;
  }
  body:not(.oc-phone) #quiz_results .oc-qz-wheel {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
  }
  body:not(.oc-phone) .oc-qz-wheel-eyebrow {
    margin: 0 0 8px !important;
    font-size: 12px !important;
    line-height: 16px !important;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ocd-navy-80) !important;
  }
  body:not(.oc-phone) .oc-qz-wheel-svg {
    display: block;
    flex: 1 1 auto;
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: auto;
  }
  body:not(.oc-phone) .oc-qz-wheel-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    fill: var(--ocd-navy);
  }
  body:not(.oc-phone) .oc-qz-wheel-value {
    font-weight: 800;
  }
  body:not(.oc-phone) .oc-qz-wheel-center {
    font-family: 'Montserrat', sans-serif; /* font-size comes from the markup: quiz.php fits it to the circle */
    font-weight: 800;
    letter-spacing: 0.06em;
    fill: var(--ocd-navy);
  }

  /* ---- roadmap tab score chips (navy text on component-status tints) ---- */
  body:not(.oc-phone) .roadmap-tabs-container .oc-chip {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 16px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--ocd-navy);
    background: var(--ocd-navy-10);
  }
  body:not(.oc-phone) .roadmap-tabs-container .oc-chip-lo { background: #FCDCD3; }  /* burnt orange 20% */
  body:not(.oc-phone) .roadmap-tabs-container .oc-chip-mid { background: #FFF1BF; } /* yellow 25% */
  body:not(.oc-phone) .roadmap-tabs-container .oc-chip-hi { background: #D1E9E0; }  /* green 20% */

  /* ---- "Your 20 answers" card, last, collapsed behind the shared toggle ---- */
  body:not(.oc-phone) #quiz_results > #ocAnswersSlot {
    order: 5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    align-self: center;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto 8px;
    padding: 20px 28px;
    background: #fff;
    border: 1px solid var(--ocd-navy-20);
    border-radius: var(--ocd-radius);
    box-shadow: var(--ocd-shadow);
  }
  body:not(.oc-phone) #ocAnswersSlot > .oc-answers-head {
    display: block;
    flex: 1 1 280px;
  }
  body:not(.oc-phone) #quiz_results .oc-answers-title {
    margin: 0 0 2px !important;
    font-size: 17px !important;
    line-height: 24px !important;
    font-weight: 700 !important;
    color: var(--ocd-navy) !important;
  }
  body:not(.oc-phone) .oc-answers-sub {
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 20px !important;
    color: var(--ocd-navy-80) !important;
  }
  body:not(.oc-phone) .oc-m-answers-toggle {
    -webkit-appearance: none;
    appearance: none;
    flex: 0 0 auto;
    min-height: 48px;
    padding: 0 28px;
    border: 0;
    border-radius: 24px;
    background: #fff;
    box-shadow: inset 0 0 0 2px var(--ocd-navy);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ocd-navy);
    cursor: pointer;
  }
  body:not(.oc-phone) .oc-m-answers-toggle:hover {
    background: var(--ocd-navy-5);
  }
  body:not(.oc-phone) .oc-m-answers-toggle:focus-visible {
    outline: 3px solid var(--ocd-blue);
    outline-offset: 3px;
  }
  body:not(.oc-phone) #ocAnswersSlot > #ocAnswersCol {
    flex: 0 0 100%;
    max-width: none;
    margin: 0 !important;
  }
  body:not(.oc-phone) #ocAnswersSlot .table-responsive {
    padding: 0;
    border: 0;
    border-top: 1px solid var(--ocd-navy-10);
    border-radius: 0;
    box-shadow: none;
  }
  @media (max-width: 1023px) {
    body:not(.oc-phone) #quiz_results > #ocAnswersSlot {
      max-width: 720px;
    }
    /* six tabs with chips do not fit in 720px: two rows instead of a hidden scroll */
    body:not(.oc-phone) .roadmap-tabs-container .nav-tabs {
      flex-wrap: wrap;
      overflow-x: visible;
    }
  }

  /* ================= Reduced motion ================= */
  @media (prefers-reduced-motion: reduce) {
    body:not(.oc-phone) *,
    body:not(.oc-phone) *::before,
    body:not(.oc-phone) *::after {
      animation: none !important;
      transition: none !important;
    }
  }
}

/* Merge guard (org7 April rebrand, css/oc-brand-override.css .welcome-container / #finish_quiz_for_anonymous rules):
   keep the desktop cards at the designed size, left-aligned, with bold titles. */
@media screen and (min-width: 768px) and (pointer: fine),
       screen and (min-width: 768px) and (pointer: none),
       screen and (min-width: 768px) and (min-height: 501px) and (pointer: coarse) and (hover: hover),
       screen and (min-width: 1367px) and (min-height: 501px) and (pointer: coarse) {
  body:not(.oc-phone) .welcome-container,
  body:not(.oc-phone) #finish_quiz_for_anonymous .welcome-container {
    max-width: 720px !important;
    margin: 48px auto 0 !important;
    padding: 40px !important;
    text-align: left !important;
  }
  body:not(.oc-phone) .welcome-title,
  body:not(.oc-phone) #finish_quiz_for_anonymous .welcome-title {
    margin: 0 0 12px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 26px !important;
    line-height: 32px !important;
    font-weight: 800 !important;
    text-align: left !important;
  }
  body:not(.oc-phone) #finish_quiz_for_anonymous .welcome-desc {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  body:not(.oc-phone) #finish_quiz_for_anonymous .send-anonymous,
  body:not(.oc-phone) #finish_quiz_for_anonymous .send-anonymous .form-group {
    max-width: none !important;
    text-align: left !important;
  }
  body:not(.oc-phone) #finish_quiz_for_anonymous .btn-primary {
    border-radius: 999px !important;
  }
}

@media screen {

/* Roadmap Next (desktop tabs, Oct 2026): it was floated right with nothing to contain it, so it hung out of the white
   card onto the navy band and its white label vanished. Now a right-aligned row inside the card. */
.roadmap-tabs-container .tab-pane::after{content:"";display:table;clear:both}
.roadmap-tabs-container .presc-next.presc-btn-container{float:none!important;display:flex;justify-content:flex-end;align-items:center;gap:12px;margin:0;padding:4px 32px 28px}
.roadmap-tabs-container .presc-next .presc-btn-text{color:#0B3E60!important;margin:0}
.roadmap-tabs-container .presc-next + br{display:none}
}
