/* BLKWTR Route Quiz. Widget Style controls can override these scoped defaults. */
.brq-player {
    --brq-accent: #245b8f;
    --brq-accent-hover: #19466f;
    --brq-focus: #155faf;
    --brq-text: #172b3f;
    --brq-muted: #4c6073;
    --brq-border: #cbd5df;
    --brq-surface: #fff;
    --brq-selected: #edf5fc;
    --brq-radius: 12px;
    --brq-scroll-offset: 100px;
    min-width: 0;
}

.brq-widget {
    min-width: 0;
}

.brq-player .brq-panel[hidden],
.brq-player [data-brq-error][hidden],
.brq-player [data-brq-action][hidden] {
    display: none !important;
}

.brq-panel,
.brq-panel [data-brq-heading],
.brq-panel h1,
.brq-panel h2,
.brq-panel h3,
.brq-panel h4,
.brq-panel h5,
.brq-panel h6 {
    scroll-margin-top: var(--brq-scroll-offset, 100px);
}

.brq-player [data-brq-progress] {
    color: var(--brq-muted);
    font-size: .875em;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.brq-answers fieldset {
    border: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.brq-answers-legend {
    color: inherit;
    display: block;
    float: none;
    width: 100%;
    margin: 0 0 1rem;
    padding: 0;
    font-size: 1.125em;
    font-weight: 600;
    line-height: 1.45;
}

.brq-choices {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

.brq-choice {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    position: relative;
    min-width: 0;
    margin: 0;
    padding: 1rem 1.125rem;
    border: 1px solid var(--brq-border, #cbd5df);
    border-radius: var(--brq-radius, 12px);
    color: var(--brq-text, #172b3f);
    background: var(--brq-surface, #fff);
    line-height: 1.5;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.brq-choice:hover {
    border-color: var(--brq-accent, #245b8f);
}

.brq-choice.is-selected {
    border-color: var(--brq-accent, #245b8f);
    background: var(--brq-selected, #edf5fc);
}

.brq-choice:focus-within {
    outline: 3px solid var(--brq-focus, #155faf);
    outline-offset: 3px;
}

.brq-choice input[type="radio"] {
    appearance: auto;
    -webkit-appearance: radio;
    display: block;
    flex: 0 0 1.125rem;
    width: 1.125rem;
    height: 1.125rem;
    min-width: 1.125rem;
    margin: .18rem 0 0;
    padding: 0;
    accent-color: var(--brq-accent, #245b8f);
    cursor: pointer;
}

.brq-choice-content {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    flex: 1 1 auto;
    min-width: 0;
}

.brq-choice-copy {
    display: block;
    min-width: 0;
}

.brq-choice-text {
    display: block;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.brq-choice-description {
    display: block;
    margin-top: .3rem;
    color: var(--brq-muted, #4c6073);
    font-size: .925em;
    font-weight: 400;
    overflow-wrap: anywhere;
}

.brq-choice-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: inherit;
    line-height: 1;
}

.brq-choice-icon svg,
.brq-answer-button svg {
    width: 1.25em;
    height: 1.25em;
    fill: currentColor;
}

.brq-next,
.brq-answer-button,
.brq-back,
.brq-restart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55em;
    min-height: 44px;
    max-width: 100%;
    margin: 0;
    padding: .75rem 1.125rem;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--brq-accent, #245b8f);
    color: #fff;
    font: inherit;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}

.brq-next {
    margin-top: 1.125rem;
}

.brq-next:hover,
.brq-answer-button:hover {
    background: var(--brq-accent-hover, #19466f);
    color: #fff;
}

.brq-answer-button .brq-choice-description {
    color: inherit;
    opacity: .9;
}

.brq-back,
.brq-restart {
    border-color: var(--brq-border, #cbd5df);
    background: var(--brq-surface, #fff);
    color: var(--brq-text, #172b3f);
}

.brq-back:hover,
.brq-restart:hover {
    border-color: var(--brq-accent, #245b8f);
    background: var(--brq-selected, #edf5fc);
    color: var(--brq-text, #172b3f);
}

.brq-next:focus-visible,
.brq-answer-button:focus-visible,
.brq-back:focus-visible,
.brq-restart:focus-visible,
.brq-panel [tabindex="-1"]:focus-visible {
    outline: 3px solid var(--brq-focus, #155faf);
    outline-offset: 4px;
}

.brq-next:disabled,
.brq-answer-button:disabled,
.brq-back:disabled,
.brq-restart:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.brq-navigation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    margin-top: 1.5rem;
}

.brq-player [data-brq-error] {
    margin: 1rem 0;
    padding: .85rem 1rem;
    border: 1px solid #a93131;
    border-radius: 8px;
    background: #fff4f3;
    color: #772525;
    font-size: .95em;
    line-height: 1.5;
}

.brq-editor-notice,
.brq-widget-notice {
    margin: .75rem 0;
    padding: .75rem 1rem;
    border: 1px dashed #8fa7bd;
    border-radius: 6px;
    background: #f1f6fa;
    color: #30485f;
    font-size: 13px;
    line-height: 1.5;
}

.brq-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
    .brq-choice,
    .brq-next,
    .brq-answer-button,
    .brq-back,
    .brq-restart {
        transition: none;
    }
}

@media (forced-colors: active) {
    .brq-choice.is-selected {
        border-color: Highlight;
        outline: 2px solid Highlight;
        outline-offset: -2px;
    }
}
