.entity-profile {
    min-height: 70vh;
    padding: 72px 0 120px;
    background: var(--background);
    color: var(--text);
}

.entity-profile__back {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 6px 0;
    margin-bottom: 54px;
    color: var(--muted);
    font-size: .88rem;
    text-decoration: none;
}

.entity-profile__back:hover,
.entity-profile__back:focus-visible,
.entity-profile a:hover,
.entity-profile a:focus-visible { color: var(--accent-dark); }

.entity-profile__hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    align-items: center;
    gap: clamp(40px, 7vw, 110px);
    padding-bottom: 64px;
    border-bottom: 1px solid var(--border);
}

.entity-profile__heading > span {
    display: block;
    margin-bottom: 16px;
    color: var(--accent-dark);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.entity-profile h1 {
    margin: 0;
    font-size: clamp(3.4rem, 7vw, 7rem);
    font-weight: 300;
    letter-spacing: -.05em;
    line-height: .95;
}

.entity-profile__parent { margin: 18px 0 0; color: var(--accent-dark); }

.entity-profile__intro {
    max-width: 760px;
    margin: 30px 0 0;
    color: var(--muted);
    font-size: 1.15rem;
    line-height: 1.75;
}

.entity-profile__image {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
}

.entity-profile__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 36px 0;
    border-bottom: 1px solid var(--border);
}

.entity-profile__facts > div { padding: 0 28px; border-right: 1px solid var(--border); }
.entity-profile__facts > div:first-child { padding-left: 0; }
.entity-profile__facts > div:last-child { border-right: 0; }
.entity-profile__facts dt { color: var(--muted); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.entity-profile__facts dd { margin: 9px 0 0; font-size: 1.05rem; }
.entity-profile__facts a { color: inherit; }

.entity-profile__content {
    max-width: 860px;
    margin: 72px auto 0;
    font-size: 1.08rem;
    line-height: 1.85;
}

.entity-profile__content h2,
.entity-profile__content h3,
.entity-profile__content h4 { margin: 2em 0 .7em; line-height: 1.25; }
.entity-profile__content h2 { font-size: 2rem; }
.entity-profile__content h3 { font-size: 1.5rem; }
.entity-profile__content p { margin: 0 0 1.4em; }
.entity-profile__content blockquote { margin: 2em 0; padding-left: 1.5em; border-left: 3px solid var(--accent-dark); color: var(--muted); }

.entity-profile__content .entity-editorial-image {
    margin: 3rem auto;
}

.entity-profile__content .entity-editorial-image[data-size="small"] { max-width: 360px; }
.entity-profile__content .entity-editorial-image[data-size="medium"] { max-width: 560px; }
.entity-profile__content .entity-editorial-image[data-size="large"] { max-width: 820px; }
.entity-profile__content .entity-editorial-image[data-size="full"] { max-width: none; }
.entity-profile__content .entity-editorial-image[data-align="left"] { margin-left: 0; }
.entity-profile__content .entity-editorial-image[data-align="right"] { margin-right: 0; }

.entity-profile__content .entity-editorial-image img {
    display: block;
    width: 100%;
    height: auto;
}

.entity-profile__content .entity-editorial-image figcaption {
    margin-top: .8rem;
    color: var(--muted);
    font-size: .86rem;
    line-height: 1.5;
}

@media (max-width: 800px) {
    .entity-profile { padding: 48px 0 80px; }
    .entity-profile__back { margin-bottom: 36px; }
    .entity-profile__hero { grid-template-columns: 1fr; padding-bottom: 42px; }
    .entity-profile__image { grid-row: 1; max-height: 420px; }
    .entity-profile__facts { grid-template-columns: 1fr; }
    .entity-profile__facts > div,
    .entity-profile__facts > div:first-child {
        padding: 20px 0;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }
    .entity-profile__facts > div:last-child { border-bottom: 0; }
    .entity-profile__content { margin-top: 48px; }
}
