/* Keep the reference styles local to the competition content, not the site shell. */
.competition-v1 {
    line-height: normal;
}

.competition-v1[data-brand-font="noto_sans_arabic"] {
    --brand-font-family: Tabyen, Arial, sans-serif;
}

.competition-v1 :where(.container) {
    max-width: none;
    padding-inline: 0;
}

.competition-v1 :where(.avatar) {
    border: 0;
    box-shadow: none;
    margin-inline: 0;
}

.competition-v1 :where(.eyebrow) {
    font-family: inherit;
    letter-spacing: 0;
    text-transform: none;
}

/* Remove the homepage badge styling without overriding the reference's mobile tile. */
.competition-v1 :where(.step-number) {
    position: static;
    inset: auto;
    width: auto;
    height: auto;
    background: transparent;
    border: 0;
    border-radius: 0;
    display: block;
    align-items: normal;
    justify-content: normal;
}

.competition-v1 :where(svg) {
    display: inline-block;
}

.competition-v1 .symbol-tile > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: inherit;
}

.competition-v1 .symbol-tile > .long-symbol {
    font-size: min(1em, calc(72px / var(--symbol-length)));
}

.competition-v1 .test-description {
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.competition-v1 :where(.button, .segmented button) {
    max-width: 100%;
}

.competition-v1 :where(.button, .competition-copy, .test-top, .summary-name, .journey-steps, .journey-next, .winner-card, .participant, .question, .answer-review) {
    overflow-wrap: anywhere;
}

.competition-v1 .search-box input::-webkit-search-cancel-button {
    display: none;
}

.competition-v1 .phone-field > input {
    font-family: Arial, sans-serif !important;
}

.competition-v1 :is([hidden], .answer:not(.selected) > [data-choice-mark]) {
    display: none !important;
}

.competition-v1 .competition-errors {
    color: #a4223b;
    font-size: 13px;
    list-style-position: inside;
    margin-block: 12px;
}

.competition-v1 .quiz-save:has([data-retry-save]:not([hidden])) {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.competition-v1 [data-save-status]:not(.sr-only) {
    color: #a4223b;
    font-size: 12px;
}

.competition-v1 .quiz-controls [data-submit]:last-child {
    margin-inline-start: auto;
}

.competition-v1 .answer-review .tabyen-rich-content {
    font-size: 11px;
    line-height: 2;
    margin-top: 9px;
}

.competition-v1 :is(#quiz-title, #result-title, .question legend):focus {
    outline: none;
}

.competition-v1 :is(.registration-form, .result-dialog) .button.full-width {
    white-space: normal;
    text-align: center;
}

.competition-v1[dir="ltr"] .art-note {
    direction: ltr;
}

.competition-v1[dir="ltr"] .select-wrap > svg {
    right: 14px;
    left: auto;
}

.competition-v1[dir="ltr"] .select-wrap select {
    padding-inline: 14px 40px;
}

.competition-v1[dir="ltr"] .ranking-table {
    text-align: left;
}

.competition-v1[dir="ltr"] .skip-link {
    right: auto;
    left: 20px;
}

.competition-v1[dir="ltr"] .result-close {
    right: 16px;
    left: auto;
}

.competition-v1[dir="ltr"] .winner-decor {
    right: 9px;
    left: auto;
}

.competition-v1[dir="ltr"] .journey-steps li:not(:last-child):before {
    right: auto;
    left: 13px;
}

.competition-v1[dir="ltr"] .how-step:not(:last-child):after {
    right: -20px;
    left: auto;
}

.competition-v1[dir="ltr"] .registration-steps li:not(:last-child):after {
    right: -34px;
    left: auto;
}

@media (max-width: 800px) {
    .competition-v1 .test-bottom > form {
        width: 100%;
    }

    .competition-v1[dir="ltr"] .how-step:not(:last-child):after {
        right: -12px;
    }
}

@media (max-width: 600px) {
    .competition-v1[dir="ltr"] .registration-steps li:not(:last-child):after {
        right: -20px;
    }

    .competition-v1[dir="ltr"] .result-close {
        right: 12px;
    }

    .competition-v1[dir="ltr"] .registration-intro > .scientific-art {
        right: -25px;
        left: auto;
    }
}
