/* About our offices: the five pillars of the Alumni Relations Strategy (partials/offices_section.php)
   and the strategy context on the pillar Learn more pages (partials/pillar_learn_more.php). */
.os-intro, .os-jump, .os-pillars, .os-targets, .os-org {
  --os-serif: var(--ed-serif, "Fraunces", Georgia, serif);
  --os-oxide: #551516;
  --os-gold: #cb892c;
  --os-gold-text: #8a5a17;
  --os-line: #e7dcd1;
  --os-paper: #faf6f1;
  --os-sand: #f3ece3;
  --os-ink: #1f1a17;
  --os-muted: #5f5650;
}

.os-intro { max-width: 760px; margin: 0 0 1.75rem; }
.os-eyebrow {
  display: flex; align-items: center; gap: .65rem; margin: 0 0 .6rem;
  color: var(--os-gold-text); font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.os-eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--os-gold); }
.os-intro h2 {
  margin: 0 0 .8rem; font-family: var(--os-serif); font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 700; line-height: 1.1; color: var(--os-oxide); letter-spacing: -.01em;
}
.os-lead { margin: 0 0 .7rem; font-size: 1.04rem; line-height: 1.65; color: var(--os-ink); }
.os-lead--small { font-size: .92rem; color: var(--os-muted); }

