/* People, Governance & Institutional Lineage — bespoke secondary archive + homepage gallery teaser (1.12.0). */
.people-page {
  overflow-wrap: anywhere;
  font-variant-numeric: lining-nums;
}

.people-page [id] {
  scroll-margin-top: 9.25rem;
}

.people-hero {
  position: relative;
  min-height: min(50rem, 96svh);
  display: grid;
  align-items: end;
  padding: 10.25rem max(1.25rem, calc((100vw - 75rem) / 2)) 4.25rem;
  overflow: hidden;
  background: #06131f;
  color: #f6ecda;
}

.people-hero-painting {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
}

.people-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 16, 26, .95) 0%, rgba(6, 20, 32, .84) 44%, rgba(6, 20, 32, .24) 78%, rgba(6, 20, 32, .42) 100%),
    linear-gradient(180deg, rgba(4, 13, 22, .5) 0%, rgba(4, 13, 22, .12) 38%, rgba(5, 16, 26, .9) 100%);
  pointer-events: none;
}

.people-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 75rem;
}

.people-hero .kicker {
  color: #d8bb82;
}

.people-hero h1 {
  margin: 0;
  max-width: 15em;
  color: #f7ecda;
  font-family: var(--cjk);
  font-size: clamp(2.25rem, 4.6vw, 4.1rem);
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: .03em;
  text-wrap: balance;
}

html[lang^="en"] .people-hero h1 {
  font-family: var(--serif);
  letter-spacing: .015em;
}

.people-hero-lead {
  max-width: 38em;
  margin: 1.35rem 0 2rem;
  color: #e3d9c7;
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.9;
}

.people-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 56rem;
  margin: 2.75rem 0 0;
  padding-top: 1.5rem;
  border-top: .0625rem solid rgba(210, 183, 126, .28);
}

.people-stat dt {
  color: #e2c48b;
  font: 600 clamp(1.45rem, 2.3vw, 2rem)/1.2 var(--serif);
  font-variant-numeric: lining-nums;
  letter-spacing: .04em;
}

.people-stat dd {
  margin: .35rem 0 0;
  color: #d0c4b1;
  font-size: .875rem;
  line-height: 1.65;
}

.people-subnav {
  position: sticky;
  top: 4.35rem;
  z-index: 40;
  background: rgba(6, 21, 34, .95);
  border-top: .0625rem solid rgba(210, 183, 126, .18);
  border-bottom: .0625rem solid rgba(210, 183, 126, .24);
  backdrop-filter: blur(10px);
}

.people-subnav-inner {
  width: min(75rem, calc(100% - 2.5rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.people-subnav a {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .95rem 1.1rem;
  color: #e8dcc6;
  border-right: .0625rem solid rgba(210, 183, 126, .12);
  font-size: .875rem;
  line-height: 1.35;
  text-decoration: none;
  transition: background-color .22s ease, color .22s ease;
}

.people-subnav a:first-child {
  border-left: .0625rem solid rgba(210, 183, 126, .12);
}

.people-subnav a b {
  color: #d8bb82;
  font: 600 .95rem/1 var(--serif);
  font-variant-numeric: lining-nums;
  letter-spacing: .08em;
}

.people-subnav a:hover,
.people-subnav a.is-section-active {
  background: rgba(182, 144, 85, .14);
  color: #fff2dc;
}

.people-leadership-section {
  background: #f5f0e5;
}

.people-leadership-section .yan-ko-profile:last-child {
  margin-bottom: 0;
}

.people-gov-section {
  background: linear-gradient(135deg, #071622 0%, #0d2a41 100%);
  border-top: .0625rem solid rgba(210, 183, 126, .2);
  border-bottom: .0625rem solid rgba(210, 183, 126, .2);
}

.people-gov-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.people-gov-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.6rem, 2.6vw, 2.25rem);
  background: rgba(8, 26, 41, .78);
  border: .0625rem solid rgba(210, 183, 126, .34);
  box-shadow: inset 0 0 0 .1875rem rgba(210, 183, 126, .08);
  color: #efe4cf;
}

.people-gov-index {
  color: #d8bb82;
  font: 600 1.25rem/1 var(--serif);
  font-variant-numeric: lining-nums;
  letter-spacing: .12em;
}

.people-gov-card h3 {
  margin: .9rem 0 .8rem;
  color: #f7ecda;
  font-size: clamp(1.25rem, 1.9vw, 1.5rem);
  font-weight: 500;
  line-height: 1.4;
}

.people-gov-card p {
  margin: 0 0 1.35rem;
  color: #d5cdbd;
  font-size: .95rem;
  line-height: 1.85;
}

.people-gov-meta {
  margin-top: auto;
  padding-top: .95rem;
  border-top: .0625rem solid rgba(210, 183, 126, .2);
  color: #d2b47c;
  font: 600 .6875rem/1.45 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.people-lineage-section {
  background: #ede4d2;
  border-bottom: .0625rem solid rgba(166, 131, 76, .28);
}

.people-lineage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.people-lineage-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #faf6ec 0%, #f1e8d6 100%);
  border: .0625rem solid rgba(169, 140, 90, .42);
  box-shadow: 0 .875rem 2.25rem rgba(24, 18, 10, .06);
  color: #162433;
}

.people-lineage-portrait {
  position: relative;
  margin: 0;
  padding: .75rem .75rem 0;
  background: #0d1c29;
}

.people-lineage-portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center 16%;
  border: .0625rem solid rgba(210, 183, 126, .35);
}

.people-lineage-portrait figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem .45rem .85rem;
  color: #dfd4be;
}

