/* Nichols WD for TCDC — Board Members. Scoped to [tcdc_board]. */
.tcdc-board,
.tcdc-board-modal {
  --tcdc-board-navy: #111c33;
  --tcdc-board-green: #32643e;
  --tcdc-board-muted: #526057;
  --tcdc-board-soft: #f5f7f3;
  --tcdc-board-line: #dce3da;
  color: var(--tcdc-board-navy);
  font-family: avenir-next-lt-pro, "Avenir Next", Avenir, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
}

.tcdc-board { width: 100%; margin: 0; padding: 0 3em; }
.tcdc-board [hidden] { display: none !important; }

.tcdc-board-modal,
.tcdc-board-modal *,
.tcdc-board-modal *::before,
.tcdc-board-modal *::after,
.tcdc-board,
.tcdc-board *,
.tcdc-board *::before,
.tcdc-board *::after { box-sizing: border-box; }

.tcdc-board .tcdc-board__header { margin: 0 0 32px; }

.tcdc-board .tcdc-board__accent {
  display: block;
  width: 60px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 2px;
  background: var(--tcdc-board-green);
}

.tcdc-board .tcdc-board__heading {
  margin: 0;
  padding: 0;
  color: var(--tcdc-board-navy);
  font: 800 clamp(32px, 4vw, 52px) / 1.1 avenir-next-lt-pro, "Avenir Next", Avenir, sans-serif;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

.tcdc-board .tcdc-board__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 28px;
}

.tcdc-board--columns-2 .tcdc-board__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tcdc-board--columns-4 .tcdc-board__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.tcdc-board .tcdc-board__card {
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--tcdc-board-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 18px rgb(17 28 51 / 4%);
  transition: border-color .25s ease, box-shadow .3s ease;
}

.tcdc-board .tcdc-board__portrait {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 3px solid var(--tcdc-board-green);
  background: var(--tcdc-board-soft);
}

:is(.tcdc-board, .tcdc-board-modal) .tcdc-board__image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center 25%;
}

:is(.tcdc-board, .tcdc-board-modal) .tcdc-board__placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: end center;
  background: linear-gradient(135deg, #eef2eb, #e2e9df);
}

:is(.tcdc-board, .tcdc-board-modal) .tcdc-board__silhouette {
  position: relative;
  width: 55%;
  height: 43%;
  border-radius: 50% 50% 0 0;
  background: #c2cfbd;
}

:is(.tcdc-board, .tcdc-board-modal) .tcdc-board__silhouette::before {
  position: absolute;
  bottom: 108%;
  left: 30%;
  width: 40%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #c2cfbd;
  content: "";
}

.tcdc-board .tcdc-board__content { padding: clamp(22px, 2.3vw, 30px); }

