/* ============================================
   INNER PAGES — shared components in the homepage (v4) language.
   Loaded after each page's own <style>, so these rules win where they overlap.
   Tokens come from styles.css (:root custom properties).

   ed-  editorial section: big light number, gold small-caps label, Cormorant title
   tm-  people: portrait cards, monogram tiles, committee directory
   ============================================ */

/* ---------- Editorial section (header column + content column) ---------- */
.ed-section {
  position: relative;
  padding: 9rem 2rem;
  background: #FFFFFF;
}

.ed-section--cream { background: var(--color-bg-cream); }

.ed-section--dark {
  background: var(--color-primary, #10151D);
  color: rgba(255, 255, 255, 0.82);
}

.ed-section__inner {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0 2rem;
  align-items: start;
}

.ed-section__header {
  grid-column: 1 / 5;
  position: sticky;
  top: 120px;
}

.ed-section__content { grid-column: 6 / 13; }

.ed-section__inner--stacked .ed-section__header {
  grid-column: 1 / 8;
  position: static;
  margin-bottom: 4.5rem;
}

.ed-section__inner--stacked .ed-section__content { grid-column: 1 / -1; }

.ed-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 100;
  line-height: 0.8;
  color: var(--color-gold-text);
  opacity: 0.18;
  margin-bottom: 0.75rem;
}

.ed-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-gold-text);
  margin-bottom: 1rem;
}

.ed-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 100;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--color-primary);
  margin: 0 0 1.5rem;
}

.ed-rule {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--color-gold);
  margin: 0 0 1.75rem;
}

.ed-desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--color-text);
  margin: 0;
}

.ed-section--dark .ed-title { color: #FFFFFF; }
.ed-section--dark .ed-desc { color: rgba(255, 255, 255, 0.7); }
.ed-section--dark .ed-label { color: var(--color-gold-light); }
.ed-section--dark .ed-number { color: var(--color-gold-light); opacity: 0.25; }

/* ---------- People: portrait cards ---------- */
.tm-people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4.5rem 2.75rem;
}

/* Offset the second column, like the homepage's asymmetric editorial rhythm */
.tm-people > .tm-person:nth-child(even) { margin-top: 5rem; }

.tm-person { margin: 0; }

.tm-person__portrait {
  position: relative;
  margin: 0 0 1.75rem;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-bg-warm);
}

.tm-person__portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  filter: saturate(0.92) contrast(1.02);
  transform: scale(1.02);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

.tm-person:hover .tm-person__portrait img {
  transform: scale(1.06);
  filter: saturate(1) contrast(1.04);
}

/* Couples photographed side by side read better a little wider */
.tm-person__portrait--wide img { object-position: center 30%; }

/* Monogram tile for members without a photograph */
.tm-person__portrait--monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(164, 131, 42, 0.10) 0%, transparent 60%),
    var(--color-bg-warm);
}

.tm-person__portrait--monogram::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(164, 131, 42, 0.35);
  border-radius: 2px;
}

.tm-monogram {
  position: relative;
  font-family: var(--font-heading);
  font-size: clamp(4rem, 8vw, 6.5rem);
  font-weight: 100;
  letter-spacing: 4px;
  color: var(--color-gold-text);
  line-height: 1;
}

.ed-section--cream .tm-person__portrait--monogram { background-color: #FFFFFF; }

.tm-person__role {
  display: block;
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 300;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-gold-text);
  margin: 0 0 0.7rem;
}

.tm-person__name {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 1.9vw, 1.65rem);
  font-weight: 300;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--color-primary);
  margin: 0 0 1.1rem;
}

.tm-person__bio {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--color-text);
  margin: 0;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(164, 131, 42, 0.25);
}

/* ---------- Committee directory (dark band) ---------- */
.tm-directory {
  columns: 3 260px;
  column-gap: 3.5rem;
}

.tm-committee {
  break-inside: avoid;
  padding: 1.75rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.tm-committee__name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 300;
  line-height: 1.3;
  color: #FFFFFF;
  margin: 0 0 1rem;
}

.tm-committee__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tm-committee__list li {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 2.2;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- Partners: logo panel + editorial text, one rhythm ---------- */
.pt-list {
  max-width: 1300px;
  margin: 0 auto;
  padding: 3rem 2rem 7rem;
}

.pt-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0 2rem;
  align-items: center;
  padding: 4.5rem 0;
  border-top: 1px solid rgba(164, 131, 42, 0.2);
}

.pt-row:first-child { border-top: none; }

.pt-row__logo {
  grid-column: 1 / 5;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-cream);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.pt-row__logo img {
  max-width: 78%;
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.pt-row__body { grid-column: 6 / 12; }

.pt-row__name {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  font-weight: 300;
  letter-spacing: 1px;
  line-height: 1.2;
  color: var(--color-primary);
  margin: 0 0 1.25rem;
}

/* ---------- Partner logo band on a dark section (partner-with-us) ----------
   The old rule painted every logo white with filter: brightness(0) invert(1),
   which turned logos that have a solid background into grey rectangles. */
.ip-logos .ip-logos__grid { gap: 1.25rem; }

.ip-logos .ip-logos__grid img {
  box-sizing: content-box;
  height: 44px;
  width: auto;
  max-width: 120px;
  padding: 1.1rem 1.6rem;
  background: var(--color-bg-cream);
  border-radius: var(--radius);
  object-fit: contain;
  filter: none;
  opacity: 1;
  mix-blend-mode: normal;
  transition: transform 0.4s ease;
}

.ip-logos .ip-logos__grid img:hover { opacity: 1; transform: translateY(-2px); }

.ip-logos .ip-logos__link { color: var(--color-gold-light); border-bottom-color: rgba(196, 162, 78, 0.4); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .ed-section { padding: 7rem 2rem; }
  .ed-section__header,
  .ed-section__inner--stacked .ed-section__header {
    grid-column: 1 / -1;
    position: static;
    margin-bottom: 4rem;
    max-width: 640px;
  }
  .ed-section__content { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .ed-section { padding: 5rem 1.5rem; }
  .ed-number { font-size: 3.75rem; }
  .tm-people { grid-template-columns: 1fr; gap: 3.5rem; }
  .tm-people > .tm-person:nth-child(even) { margin-top: 0; }
  .tm-person__portrait { aspect-ratio: 1 / 1; }
  .pt-list { padding: 1rem 1.5rem 5rem; }
  .pt-row { padding: 3.5rem 0; }
  .pt-row__logo, .pt-row__body { grid-column: 1 / -1; }
  .pt-row__logo { margin-bottom: 2rem; aspect-ratio: 16 / 9; }
}

@media (prefers-reduced-motion: reduce) {
  .tm-person__portrait img { transition: none; transform: none; }
  .tm-person:hover .tm-person__portrait img { transform: none; }
}