.people-lineage-portrait figcaption strong {
  color: #e4c78d;
  font: 600 1.2rem/1 var(--serif);
  font-variant-numeric: lining-nums;
  letter-spacing: .08em;
}

.people-lineage-portrait figcaption span {
  font: 600 .6875rem/1.35 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: right;
  color: #d6cbb7;
}

.people-lineage-body {
  padding: clamp(1.5rem, 2.5vw, 2.15rem);
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.people-lineage-body h3 {
  margin: 0 0 .75rem;
  color: #142230;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  font-weight: 600;
  line-height: 1.25;
}

.people-lineage-summary {
  margin: 0 0 1.25rem;
  color: #4a453d;
  font-size: .96rem;
  line-height: 1.88;
}

.people-lineage-milestones {
  list-style: none;
  margin: auto 0 0;
  padding: 1.05rem 0 0;
  border-top: .0625rem solid rgba(139, 107, 62, .25);
  display: grid;
  gap: .55rem;
}

.people-lineage-milestones li {
  position: relative;
  padding-left: 1rem;
  color: #2f2c25;
  font-size: .88rem;
  line-height: 1.65;
}

.people-lineage-milestones li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: .35rem;
  height: .35rem;
  background: #9f793f;
  transform: rotate(45deg);
}

.people-closing-section {
  background: #f5f0e5;
}

.people-closing-card {
  display: grid;
  grid-template-columns: 1.25fr auto;
  gap: 2.25rem;
  align-items: center;
  padding: clamp(2rem, 4vw, 3.5rem);
  background:
    radial-gradient(circle at 86% 18%, rgba(182, 144, 85, .15), transparent 24rem),
    linear-gradient(135deg, #081a29 0%, #0f2b41 100%);
  border: .0625rem solid rgba(196, 163, 106, .48);
  box-shadow:
    inset 0 0 0 .25rem rgba(8, 24, 38, .92),
    inset 0 0 0 .3125rem rgba(210, 183, 126, .26),
    0 1.5rem 3.25rem rgba(6, 16, 26, .18);
  color: #f3e8d4;
}

.people-closing-card .kicker {
  color: #d8bb82;
}

.people-closing-card h2 {
  color: #f7ecda;
  margin-bottom: .9rem;
}

.people-closing-card .lead {
  color: #d8d0c0;
  max-width: 42em;
  margin: 0;
}

.people-closing-actions {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  min-width: 15.5rem;
}

@media (max-width: 62rem) {
  .people-gov-grid {
    grid-template-columns: 1fr;
  }
  .people-closing-card {
    grid-template-columns: 1fr;
  }
  .people-closing-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 56.25rem) {
  .people-subnav {
    top: 4rem;
    overflow-x: auto;
  }
  .people-subnav-inner {
    min-width: max-content;
  }
  .people-stats,
  .people-lineage-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 40rem) {
  .people-page [id] {
    scroll-margin-top: 8.5rem;
  }
  .people-hero {
    padding-top: 8.5rem;
    padding-bottom: 3rem;
  }
  .people-subnav a {
    padding: .85rem .95rem;
  }
}
