/* Portrait-led directory, with equal access by pointer, keyboard and touch. */
.kg-people-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:40px;margin:0 0 64px;}
.kg-people-grid .kg-person-card {display:block;border:0;padding:0;min-width:0;}
.entry-content .kg-page .kg-person-link {display:flex;flex-direction:column;height:100%;padding:0;color:var(--kg-ink);text-decoration:none;}
.kg-person-image {position:relative;overflow:hidden;background:#e4e0d9;aspect-ratio:4/4.5;}
.kg-person-image img {display:block;width:100%;height:100%;object-fit:cover;object-position:center 22%;transition:transform .4s ease;}
.kg-person-arrow {position:absolute;right:20px;bottom:20px;width:48px;height:48px;display:grid;place-items:center;background:var(--kg-ink);color:#ead2ab;font-size:24px;transition:background-color .25s ease,color .25s ease;}
.kg-person-copy {display:flex;flex-direction:column;flex:1;border-top:3px solid var(--kg-gold);padding:24px 0 0;}
.entry-content .kg-person-copy h2 {font-size:clamp(26px,2.6vw,34px);line-height:1.25;margin:0 0 12px;min-height:2.5em;text-wrap:balance;}
.kg-person-copy .kg-team-role {font-size:15px;line-height:1.6;min-height:3.2em;font-weight:600;margin:0 0 16px;}
.kg-person-intro {font-size:16px;line-height:1.75;margin:0 0 18px;}
.kg-person-cta {display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;border-top:1px solid var(--kg-line);padding-top:14px;margin-top:auto;font-weight:700;font-size:15px;}
.kg-person-cta span {transition:transform .25s ease;}
.kg-person-link:hover .kg-person-image img,.kg-person-link:focus-visible .kg-person-image img {transform:scale(1.035);}
.kg-person-link:hover .kg-person-arrow,.kg-person-link:focus-visible .kg-person-arrow {background:#d6b98d;color:var(--kg-ink);}
.kg-person-link:hover .kg-person-cta span,.kg-person-link:focus-visible .kg-person-cta span {transform:translateX(5px);}
.kg-person-link:focus-visible {outline:3px solid var(--kg-gold);outline-offset:7px;}
.kg-profile-back {padding:28px 0 0;}
.kg-profile-back a {display:inline-flex;align-items:center;min-height:44px;color:var(--kg-ink);font-size:15px;}
.kg-profile-hero {display:grid;grid-template-columns:1.25fr 1fr;align-items:center;gap:64px;padding:32px 0 56px;}
.entry-content .kg-profile-hero h1 {font-size:clamp(34px,4.3vw,56px);line-height:1.15;letter-spacing:0;text-wrap:balance;}
.kg-profile-role {font-size:16px;font-weight:600;color:var(--kg-muted);}
.kg-profile-portrait {margin:0;border-bottom:3px solid var(--kg-gold);}
.kg-profile-portrait img {display:block;width:100%;aspect-ratio:4/5;object-fit:cover;object-position:center 22%;}
.kg-profile-section {display:grid;grid-template-columns:1fr 1.55fr;gap:64px;padding:44px 0;border-top:1px solid var(--kg-line);scroll-margin-top:140px;}
.entry-content .kg-profile-section h2 {font-size:clamp(27px,3vw,34px);line-height:1.25;text-wrap:balance;}
.kg-profile-text {min-width:0;font-size:17px;line-height:1.8;}
.entry-content .kg-profile-text p {margin-bottom:24px;}
.entry-content .kg-profile-text h3 {font-size:23px;margin-top:28px;}
.entry-content .kg-profile-text h3:first-child {margin-top:0;}
.kg-home-person span {display:block;font-size:15px;line-height:1.7;margin-top:3px;}
.kg-home-person a {color:var(--kg-ink);text-decoration:none;}
.kg-home-person a:hover {text-decoration:underline;}
@media(max-width:720px) {
 .kg-people-grid {gap:28px;}
 .kg-profile-hero {gap:28px;}
 .kg-profile-section {grid-template-columns:1fr;gap:12px;padding:32px 0;}
}
@media(max-width:600px) {
 .kg-people-grid {grid-template-columns:1fr;gap:40px;margin-bottom:40px;}
 .kg-person-image {aspect-ratio:4/4.2;}
 .entry-content .kg-person-copy h2,.kg-person-copy .kg-team-role {min-height:0;}
 .kg-profile-hero {grid-template-columns:1fr;padding:24px 0 36px;}
 .kg-profile-portrait {max-width:420px;}
 .kg-profile-portrait img {aspect-ratio:4/4.2;}
}
@media(prefers-reduced-motion:reduce) {
 .kg-person-image img,.kg-person-arrow,.kg-person-cta span {transition:none!important;transform:none!important;}
}
.kg-team-principles > h2 {margin-bottom:28px;}
.kg-principles-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px;}
.kg-principles-grid h3 {font-size:25px;line-height:1.3;max-width:7.5em;justify-self:center;text-wrap:balance;}
.kg-principles-grid p {font-size:16px;line-height:1.8;}
@media(max-width:720px) {.kg-principles-grid {grid-template-columns:1fr;gap:16px;}}
.kg-profile-nav {display:flex;flex-wrap:wrap;gap:8px 24px;border-top:1px solid var(--kg-line);padding:16px 0;}
.kg-profile-nav a {display:inline-flex;align-items:center;min-height:44px;font-size:15px;font-weight:600;color:var(--kg-ink);}
.kg-selected-works ul {padding-left:24px;margin:0 0 28px;}
.kg-selected-works li {padding-left:4px;margin-bottom:16px;}
.entry-content .kg-team-principles > h2 {text-align:center;}
.entry-content .kg-page .kg-principles-grid h3,
.entry-content .kg-page .kg-principles-grid p {text-align:center!important;}
/* Shared rows align descriptions even when a principle title wraps. */
.kg-principles-grid {grid-template-rows:auto auto;row-gap:16px;}
.kg-principles-grid > div {display:grid;grid-row:span 2;grid-template-rows:subgrid;row-gap:16px;}
.entry-content .kg-principles-grid h3,.entry-content .kg-principles-grid p {margin:0;}
@media(min-width:800px) {
 .entry-content .kg-person-copy h2 {font-size:clamp(23px,2.35vw,30px);min-height:0;white-space:nowrap;}
 .kg-person-copy .kg-team-role {min-height:0;white-space:nowrap;}
}
@media(min-width:800px) and (max-width:899px) {.kg-person-copy .kg-team-role {font-size:13.5px;}}
@media(max-width:799px) {
 .kg-people-grid {grid-template-columns:1fr;max-width:560px;margin-left:auto;margin-right:auto;}
 .entry-content .kg-person-copy h2,.kg-person-copy .kg-team-role {min-height:0;}
}
@media(max-width:720px) {
 .kg-principles-grid {grid-template-rows:none;row-gap:28px;}
 .kg-principles-grid > div {grid-row:auto;grid-template-rows:auto auto;}
}
/* Give professional identification room beside the portrait in a split panel. */
.kg-profile-hero {grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:40px;}
.entry-content .kg-profile-hero h1 {font-size:clamp(28px,3.3vw,42px);}
@media(min-width:800px) {.kg-profile-hero h1,.kg-profile-role {white-space:nowrap;}}
@media(min-width:800px) and (max-width:899px) {.kg-profile-role {font-size:14.5px;}}
@media(max-width:799px) {.kg-profile-hero {grid-template-columns:1fr;gap:28px;}}
.kg-profile-hero {grid-template-columns:minmax(0,1.8fr) minmax(0,1fr);gap:32px;}
.entry-content .kg-profile-hero .kg-profile-role {font-size:15px;}
@media(max-width:799px) {.kg-profile-hero {grid-template-columns:1fr;}}

/* Direct personal contact, using the shared automatic mail icon. */
.entry-content .kg-profile-email {margin:18px 0;font-size:16px;}
.kg-profile-email a {min-height:44px;color:var(--kg-ink);text-underline-offset:4px;}

.kg-profile-email a:is(:hover,:focus-visible) {color:#80613e;text-decoration:underline;text-decoration-thickness:2px;}

/* Independent mail link over each portrait: never nest anchors in the card link. */
.kg-people-grid .kg-person-card {position:relative;}
.entry-content .kg-page a.kg-team-email {position:absolute;top:16px;right:16px;display:grid;place-items:center;width:44px;height:44px;min-height:44px;gap:0;background:var(--kg-ink);color:#ead2ab;border:1px solid #d6b98d;text-decoration:none;}
.kg-team-email .kg-action-label {display:none;}
.entry-content .kg-page a.kg-team-email:is(:hover,:focus-visible) {background:#d6b98d;color:var(--kg-ink);}

/* Dynamic card blocks are grid items; core flow margins must not offset a row. */
.kg-people-grid.is-layout-flow > .wp-block-kg-person-card {margin-block-start:0;margin-block-end:0;}
