.bseg {
    --bseg-ink: #364157;
    --bseg-green: #a6c7bb;
    --bseg-line: #ccdcd5;
    --bseg-pale: #f3f8f5;
    --bseg-pink: #f25278;
    width: 100%;
    max-width: 54rem;
    margin-inline: auto;
    color: var(--bseg-ink);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    line-height: 1.55;
}

.bseg, .bseg * { box-sizing: border-box; }

.bseg :is(p, li, label, legend, button) {
    font-family: inherit;
    letter-spacing: normal;
    text-transform: none;
}

.bseg .bseg-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(.85rem, 3vw, 2rem);
    margin: 0 0 1rem;
    padding: clamp(1.1rem, 4vw, 2rem);
    border-radius: 1.25rem;
    background: linear-gradient(120deg, #f3f8f5, #f8f0f3);
}
.bseg .bseg-invitation p { margin: 0; }
.bseg .bseg-jump {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: .65rem;
    color: #69314b;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: .2em;
}
.bseg .bseg-families {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(.3rem, 1vw, .65rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.bseg .bseg-families li {
    display: grid;
    place-content: center;
    width: clamp(4.6rem, 24vw, 7.5rem);
    flex: 0 1 auto;
    min-width: 0;
    aspect-ratio: 1;
    margin: 0;
    border: 1px solid var(--bseg-line);
    border-radius: 50%;
    background: #e0ede7;
    text-align: center;
    font-size: clamp(.66rem, 1.6vw, .92rem);
    letter-spacing: normal;
    white-space: nowrap;
    font-weight: 700;
}

.bseg .bseg-families li:nth-child(2) {
    width: clamp(5rem, 25vw, 8.1rem);
    border-color: var(--bseg-pink);
    background: #fadde5;
}

.bseg .bseg-families li:last-child { background: #e9edf4; }
.bseg .bseg-empty { margin: .8rem 0 1.4rem; text-align: center; }

.bseg .bseg-card {
    margin: 0 0 1rem;
    padding: clamp(1rem, 3vw, 2rem);
    border: 1px solid var(--bseg-line);
    border-radius: 1.25rem;
    background: var(--bseg-pale);
    scroll-margin-top: 2rem;
}

.bseg .bseg-card--closed { background: #fff; }

.bseg h2, .bseg h3, .bseg h4 {
    margin: 0 0 .8rem;
    color: var(--bseg-ink);
    font-family: inherit;
    font-weight: 750;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.bseg h2 { font-size: clamp(1.35rem, 4vw, 1.95rem); }
.bseg h3 { font-size: clamp(1.15rem, 3vw, 1.4rem); }
.bseg h4 { font-size: 1rem; }
.bseg h2.bseg-archive-title { margin-top: 2.2rem; }
.bseg .bseg-question--image {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 1.25rem;
    align-items: start;
}
.bseg .bseg-image { display: block; width: 100%; height: auto; border-radius: .8rem; }
.bseg p.bseg-date { margin: 0 0 .6rem; font-size: .9rem; }

.bseg fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.bseg legend { margin: 0 0 .45rem; padding: 0; font-weight: 650; }
.bseg .bseg-choice {
    display: flex;
    align-items: center;
    gap: .7rem;
    min-height: 44px;
    margin: 0 0 .55rem;
    padding: .55rem .75rem;
    border: 1px solid var(--bseg-line);
    border-radius: .65rem;
    background: #fff;
    cursor: pointer;
    overflow-wrap: anywhere;
}
.bseg .bseg-choice:hover,
.bseg .bseg-choice:has(input:checked) {
    border-color: #557f70;
    background: #e4f1ea;
}

.bseg .bseg-choice input { flex: 0 0 auto; margin: 0; accent-color: #426c5e; }
.bseg .bseg-submit {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    margin-top: .45rem;
    padding: .55rem 1.15rem;
    border: 1px solid var(--bseg-ink);
    border-radius: .65rem;
    background: var(--bseg-ink);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.bseg :is(a, button, input):focus-visible { outline: 2px solid #932247; outline-offset: 3px; }
.bseg .bseg-notice, .bseg .bseg-feedback {
    margin: .8rem 0;
    padding: .85rem 1rem;
    border-radius: .65rem;
    background: #fbe8ee;
}
.bseg .bseg-feedback p:last-child { margin-bottom: 0; }
.bseg .bseg-results { list-style: none; margin: .8rem 0; padding: 0; }
.bseg .bseg-results li { margin: .75rem 0; }
.bseg .bseg-result-track {
    display: block;
    height: .42rem;
    margin-top: .25rem;
    border-radius: 1rem;
    background: #eaf0ed;
}
.bseg .bseg-result-track span { display: block; height: 100%; border-radius: inherit; background: #618b7b; }

@media (max-width: 42rem) {
    .bseg .bseg-intro { grid-template-columns: minmax(0, 1fr); }
    .bseg .bseg-question--image { grid-template-columns: minmax(0, 1fr); gap: .8rem; }
    .bseg .bseg-image { width: auto; max-width: 100%; max-height: 17rem; object-fit: contain; }
    .bseg .bseg-submit { width: 100%; }
}
