/* Leadership pages, styled after apple.com/leadership: a quiet white page, a hairline sub-header,
   borderless photo grid, name as a link, grey title; profile = light grey band (name left, photo
   right) over a two-column bio.
   /leadership (overview + office filter) and /leadership/{slug} (profile). */
:root {
    --ld-ink: #1d1d1f;
    --ld-muted: #6e6e73;
    --ld-line: #d2d2d7;
    --ld-soft: #f5f5f7;
    --ld-link: #0074A3;
    --ld-radius: 12px;
}

.ld-wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* Sub-header: "WorldCraft Leadership" over a hairline, on both pages. */
.ld-sub { padding-top: calc(2vw + 64px); background: #fff; }
.ld-sub .ld-wrap { border-bottom: 1px solid var(--ld-line); }
.ld-sub a {
    display: inline-block;
    padding: 12px 0;
    color: var(--ld-ink);
    font-size: 19px;
    font-weight: 600;
    text-decoration: none;
}
.ld-sub a:hover { color: var(--ld-link); }
.ld-sub a:focus-visible, .ld-filter a:focus-visible, .ld-card a:focus-visible {
    outline: 3px solid #7CC4E0;
    outline-offset: 3px;
    border-radius: 4px;
}

/* Overview */
.ld-intro { padding-top: 48px; padding-bottom: 8px; }
.ld-intro h1 {
    color: var(--ld-ink);
    font-size: 40px;
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 22px;
}
.ld-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ld-filter a {
    display: inline-block;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    color: var(--ld-muted);
    font-size: 19px;
    font-weight: 500;
    text-decoration: none;
}
.ld-filter a:hover { color: var(--ld-ink); }
.ld-filter a[aria-current="true"] { color: var(--ld-ink); border-bottom-color: var(--ld-ink); }
.ld-filter .ld-count { color: var(--ld-muted); font-size: 14px; margin-left: 2px; }

.ld-grid-wrap { padding-top: 36px; padding-bottom: 96px; background: #fff; }
.ld-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 52px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ld-card { display: flex; flex-direction: column; }
.ld-card[hidden] { display: none; }
/* Tile as on Apple's: landscape, soft grey fading to white at the bottom so the shoulders melt into the page. */
.ld-card__photo {
    display: block;
    aspect-ratio: 720 / 560;
    border-radius: 6px;
    background: linear-gradient(180deg, #e4e4e7 0%, #ffffff 100%);
    overflow: hidden;
}
.ld-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 100%;
    display: block;
}
.ld-card__name { margin: 16px 0 0; font-size: 20px; font-weight: 600; line-height: 1.25; }
.ld-card__name a { color: var(--ld-link); text-decoration: none; }
.ld-card__name a:hover { text-decoration: underline; }
.ld-card__title { color: #333336; font-size: 17px; line-height: 1.4; margin: 4px 0 0; }
.ld-empty { color: var(--ld-muted); font-size: 17px; }

/* Profile */
/* The band fades from soft grey to white and the cut-out person stands on its bottom edge, as on Apple's. */
.ld-hero { background: linear-gradient(180deg, #e9e9ee 0%, #fff 100%); padding: 0; }
.ld-hero__grid { display: grid; grid-template-columns: 1fr; gap: 0; align-items: end; }
.ld-hero__text { padding: 44px 0 8px; align-self: center; }
.ld-hero h1 {
    color: var(--ld-ink);
    font-size: 40px;
    font-weight: 600;
    line-height: 1.1;
    margin: 0 0 8px;
}
.ld-hero__title { color: var(--ld-ink); font-size: 26px; font-weight: 300; line-height: 1.25; margin: 0 0 10px; }
.ld-hero__office { color: var(--ld-muted); font-size: 17px; margin: 0; }
.ld-hero__photo {
    width: 100%;
    max-width: 380px;
    height: auto; /* the height attribute reserves space; it must not win over aspect-ratio */
    aspect-ratio: 1 / 1;
    object-fit: contain;
    object-position: 50% 100%;
    display: block;
    justify-self: center;
}

.ld-bio-wrap { padding-top: 24px; padding-bottom: 96px; background: #fff; }
.ld-bio { column-gap: 56px; }
.ld-bio p {
    color: var(--ld-ink);
    font-size: 17px;
    line-height: 1.47;
    margin: 0 0 14px;
    break-inside: avoid-column;
}

@media (min-width: 900px) {
    .ld-hero__grid { grid-template-columns: 1fr 380px; gap: 40px; min-height: 380px; }
    .ld-hero__text { padding-bottom: 44px; }
    .ld-hero__photo { justify-self: end; }
    .ld-bio { columns: 2; }
}
@media (max-width: 899px) {
    .ld-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .ld-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 16px; }
    .ld-hero h1 { font-size: 32px; }
    .ld-hero__title { font-size: 21px; }
}