/* Jump links: one chip per pillar */
.os-jump { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .6rem; margin: 0 0 1.5rem; }
.os-jump a {
  display: flex; align-items: flex-start; gap: .6rem; padding: .8rem .85rem;
  border: 1px solid var(--os-line); border-radius: 14px; background: #fff;
  color: var(--os-ink); font-size: .82rem; font-weight: 600; line-height: 1.3; text-decoration: none;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.os-jump a span {
  flex: 0 0 auto; display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%;
  background: var(--os-oxide); color: #fff; font-family: var(--os-serif); font-size: .95rem; font-weight: 700;
}
.os-jump a:hover, .os-jump a:focus-visible { border-color: var(--os-gold); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(85, 21, 22, .08); }

/* Pillar cards: compact. Photo strip, title, one-line summary, the people who manage it. */
.os-pillars { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .85rem; margin: 0 0 2.25rem; }
.os-pillar {
  grid-column: span 2; display: flex; flex-direction: column; gap: .6rem; overflow: hidden;
  padding: 0 1rem .9rem; border: 1px solid var(--os-line); border-radius: 16px; background: #fff;
  box-shadow: 0 8px 22px rgba(85, 21, 22, .05); scroll-margin-top: 96px;
}
/* Second row: two wider cards so five pillars fill the grid evenly */
.os-pillar:nth-child(4), .os-pillar:nth-child(5) { grid-column: span 3; }
.os-pillar__media {
  position: relative; height: 120px; margin: 0 -1rem .15rem; overflow: hidden;
  background: var(--os-sand) url("../img/news-placeholder.jpg") center / cover no-repeat;
}
.os-pillar__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .4s ease; }
/* The two wide cards show a thin band of the photo: keep faces in it */
.os-pillar:nth-child(4) .os-pillar__media img { object-position: center 15%; }
.os-pillar:nth-child(5) .os-pillar__media img { object-position: center 8%; }
.os-pillar:hover .os-pillar__media img { transform: scale(1.03); }
.os-pillar__head { display: flex; align-items: center; gap: .6rem; }
.os-pillar__num {
  flex: 0 0 auto; font-family: var(--os-serif); font-size: 1.75rem; font-weight: 700; line-height: 1;
  color: var(--os-gold); letter-spacing: -.02em;
}
.os-pillar__tag { margin: 0 0 .1rem; color: var(--os-gold-text); font-size: .64rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.os-pillar__head h3 { margin: 0; font-family: var(--os-serif); font-size: 1.02rem; font-weight: 700; line-height: 1.2; color: var(--os-oxide); }
.os-pillar__summary { margin: 0; font-size: .84rem; line-height: 1.5; color: #4a413b; }

.os-managers { display: grid; gap: .35rem; padding-top: .6rem; border-top: 1px dashed var(--os-line); }
.os-managers__label { margin: 0; color: var(--os-muted); font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.os-manager { display: flex; align-items: center; gap: .6rem; padding: .4rem .5rem; border-radius: 12px; background: var(--os-paper); }
.os-manager .os-manager__photo {
  width: 40px; height: 40px; min-width: 40px; margin: 0; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; background: var(--os-sand); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--os-line);
}
.os-manager .os-manager__photo img { width: 100%; height: 100%; object-fit: cover; }
.os-manager .os-manager__photo .alumni-team-avatar__initials { font-size: .8rem; font-weight: 700; color: var(--os-oxide); }
.os-manager__body { display: grid; gap: .05rem; min-width: 0; flex: 1 1 auto; }
.os-manager__body strong { font-size: .84rem; line-height: 1.25; color: var(--os-ink); }
.os-manager__role { font-size: .72rem; line-height: 1.3; font-weight: 600; color: var(--os-oxide); }
/* Email and LinkedIn as small round icon buttons at the end of the row */
.os-manager .alumni-team-links { display: flex; flex: 0 0 auto; gap: .3rem; margin: 0; }
.os-manager .alumni-team-links__btn { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border-radius: 50%; }
.os-manager .alumni-team-links__btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.os-manager .alumni-team-links__btn svg { width: 14px; height: 14px; margin: 0; }

.os-pillar__more { align-self: flex-start; margin-top: auto; color: var(--os-oxide); font-size: .8rem; font-weight: 700; text-decoration: none; }
.os-pillar__more:hover { color: var(--os-gold-text); text-decoration: underline; }
/* Pillar 1 and 5 frame the others: a warm tint so the foundation and governance stand out */
.os-pillar--data, .os-pillar--governance { background: linear-gradient(180deg, #fffaf4 0%, #fff 70%); }

/* Learn more pages: targets under the strategy points */
.os-targets { display: flex; flex-wrap: wrap; gap: .6rem; margin: .4rem 0 1.1rem; padding: 0; }
.os-targets div { flex: 1 1 150px; padding: .75rem .9rem; border-radius: 14px; background: var(--os-paper); border: 1px solid var(--os-line); }
.os-targets dt { font-family: var(--os-serif); font-size: 1.55rem; font-weight: 700; line-height: 1.1; color: var(--os-oxide); }
.os-targets dd { margin: .2rem 0 0; font-size: .8rem; line-height: 1.35; color: var(--os-muted); }

@media (max-width: 1100px) {
  .os-jump { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .os-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .os-pillar, .os-pillar:nth-child(4), .os-pillar:nth-child(5) { grid-column: auto; }
  .os-pillar:nth-child(5) { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .os-jump { display: flex; overflow-x: auto; gap: .5rem; padding-bottom: .35rem; scroll-snap-type: x mandatory; }
  .os-jump a { flex: 0 0 72%; scroll-snap-align: start; }
  .os-pillars { grid-template-columns: 1fr; }
  .os-pillar__media { height: 110px; }
  .os-targets div { flex: 1 1 calc(50% - .6rem); }
}

/* Meet the team: organogram (Director, then each lead with their team underneath) */
.os-org { --os-wire: #d9c6b4; margin-top: 1.25rem; }
.os-org ul { list-style: none; margin: 0; padding: 0; }
.os-org__top { display: flex; justify-content: center; position: relative; padding-bottom: 22px; }
.os-org__top::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 2px; height: 22px; background: var(--os-wire); transform: translateX(-1px); }
.os-org__branches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 .75rem; }
.os-org__branch { position: relative; padding-top: 22px; }
/* The horizontal wire joining all leads, and the drop from it to each lead */
.os-org__branch::before { content: ""; position: absolute; top: 0; left: -.375rem; right: -.375rem; height: 2px; background: var(--os-wire); }
.os-org__branch:first-child::before { left: 50%; }
.os-org__branch:last-child::before { right: 50%; }
.os-org__branch::after { content: ""; position: absolute; top: 0; left: 50%; width: 2px; height: 22px; background: var(--os-wire); transform: translateX(-1px); }
/* Team members hang off a line under their lead */
.os-org__members { position: relative; display: grid; gap: .5rem; margin: .5rem 0 0 1.1rem !important; padding-left: .9rem !important; border-left: 2px solid var(--os-wire); }
.os-org__members > li { position: relative; }
.os-org__members > li::before { content: ""; position: absolute; left: calc(-.9rem - 2px); top: 50%; width: .9rem; height: 2px; background: var(--os-wire); }

.os-org-card {
  display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem; border: 1px solid var(--os-line); border-radius: 14px;
  background: #fff; box-shadow: 0 6px 16px rgba(85, 21, 22, .05); min-width: 0;
}
.os-org-card .os-org-card__photo {
  width: 44px; height: 44px; min-width: 44px; margin: 0; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; background: var(--os-sand); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--os-line);
}
.os-org-card .os-org-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.os-org-card .os-org-card__photo .alumni-team-avatar__initials { font-size: .82rem; font-weight: 700; color: var(--os-oxide); }
.os-org-card__body { display: grid; gap: .1rem; min-width: 0; }
.os-org-card__body strong { font-size: .84rem; line-height: 1.25; color: var(--os-ink); }
.os-org-card__body > span { font-size: .72rem; line-height: 1.3; font-weight: 600; color: var(--os-oxide); }
.os-org-card .alumni-team-links { display: flex; gap: .3rem; margin: .3rem 0 0; justify-content: flex-start; }
.os-org-card .alumni-team-links__btn { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border-radius: 50%; }
.os-org-card .alumni-team-links__btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.os-org-card .alumni-team-links__btn svg { width: 13px; height: 13px; margin: 0; }
/* The Director's card: larger, oxide band */
.os-org-card--top { min-width: 300px; padding: .85rem 1rem; background: linear-gradient(135deg, #551516, #7a2a1c); border-color: transparent; color: #fff; }
.os-org-card--top .os-org-card__photo { width: 60px; height: 60px; min-width: 60px; }
.os-org-card--top .os-org-card__body strong { font-size: 1rem; color: #fff; }
.os-org-card--top .os-org-card__body > span { color: #f4d7a3; }
.os-org-card--lead { border-top: 3px solid var(--os-gold); }
.os-org-card--member { background: var(--os-paper); box-shadow: none; }

@media (max-width: 1100px) {
  .os-org__branches { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem .75rem; }
  /* Rows wrap, so the joining wire would mislead: each lead keeps only its own drop */
  .os-org__branch::before { display: none; }
}

@media (max-width: 700px) {
  /* Phone: a vertical tree. The Director on top, every lead on a line down the left, teams indented under them. */
  .os-org__top { justify-content: flex-start; padding-bottom: 0; }
  .os-org__top::after { display: none; }
  .os-org-card--top { min-width: 0; width: 100%; }
  .os-org__branches { grid-template-columns: 1fr; gap: .6rem; margin: .6rem 0 0 1.1rem; padding-left: .9rem; border-left: 2px solid var(--os-wire); }
  .os-org__branch { padding-top: 0; }
  .os-org__branch::after { top: 1.6rem; left: calc(-.9rem - 2px); width: .9rem; height: 2px; transform: none; }
}

/* Polish: end each team's wire at its last person, and keep the Director's buttons readable on the dark card */
.os-org__members { border-left: 0; }
.os-org__members > li::after { content: ""; position: absolute; left: calc(-.9rem - 2px); top: -.5rem; bottom: 0; width: 2px; background: var(--os-wire); }
.os-org__members > li:last-child::after { bottom: 50%; }
.os-org-card--top .alumni-team-links__btn { background: #fff; border-color: #fff; }
