/* Committee pages: profile cards and the bio window */

/* Hero: the committee's faces beside the title */
.ch { position: relative; display: grid; grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); align-items: center; gap: clamp(20px, 3vw, 44px); padding: clamp(96px, 16vh, 124px) var(--gutter) clamp(24px, 4vh, 44px); background: radial-gradient(52% 80% at 88% 18%, #d7ecf9 0%, rgba(215, 236, 249, 0) 72%), radial-gradient(40% 60% at 6% 80%, #e8f3fa 0%, rgba(232, 243, 250, 0) 72%), #fff; }
.ch__text { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(12px, 2.2vh, 22px); }
.ch__title { font: 800 min(5.2vw, 11.4vh)/1.2 var(--display); letter-spacing: -.035em; }
.ch__title .line { display: block; }
.ch__title em { font-style: normal; background: linear-gradient(100deg, #1f5191 0%, #29abe2 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ch__wall { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(6px, .7vw, 10px); max-width: 680px; margin-left: auto; }
.ch__wall span { flex: none; width: calc((100% - 7 * clamp(6px, .7vw, 10px)) / 8); overflow: hidden; aspect-ratio: 1; background: #fff; border-radius: 22%; box-shadow: 0 8px 20px rgba(16, 48, 90, .13); animation: chIn 1s var(--ease) both; animation-delay: calc(var(--n) * 45ms + 200ms); }
.ch__wall img { display: block; width: 100%; height: 100%; object-fit: cover; }
@keyframes chIn { from { opacity: 0; transform: translate3d(0, 16px, 0) scale(.94); } to { opacity: 1; transform: none; } }

.ch__wall--5 { max-width: 520px; }
.ch__wall--5 span { width: calc((100% - 4 * clamp(6px, .7vw, 10px)) / 5); }

/* Profiles */
.cmts { padding-block: clamp(36px, 5vw, 72px) clamp(64px, 8vw, 110px); background: linear-gradient(180deg, #fff 0%, #f2f8fc 12%, #f2f8fc 100%); }
.cmt + .cmt, .cmt-pair + .cmt, .cmt + .cmt-row { margin-top: clamp(40px, 5vw, 72px); }
.cmt__title { font-size: clamp(26px, 2.7vw, 38px); text-align: center; }
.cmt__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(12px, 1.4vw, 20px); margin-top: clamp(18px, 2.2vw, 30px); }
.pc { flex: 0 0 calc((100% - 3 * clamp(12px, 1.4vw, 20px)) / 4); min-width: 0; }
.cmt__grid--6 { max-width: calc((100% - 3 * clamp(12px, 1.4vw, 20px)) / 4 * 3 + 2 * clamp(12px, 1.4vw, 20px)); margin-inline: auto; }
.cmt__grid--6 .pc { flex-basis: calc((100% - 2 * clamp(12px, 1.4vw, 20px)) / 3); }
.cmt__grid--9 { max-width: calc((100% - 3 * clamp(12px, 1.4vw, 20px)) / 4 * 3 + 2 * clamp(12px, 1.4vw, 20px)); margin-inline: auto; }
.cmt__grid--9 .pc { flex-basis: calc((100% - 2 * clamp(12px, 1.4vw, 20px)) / 3); }
.cmt--solo { max-width: 640px; margin-inline: auto; }
.pc__link { position: relative; display: flex; flex-direction: column; align-items: center; height: 100%; padding: 0 16px 22px; overflow: hidden; text-align: center; background: #fff; border-radius: 22px; box-shadow: 0 10px 28px rgba(16, 58, 100, .08); transition: transform .7s var(--ease), box-shadow .7s var(--ease); }
.pc__band { position: absolute; left: 0; right: 0; top: 0; height: 88px; background: linear-gradient(120deg, #e4f2fb 0%, #cfe9f8 100%); transition: height .8s var(--ease); }
.pc__band::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, #0a2650 0%, #123f7a 58%, #1e7fc4 100%); opacity: 0; transition: opacity .7s ease; }
.pc__photo { position: relative; flex: none; display: block; width: 168px; aspect-ratio: 1; margin-top: 22px; overflow: hidden; background: #fff; border-radius: 26px; box-shadow: 0 0 0 5px #fff, 0 14px 30px rgba(16, 48, 90, .18); }
.pc__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pc__name { position: relative; margin: 18px 0 0; font: 700 18px/1.24 var(--display); letter-spacing: -.012em; color: var(--ink); transition: color .4s; }
.pc__role { position: relative; display: block; margin-top: 6px; font-size: 13.5px; font-weight: 500; line-height: 1.35; color: var(--ink-3); }
.pc__go { position: absolute; right: 12px; top: 12px; display: grid; place-items: center; width: 34px; height: 34px; font-size: 13px; color: var(--blue); background: #fff; border-radius: 50%; box-shadow: 0 4px 12px rgba(16, 58, 100, .12); transition: transform .6s var(--ease), color .3s, background .3s; }
.pc__link:hover, .pc__link:focus-visible { box-shadow: 0 22px 46px rgba(16, 58, 100, .16); transform: translateY(-5px); }
.pc__link:hover .pc__band::before, .pc__link:focus-visible .pc__band::before { opacity: 1; }
.pc__link:hover .pc__name { color: var(--blue); }
.pc__link:hover .pc__go { color: #fff; background: var(--sky); transform: rotate(45deg); }

/* The two chairs side by side */
.cmt-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); }
.cmt-pair .cmt + .cmt { margin-top: 0; }
.cmt--lead .pc { flex: 1 1 100%; }
.cmt--lead .pc__link { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 1fr 1fr; column-gap: clamp(16px, 2vw, 26px); align-items: center; justify-items: start; padding: 22px clamp(18px, 2vw, 28px); text-align: left; color: #fff; background: linear-gradient(120deg, #0a2650 0%, #123f7a 60%, #1e7fc4 100%); box-shadow: 0 18px 44px rgba(16, 48, 90, .2); }
.cmt--lead .pc__band { display: none; }
.cmt--lead .pc__photo { grid-row: 1 / span 2; width: 148px; margin: 0; box-shadow: 0 0 0 4px rgba(255, 255, 255, .9), 0 14px 30px rgba(3, 14, 32, .35); }
.cmt--lead .pc__name { align-self: end; margin: 0; padding-right: 30px; font-size: clamp(21px, 2vw, 27px); color: #fff; }
.cmt--lead .pc__role { align-self: start; margin-top: 8px; font-size: 14.5px; color: #9bdcf7; }
.cmt--lead .pc__link:hover .pc__name { color: #fff; }

/* The last three groups share one row */
/* .cmt-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); } */
.cmt-row {
    display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
  justify-content: center;
  gap: clamp(12px, 1.4vw, 20px);
}
.cmt-row .cmt + .cmt { margin-top: 0; }
.cmt--two { grid-column: span 2; }
.cmt-row .cmt { display: flex; flex-direction: column; justify-content: flex-end; }
.cmt-row .cmt__title { font-size: clamp(20px, 1.9vw, 26px); line-height: 1.2; text-wrap: balance; }
.cmt-row .pc { flex-basis: 100%; }
.cmt--two .pc { flex-basis: calc((100% - clamp(12px, 1.4vw, 20px)) / 2); }

/* Bio window */
.bv { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 16px; }
.bv[hidden], .bv-store[hidden] { display: none; }
.bv__bg { position: absolute; inset: 0; background: rgba(6, 20, 44, .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity .6s ease; }
.bv__win { position: relative; display: grid; grid-template-columns: 276px minmax(0, 1fr); width: min(100%, 1100px); height: min(100%, 680px); overflow: hidden; background: #fff; border-radius: 26px; box-shadow: 0 44px 110px rgba(3, 14, 32, .5); opacity: 0; transform: translate3d(0, 26px, 0) scale(.975); transition: opacity .6s ease, transform .85s cubic-bezier(.16, 1, .3, 1); }
.bv.is-open .bv__bg { opacity: 1; }
.bv.is-open .bv__win { opacity: 1; transform: none; }

.bv__rail { min-height: 0; padding: 14px 10px 18px; overflow-y: auto; color: #fff; background: linear-gradient(170deg, #0a2650 0%, #123f7a 70%, #154a8c 100%); scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .28) transparent; }
.bv__rail h3 { margin: 14px 8px 6px; font: 700 11px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #9bdcf7; }
.bv__rail h3:first-child { margin-top: 2px; }
.bv__rail button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; font-size: 13.5px; font-weight: 500; line-height: 1.2; text-align: left; color: rgba(255, 255, 255, .86); border-radius: 12px; transition: background .4s ease, color .3s; }
.bv__rail img { flex: none; width: 36px; height: 36px; object-fit: cover; background: #fff; border-radius: 10px; }
.bv__rail button:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.bv__rail button[aria-current='true'] { font-weight: 700; color: var(--blue-deep); background: #fff; }

.bv__main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.bv__bar { flex: none; display: flex; align-items: center; gap: 12px; padding: 14px 16px 12px clamp(20px, 2.6vw, 34px); border-bottom: 1px solid var(--line); }
.bv__logo { flex: none; width: auto; height: 26px; }
.bv__label { padding-left: 12px; font: 700 17px/1 var(--display); letter-spacing: -.01em; color: var(--ink); border-left: 1px solid var(--mist); }
.bv__label[hidden] { display: none; }
.bv__count { margin-left: auto; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.bv__close { flex: none; display: grid; place-items: center; width: 40px; height: 40px; font-size: 18px; color: var(--ink); background: var(--ice); border-radius: 50%; transition: transform .6s var(--ease), background .3s; }
.bv__close:hover { background: var(--ice-2); transform: rotate(90deg); }

.bv__pane { flex: 1; min-height: 0; padding: clamp(16px, 2.2vw, 26px) clamp(20px, 2.6vw, 34px); overflow-y: auto; transition: opacity .28s ease, transform .4s var(--ease); }
.bv__pane.is-swap { opacity: 0; transform: translate3d(calc(var(--dir, 1) * 18px), 0, 0); }
.bv__who { display: flex; align-items: center; gap: clamp(14px, 2vw, 24px); }
.bv__photo { flex: none; display: block; width: 132px; aspect-ratio: 1; overflow: hidden; background: var(--ice-2); border-radius: 22px; box-shadow: 0 12px 28px rgba(16, 48, 90, .18); }
.bv__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bv__group { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sky-text); }
.bv__who h2 { margin: 0; font: 800 clamp(24px, 2.5vw, 33px)/1.12 var(--display); letter-spacing: -.024em; color: var(--ink); }
.bv__role { margin: 7px 0 0; font-size: 15px; font-weight: 500; color: var(--ink-3); }
.bv__bio { margin-top: clamp(14px, 1.8vw, 22px); font-size: 15.5px; line-height: 1.68; color: var(--ink-2); }
.bv__bio p { margin: 0; }
.bv__bio p + p, .bv__bio ul { margin-top: 12px; }
.bv__bio a { font-weight: 600; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
/* No bio on the live page yet: the person takes the whole space */
.bv.is-nobio .bv__pane { display: grid; place-items: center; }
.bv.is-nobio .bv__who { flex-direction: column; text-align: center; }
.bv.is-nobio .bv__photo { width: 180px; }
.bv.is-nobio .bv__bio { display: none; }

.bv__nav { flex: none; display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; background: #f6fafd; border-top: 1px solid var(--line); }
.bv__nav button { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 6px 10px; font-size: 13.5px; font-weight: 600; color: var(--blue-deep); border-radius: 12px; transition: background .4s ease; }
.bv__nav button:hover { background: var(--ice-2); }
.bv__nav button .ico { flex: none; width: 17px; height: 17px; }
.bv__nav img { flex: none; width: 32px; height: 32px; object-fit: cover; background: #fff; border-radius: 9px; }
.bv__nav span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

@media (max-width: 1100px) {
  .pc { flex-basis: calc((100% - 2 * clamp(12px, 1.4vw, 20px)) / 3); }
  .cmt__grid--6, .cmt__grid--9 { max-width: none; }
  .cmt-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cmt--two { grid-column: 1 / -1; }
  .cmt--two .cmt__grid { max-width: 66%; margin-inline: auto; }
}
@media (max-width: 960px) {
  .ch { grid-template-columns: minmax(0, 1fr); padding-top: 104px; }
  .ch__text { align-items: center; text-align: center; }
  .ch__title { font-size: clamp(40px, 9.6vw, 66px); }
  .ch__title .line { display: inline-block; }
  .ch__wall { margin-inline: auto; width: 100%; }
  .bv__win { grid-template-columns: 220px minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .ch { padding-inline: 16px; }
  .ch__title { font-size: 42px; }
  .ch__wall { gap: 6px; }
  .ch__wall span { width: calc((100% - 5 * 6px) / 6); }
  .ch__wall--5 { max-width: 100%; }
  .ch__wall--5 span { width: calc((100% - 4 * 6px) / 5); }
  .cmt__title { font-size: 26px; }
  .pc, .cmt__grid--6 .pc, .cmt__grid--9 .pc, .cmt--two .pc, .cmt-row .pc { flex-basis: calc((100% - clamp(12px, 1.4vw, 20px)) / 2); }
  .cmt__grid { justify-content: center; }
  .pc__link { padding: 0 8px 14px; border-radius: 16px; }
  .pc__band { height: 62px; }
  .pc__photo { width: min(100%, 118px); margin-top: 14px; border-radius: 20px; }
  .pc__name { margin-top: 12px; font-size: 15px; }
  .pc__role { margin-top: 4px; font-size: 12px; }
  .pc__go { right: 7px; top: 7px; width: 26px; height: 26px; font-size: 11px; }
  .cmt-pair { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .cmt--lead .pc__photo { width: 100px; border-radius: 20px; }
  .cmt--lead .pc__link { padding: 16px; }
  .cmt-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 12px; }
  .cmt-row .pc { flex-basis: 100%; }
  .cmt--two .cmt__grid { max-width: none; }
  .cmt--two .pc { flex-basis: calc((100% - clamp(12px, 1.4vw, 20px)) / 2); }
  .cmt-row .cmt__title { font-size: 19px; }

  /* Window fills the phone, with every person a tap away along the top */
  .bv { padding: 0; }
  .bv__win { display: flex; flex-direction: column-reverse; width: 100%; height: 100%; border-radius: 0; }
  .bv__rail { flex: none; display: flex; gap: 6px; padding: 8px 12px; overflow-x: auto; overflow-y: hidden; background: linear-gradient(100deg, #0a2650, #154a8c); scrollbar-width: none; }
  .bv__rail::-webkit-scrollbar { display: none; }
  .bv__rail h3 { display: none; }
  .bv__rail button { flex: none; width: auto; padding: 3px; border-radius: 12px; }
  .bv__rail button span { display: none; }
  .bv__rail img { width: 42px; height: 42px; }
  .bv__main { flex: 1; }
  .bv__bar { padding: 10px 10px 10px 16px; }
  .bv__logo { height: 22px; }
  .bv__label { font-size: 15px; padding-left: 10px; }
  .bv__pane { padding: 16px; }
  .bv__who { flex-direction: row; gap: 14px; }
  .bv__photo { width: 96px; border-radius: 18px; }
  .bv__who h2 { font-size: 21px; }
  .bv__role { font-size: 13.5px; }
  .bv.is-nobio .bv__photo { width: 170px; }
  .bv__bio { font-size: 15px; line-height: 1.62; }
  .bv__nav { padding: 6px 8px; }
  .bv__nav button { flex: 1 1 50%; max-width: 50%; padding: 6px; font-size: 12.5px; }
  .bv__nav button:last-child { justify-content: flex-end; }
  .bv__nav img { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ch__wall span { animation: none; }
  .bv__bg, .bv__win, .bv__pane { transition: none; }
}