:is(.tcdc-board, .tcdc-board-modal) .tcdc-board__name {
  margin: 0 0 8px;
  padding: 0;
  color: var(--tcdc-board-navy);
  font-family: inherit;
  font-size: clamp(24px, 2.1vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}

:is(.tcdc-board, .tcdc-board-modal) .tcdc-board__title {
  margin: 0;
  padding: 0;
  color: var(--tcdc-board-green);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

:is(.tcdc-board, .tcdc-board-modal) .tcdc-board__organization {
  margin: 4px 0 0;
  padding: 0;
  color: var(--tcdc-board-muted);
  font-size: 16px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.tcdc-board .tcdc-board__details,
:is(.tcdc-board, .tcdc-board-modal) .tcdc-board__bio--full {
  margin: 22px 0 0;
  padding: 0;
  border-top: 1px solid var(--tcdc-board-line);
}

.tcdc-board .tcdc-board__summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0 0;
  color: var(--tcdc-board-green);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
  touch-action: manipulation;
}

.tcdc-board .tcdc-board__summary::-webkit-details-marker { display: none; }
.tcdc-board .tcdc-board__summary::marker { content: ""; }
.tcdc-board .tcdc-board__summary:hover > span:first-child { text-decoration: underline; text-underline-offset: 4px; }

.tcdc-board .tcdc-board__toggle {
  position: relative;
  flex: 0 0 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--tcdc-board-soft);
}

.tcdc-board .tcdc-board__toggle::before,
.tcdc-board .tcdc-board__toggle::after {
  position: absolute;
  top: 13px;
  left: 8px;
  width: 12px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  content: "";
}

.tcdc-board .tcdc-board__toggle::after { transform: rotate(90deg); transition: transform .2s ease; }
.tcdc-board .tcdc-board__details[open] .tcdc-board__toggle::after { transform: rotate(0); }

:is(.tcdc-board, .tcdc-board-modal) .tcdc-board__bio {
  padding-top: 18px;
  color: var(--tcdc-board-muted);
  font-size: 17px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

:is(.tcdc-board, .tcdc-board-modal) .tcdc-board__bio p { margin: 0 0 1em; padding: 0; }
:is(.tcdc-board, .tcdc-board-modal) .tcdc-board__bio > :last-child { margin-bottom: 0; }
:is(.tcdc-board, .tcdc-board-modal) .tcdc-board__bio ul,
:is(.tcdc-board, .tcdc-board-modal) .tcdc-board__bio ol { margin: 0 0 1em; padding: 0 0 0 1.3em; }
:is(.tcdc-board, .tcdc-board-modal) .tcdc-board__bio img { max-width: 100%; height: auto; }
:is(.tcdc-board, .tcdc-board-modal) .tcdc-board__bio a { color: var(--tcdc-board-green); text-decoration: underline; text-underline-offset: 4px; }
:is(.tcdc-board, .tcdc-board-modal) .tcdc-board__bio :where(h2, h3, h4) { margin: 1em 0 .5em; padding: 0; color: var(--tcdc-board-navy); font-family: inherit; font-size: 20px; line-height: 1.3; }

.tcdc-board .tcdc-board__summary:focus-visible,
:is(.tcdc-board, .tcdc-board-modal) a:focus-visible { outline: 3px solid var(--tcdc-board-green); outline-offset: 4px; border-radius: 2px; }

.tcdc-board .tcdc-board__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (hover: hover) and (pointer: fine) {
  .tcdc-board .tcdc-board__card:hover { border-color: #afc2aa; box-shadow: 0 10px 28px rgb(17 28 51 / 8%); }
}

@media (max-width: 1100px) {
  .tcdc-board--columns-4 .tcdc-board__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .tcdc-board { padding: 0 2em; }
  .tcdc-board .tcdc-board__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}

@media (max-width: 600px) {
  .tcdc-board { padding: 0 1em; }
  .tcdc-board .tcdc-board__grid { grid-template-columns: minmax(0, 1fr); }
  :is(.tcdc-board, .tcdc-board-modal) .tcdc-board__name { font-size: 26px; }
  .tcdc-board .tcdc-board__content { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .tcdc-board .tcdc-board__card,
  .tcdc-board .tcdc-board__toggle::after { transition: none; }
}

@media print {
  .tcdc-board { padding: 0; }
  .tcdc-board .tcdc-board__card { break-inside: avoid; box-shadow: none; }
  .tcdc-board .tcdc-board__details > .tcdc-board__bio { display: block !important; }
  .tcdc-board .tcdc-board__toggle { display: none; }
}


/* Popup controls; the native disclosure remains available without JavaScript. */
.tcdc-board .tcdc-board__open {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 52px;
  margin: 22px 0 0;
  padding: 16px 0 0;
  appearance: none;
  border: 0;
  border-top: 1px solid var(--tcdc-board-line);
  border-radius: 0;
  background: transparent;
  color: var(--tcdc-board-green);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}
.tcdc-board .tcdc-board__open > span:last-child {
  display: grid;
  flex: 0 0 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--tcdc-board-soft);
  font-size: 21px;
}
.tcdc-board .tcdc-board__open:hover > span:first-child { text-decoration: underline; text-underline-offset: 4px; }
.tcdc-board .tcdc-board__open:focus-visible,
.tcdc-board-modal .tcdc-board-modal__close:focus-visible { outline: 3px solid var(--tcdc-board-green); outline-offset: 4px; }

.tcdc-board-modal {
  position: fixed;
  inset: 0;
  width: min(760px, calc(100% - 32px));
  max-width: none;
  height: fit-content;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--tcdc-board-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 90px rgb(0 0 0 / 24%);
  text-align: left;
}
.tcdc-board-modal:not([open]) { display: none; }
.tcdc-board-modal[open] { display: flex; flex-direction: column; animation: tcdc-board-modal-enter .26s ease-out; }
.tcdc-board-modal::backdrop { background: rgb(17 28 51 / 68%); backdrop-filter: blur(3px); }
.tcdc-board-modal .tcdc-board-modal__toolbar {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--tcdc-board-line);
  background: var(--tcdc-board-soft);
}
.tcdc-board-modal .tcdc-board-modal__eyebrow {
  color: var(--tcdc-board-green);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tcdc-board-modal .tcdc-board-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 10px;
  min-height: 44px;
  margin: 0;
  padding: 8px 12px;
  appearance: none;
  border: 1px solid var(--tcdc-board-line);
  border-radius: 9px;
  background: #fff;
  color: var(--tcdc-board-navy);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  touch-action: manipulation;
}
.tcdc-board-modal .tcdc-board-modal__close:hover { border-color: var(--tcdc-board-green); }
.tcdc-board-modal .tcdc-board-modal__close span { font-size: 24px; font-weight: 400; line-height: 1; }
.tcdc-board-modal .tcdc-board-modal__scroll {
  min-height: 0;
  padding: clamp(24px, 4vw, 40px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}
.tcdc-board-modal .tcdc-board-modal__scroll:focus-visible { outline: 2px solid var(--tcdc-board-green); outline-offset: -4px; }
.tcdc-board-modal .tcdc-board-modal__profile {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}
.tcdc-board-modal .tcdc-board__portrait {
  width: 104px;
  height: 104px;
  overflow: hidden;
  border: 1px solid var(--tcdc-board-line);
  border-radius: 16px;
  background: var(--tcdc-board-soft);
}
.tcdc-board-modal .tcdc-board__name { font-size: clamp(26px, 3vw, 34px); }
.tcdc-board-modal .tcdc-board__bio { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--tcdc-board-line); font-size: 18px; }
.tcdc-board-modal .tcdc-board__bio :where(table, pre) { display: block; max-width: 100%; overflow-x: auto; }
.tcdc-board-modal .tcdc-board__bio :where(figure, blockquote) { max-width: 100%; margin-inline: 0; }

@keyframes tcdc-board-modal-enter {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 600px) {
  .tcdc-board-modal { width: calc(100% - 24px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); border-radius: 16px; }
  .tcdc-board-modal .tcdc-board-modal__toolbar { padding: 12px 16px; gap: 8px; }
  .tcdc-board-modal .tcdc-board-modal__eyebrow { font-size: 11px; letter-spacing: .04em; }
  .tcdc-board-modal .tcdc-board-modal__close { font-size: 14px; }
  .tcdc-board-modal .tcdc-board-modal__scroll { padding: 24px 20px; }
  .tcdc-board-modal .tcdc-board-modal__profile { grid-template-columns: 76px minmax(0, 1fr); gap: 16px; }
  .tcdc-board-modal .tcdc-board__portrait { width: 76px; height: 76px; }
  .tcdc-board-modal .tcdc-board__name { font-size: 26px; }
  .tcdc-board-modal .tcdc-board__bio { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .tcdc-board-modal[open] { animation: none; }
}
@media print {
  .tcdc-board-modal { display: none !important; }
}
