.research-profile {
    --profile-wine: #642e40;
    --profile-paper: #f1e8dc;
    --profile-rule: #dcd0c3;
    width: min(1220px, 100%);
    margin: 0 auto;
    padding-top: 18px;
}
.profile-back, .profile-sources a {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 44px;
    color: var(--profile-wine);
    font-size: .84rem;
    font-weight: 600;
    text-underline-offset: .2em;
}
.profile-back { text-decoration: none; }
.profile-back:hover, .profile-sources a:hover { text-decoration: underline; }
.profile-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin-top: 8px;
    padding: clamp(16px, 4vw, 42px);
    border: 1px solid var(--profile-rule);
    background: #f8f1e7;
}
.profile-intro { min-width: 0; }
.profile-kicker {
    margin: 0;
    color: var(--profile-wine);
    font-size: .7rem;
    letter-spacing: .13em;
    text-transform: uppercase;
    font-weight: 700;
}
.profile-intro h1 {
    margin: .28rem 0 .6rem;
    font-size: clamp(2.6rem, 9vw, 4rem);
    line-height: .96;
    overflow-wrap: anywhere;
}
.profile-overview { max-width: 53ch; margin: 0; color: var(--muted); }
.profile-status {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: .85rem 0 0;
    padding: 0;
    list-style: none;
}
.profile-status li {
    padding: .2rem .55rem;
    border: 1px solid var(--profile-rule);
    border-radius: 20px;
    color: var(--profile-wine);
    font-size: .74rem;
    font-weight: 600;
}
.profile-study { align-self: start; padding-top: 14px; border-top: 1px solid var(--profile-rule); }
.profile-study h2 { margin: .35rem 0 .65rem; font-size: clamp(1.85rem, 4vw, 2.7rem); }
.profile-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 .65rem;
}
.profile-results div { display: flex; flex-direction: column-reverse; }
.profile-results dd { margin: 0 0 .2rem; color: var(--profile-wine); font: 400 clamp(2.2rem, 6vw, 3.8rem)/.95 var(--serif); }
.profile-results dt, .profile-population, .profile-method { font-size: .8rem; color: var(--muted); }
.profile-population { margin: 0 0 .2rem; }
.profile-method { margin: 0; }
.profile-figure { position: relative; margin: 0; width: min(100%, 300px); justify-self: center; }
.profile-figure figcaption { position: absolute; bottom: 3%; right: 5%; color: #614a43; font-size: .7rem; }
.profile-figure .label-brand { font-size: clamp(1.15rem, 4vw, 1.75rem); }
.profile-figure .label-name { font-size: clamp(.625rem, 1.5vw, .75rem); }
.profile-details {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin-top: 24px;
    align-items: start;
}
.profile-notes { display: grid; gap: 22px; min-width: 0; }
.profile-notes section { padding-top: 15px; border-top: 1px solid var(--profile-rule); }
.profile-details h2 { margin: 0 0 .5rem; font-size: clamp(1.85rem, 4vw, 2.65rem); }
.profile-notes .profile-kicker { margin-bottom: .38rem; }
.profile-notes p:not(.profile-kicker) { max-width: 66ch; margin: 0; }
.profile-outcomes { width: 100%; max-width: 650px; border-collapse: collapse; table-layout: fixed; font-size: .82rem; }
.profile-outcomes caption { margin-bottom: .45rem; text-align: left; color: var(--muted); }
.profile-outcomes th, .profile-outcomes td {
    border-bottom: 1px solid var(--profile-rule);
    padding: .55rem .2rem;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}
.profile-outcomes th:first-child { width: 49%; }
.profile-outcomes tbody th { font-weight: 500; }
.profile-outcomes td { font-variant-numeric: tabular-nums; }
.profile-sidebar { min-width: 0; display: grid; gap: 16px; }
.profile-sources { padding: 1rem; border: 1px solid var(--profile-rule); }
.profile-sources ul { list-style: none; margin: 0; padding: 0; }
.profile-sources li + li { border-top: 1px solid var(--profile-rule); }
.profile-sources a { width: 100%; justify-content: space-between; text-decoration: none; }
.profile-sources a span { flex: none; }
.profile-store { padding: 1.4rem; border: 1px solid var(--profile-rule); border-top: 3px solid var(--profile-wine); background: #f8f1e7; }
.profile-store .profile-kicker { margin: 0 0 .75rem; font-size: .62rem; letter-spacing: .14em; }
.profile-store h2 { font-size: clamp(2rem, 3vw, 2.5rem); line-height: 1.05; overflow-wrap: anywhere; }
.profile-store-description { margin: .75rem 0 1.25rem; font-size: .83rem; line-height: 1.6; color: var(--muted); }
.profile-store .button { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 48px; padding: .85rem 1rem; font-size: .82rem; }
.profile-store .button span { flex: none; }
.profile-store .button { width: 100%; }

@media (min-width: 715px) {
    .research-profile { padding-top: 25px; }
    .profile-hero {
        grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr);
        gap: 22px clamp(22px, 5vw, 68px);
        align-items: start;
    }
    .profile-intro h1 { font-size: clamp(3.5rem, 7vw, 6rem); }
    .profile-figure { grid-area: 1 / 2 / span 2 / 3; align-self: center; width: min(100%, 350px); }
    .profile-details { grid-template-columns: minmax(0, 1fr) minmax(220px, .39fr); gap: clamp(24px, 5vw, 62px); }
    .profile-store .button { width: 100%; }
}

