@media screen {
    #profile-relatives {
        --family-card-inset: clamp(.875rem, 1.4vw, 1.375rem);
        padding-block: clamp(1rem, 2vw, 1.75rem);
        border-radius: .875rem;
    }

    #profile-relatives > h2 {
        margin: 0 0 .875rem;
    }

    #profile-relatives .historical-relative-groups {
        align-items: start;
        gap: clamp(.75rem, 1.5vw, 1.25rem);
    }

    #profile-relatives .historical-relative-groups > section {
        min-inline-size: 0;
        padding: 0;
        border: 1px solid var(--theme-border);
        border-block-start-color: var(--relative-rule, var(--theme-border));
        border-radius: .75rem;
        background: var(--theme-surface);
    }

    html[data-pitvu-theme] #profile-relatives .historical-relative-groups h3 {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: .75rem;
        margin: 0;
        padding: .65rem var(--family-card-inset);
        border-block-end: 1px solid var(--theme-border);
        border-radius: .7rem .7rem 0 0;
        background-color: var(--relative-wash, var(--theme-soft));
        box-shadow: none;
        font-size: 1rem;
        font-weight: 650;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    #profile-relatives .historical-relative-groups h3 .fine {
        flex: none;
        margin: 0;
        font-variant-numeric: tabular-nums;
    }

    #profile-relatives .historical-relative-groups li {
        align-items: baseline;
        justify-content: flex-start;
        gap: .25rem .75rem;
        min-block-size: 2.75rem;
        padding: .625rem var(--family-card-inset);
    }

    #profile-relatives .historical-relative-groups li + li {
        border-block-start: 1px solid var(--theme-border);
    }

    html[data-pitvu-theme] #profile-relatives .historical-relative-groups li + li {
        box-shadow: none;
    }

    #profile-relatives .historical-relative-groups > section > ul:last-child > li:last-child,
    #profile-relatives .historical-relative-groups details > ul:last-child > li:last-child {
        border-radius: 0 0 .7rem .7rem;
    }

    #profile-relatives .historical-relative-groups li > a {
        flex: 1 1 12ch;
        min-inline-size: 0;
        overflow-wrap: anywhere;
        text-underline-offset: .18em;
    }

    #profile-relatives .historical-relative-groups li > a:is(:hover, :focus-visible) {
        text-decoration: underline;
    }

    #profile-relatives .historical-relative-groups li > small {
        margin: 0;
        overflow-wrap: anywhere;
    }

    #profile-relatives .historical-relative-groups > section > details {
        border-block-start: 1px solid var(--theme-border);
    }

    #profile-relatives .historical-relative-groups summary {
        padding-inline: var(--family-card-inset);
    }

    main .historical-profile-section > .profile-pedigree-summary {
        padding-inline: clamp(.875rem, 2vw, 1.75rem);
    }

    main .historical-profile-section .profile-statistics-table :is(th, td) {
        padding: .625rem clamp(.625rem, 1.15vw, 1rem);
    }

    main .historical-profile-section .profile-statistics-table :is(th, td) a {
        overflow-wrap: anywhere;
        text-underline-offset: .18em;
    }

    html[data-pitvu-theme] body main .historical-profile-section [data-profile-statistics] > .compact-coverage > summary {
        padding-inline: .625rem;
    }

    main .historical-profile-section :is(.historical-profile-verification, .historical-profile-evidence) > summary {
        padding-inline: .625rem;
    }
}
