/* Board of Regents (inc/bor.php), on top of cti-program.css + gofurther.css + explore-programs.css + directory.css:
   hero, the Board's pages as cards, the regents as portrait cards, what the Board does, the Board office. One accent (NMC red); the portraits carry the colour. */

.bor .bor-hero { padding-bottom: clamp(48px, 7vh, 80px); }

/* ---- the Board's pages: what people come here for, right under the hero ------------------------------------------- */
.bor .bor-hero { padding-bottom: clamp(40px, 6vh, 64px); }
.bor-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.bor-ways--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bor-ways li { display: flex; min-width: 0; margin: 0; }
.bor .bor-way { display: flex; flex-direction: column; width: 100%; min-height: 236px; padding: 30px 30px 26px; border-radius: 24px;
  background: var(--gray); color: var(--ink); text-decoration: none !important;
  transition: background-color .2s ease, transform .2s cubic-bezier(.16,1,.3,1); }
.bor .bor-way:hover { background: #ececf0; }
.bor .bor-way:active { transform: scale(.985); transition-duration: .1s; }
.bor .bor-way:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.bor-way-title { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.bor-way-text { margin-top: 8px; font-size: 17px; line-height: 1.45; color: var(--muted); }
.bor-way-meta { display: flex; flex-direction: column; gap: 2px; margin-top: 20px; padding-top: 14px; border-top: 1px solid rgba(0,0,0,.08); }
.bor-way-k { font-size: 13px; color: var(--muted); }
.bor-way-v { font-size: 16px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
/* the next meeting as a small calendar widget: the Events tile (events/events.css, copied so /bor/ needn't load it) */
/* a white inset in the grey card, so the next meeting is the first thing the eye finds (Renedel: "easy to miss") */
.bor-way-next { flex-direction: row; align-items: center; gap: 16px; margin-top: 22px; padding: 14px 16px 14px 14px; border-top: 0;
  border-radius: 18px; background: #fff; box-shadow: 0 0 0 .5px rgba(0,0,0,.06), 0 4px 14px rgba(0,0,0,.05); }
.bor-way-next .bor-way-k { color: var(--red); font-weight: 600; }
.bor-way-next-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bor-way-next .bor-way-v { line-height: 1.25; }
.bor-way-when { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bor-way .ev-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; width: 68px; height: 70px;
  border-radius: 16px; background: #fff; line-height: 1;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.05), 0 6px 16px rgba(0,0,0,.09); transition: transform .25s ease; }
.bor-way .ev-tile-m { font-size: 16px; font-weight: 500; color: var(--tile-m); letter-spacing: -.01em; margin-bottom: 2px; }
.bor-way .ev-tile-d { font-size: 33px; font-weight: 600; color: var(--tile-d); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.bor .bor-way:hover .ev-tile { transform: translateY(-1px); }
.bor .bor-way-more { margin-top: auto; padding-top: 20px; }
.bor-way-more .ctip-chev { width: 12px; height: 12px; transition: transform .2s ease; }
.bor .bor-way:hover .bor-way-more .ctip-chev { transform: translateX(3px); }

/* ---- the Board ----------------------------------------------------------------------------------------------------- */
.bor .bor-members { padding: 104px 0 112px; }
.bor .bor-members .ctip-h2 { color: var(--ink); margin-bottom: 36px; }

.bor-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.bor-cell { display: flex; min-width: 0; margin: 0; }
.bor-card { display: flex; flex-direction: column; width: 100%; border-radius: 22px; overflow: hidden; background: var(--gray); }
.bor-photo { display: grid; place-items: center; aspect-ratio: 4 / 5; overflow: hidden; background: #d9d9de; }
.bor-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; }
.bor-photo:has(.dir-blank) { background: linear-gradient(180deg, #b4b8c1, #8e929c); }
.bor-photo .dir-blank { width: 66%; height: auto; align-self: end; }
.bor-body { display: flex; flex-direction: column; flex: 1; gap: 3px; padding: 16px 18px 18px; }
.bor-name { font-size: 17px; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; color: var(--ink); text-wrap: balance; }
.bor-office { font-size: 15px; line-height: 1.35; color: var(--muted); }
.bor-office--officer { color: var(--red); font-weight: 600; }
.bor-island { margin-top: auto; padding-top: 10px; font-size: 13px; color: var(--muted); }

/* an open seat: the island is the picture */
.bor-photo--open { background: #ececf0; }
.bor-open-island { font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; letter-spacing: -.025em; color: #a1a1a6; }
.bor-card--open .bor-name { color: var(--muted); }
.bor .bor-apply { margin-top: auto; padding-top: 10px; font-size: 15px; text-decoration: none !important; }
.bor .bor-apply:hover { text-decoration: underline !important; }
.bor .bor-apply:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

/* ---- what the Board does -------------------------------------------------------------------------------------------- */
.bor .bor-about { padding: 104px 0; }
.bor-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 64px; align-items: start; }
.bor .bor-about .ctip-h2 { color: var(--ink); }
.bor-about-text { font-size: 19px; line-height: 1.55; color: var(--ink); }
.bor-about-text p { margin: 0 0 18px; }
.bor-about-text p:last-child { margin-bottom: 0; }

/* ---- contact the Board ---------------------------------------------------------------------------------------------- */
.bor .bor-contact { padding: 104px 0 120px; }
.bor .bor-contact .ctip-h2 { color: var(--ink); margin-bottom: 12px; }
.bor .bor-contact-lede { margin: 0; font-size: 19px; line-height: 1.45; color: var(--muted); }
.bor-contact-card { padding: 28px 30px; border-radius: 22px; background: var(--gray); }
.bor .bor-contact-name { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.015em; color: var(--ink); }
.bor .bor-contact-title { margin: 2px 0 18px; font-size: 16px; color: var(--muted); }
.bor-contact-rows { display: flex; flex-direction: column; gap: 10px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.bor-contact-rows li { display: flex; align-items: flex-start; gap: 10px; margin: 0; color: var(--ink); font-size: 17px; line-height: 1.4; }
.bor-meta-icon { flex: none; width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; }
.bor-contact-rows .bor-meta-icon { color: var(--muted); }
.bor .bor-contact-rows a { color: var(--red); overflow-wrap: anywhere; }

/* ==== Board Meetings (/bor/meetings/) =================================================================================== */
.bor .dp-hero-name a { color: inherit; text-decoration: none; }
.bor .dp-hero-name a:hover { text-decoration: underline; }

/* the Events calendar tile's colours (events.css sets them on .ev) */
.bor { --tile-m: #e0262f; --tile-d: #3d1a1c; }

/* upcoming: the Events pop-up's layout, on a grey card (no band) */
.bor .bor-upcoming { padding: 0 0 96px; }
.bor-up-list { display: flex; flex-direction: column; gap: 16px; }
.bor-up { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 28px;
  padding: 32px 36px; border-radius: 28px; background: var(--gray); }
.bor-up--none { grid-template-columns: minmax(0, 1fr); }
.bor-up-tile { box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 6px 18px rgba(0,0,0,.06); }
.bor .bor-up-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--red); }
.bor .bor-up-title { margin: 0 0 12px; font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; color: var(--ink); }
.bor-up-meta { display: flex; flex-direction: column; gap: 6px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.bor-up-meta li { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 16px; line-height: 1.4; color: var(--muted); }
.bor .bor-up-meta a, .bor .bor-up-text a { color: var(--red); }
.bor .bor-up-text { max-width: 720px; margin: 0; font-size: 17px; line-height: 1.5; color: var(--muted); }
.bor-up-actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-width: 168px; }
.bor .bor-btn-soft { background: #fff; color: var(--red) !important; }
.bor .bor-btn-soft:hover { background: var(--tint); }
.bor .bor-up-ics { justify-content: center; font-size: 15px; color: var(--red); min-height: 36px; }

/* subscribe */
.bor-sub { position: relative; margin: 18px 0 0; }
.bor-sub summary { list-style: none; cursor: pointer; width: max-content; min-height: 36px; font-size: 15px; color: var(--red); }
.bor-sub summary::-webkit-details-marker { display: none; }
.bor-sub summary .ctip-chev { width: 11px; height: 11px; transition: transform .2s ease; }
.bor-sub[open] summary .ctip-chev { transform: rotate(90deg); }
.bor-sub-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 6px 0 0; }
.bor .bor-sub-menu p { flex-basis: 100%; margin: 0 0 4px; font-size: 15px; color: var(--muted); }
.bor .bor-sub-menu a { font-size: 15px; font-weight: 500; color: var(--red); }

/* past meetings */
.bor .bor-past { padding: 96px 0 112px; }
.bor .bor-past .ctip-h2 { color: var(--ink); margin-bottom: 28px; }
.bor-controls { display: flex; flex-direction: column; gap: 14px; margin: 0 0 24px; }
.bor-controls[hidden] { display: none; }
.bor-years { display: flex; gap: 4px; width: max-content; max-width: 100%; padding: 4px; border-radius: 980px; background: #e8e8ed;
  overflow-x: auto; scrollbar-width: none; }
.bor-years::-webkit-scrollbar { display: none; }
.bor-year-btn { flex: none; border: 0; background: none; padding: 8px 16px; border-radius: 980px; font: 500 15px/1.2 var(--font);
  color: var(--ink); font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color .2s ease, box-shadow .2s ease; }
.bor-year-btn:hover { background: rgba(255,255,255,.55); }
.bor-year-btn[aria-selected="true"] { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.bor-year-btn:focus-visible { outline: 2px solid var(--red); outline-offset: 1px; }
.bor .bor-kinds { justify-content: flex-start; margin: 0; }
.bor-year[hidden], .bor-empty[hidden] { display: none; }
.bor-year + .bor-year { margin-top: 40px; }
.bor-year-h { margin: 0 0 12px; font-size: 21px; font-weight: 700; letter-spacing: -.015em; color: var(--ink); }
.bor-past.is-js .bor-year-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.bor-past.is-js .bor-year + .bor-year { margin-top: 0; }
/* a meeting: the Events calendar tile, its name and day, then Agenda and Minutes as two equal buttons */
.bor-mgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.bor-mcard { display: flex; flex-direction: column; gap: 20px; margin: 0; padding: 20px; border-radius: 22px; background: #fff; }
.bor-mcard[hidden] { display: none; }
.bor-mcard-head { display: flex; align-items: center; gap: 16px; }
.bor-mcard-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bor-mcard-name { font-size: 17px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; color: var(--ink); text-wrap: balance; }
.bor .bor-mcard-name a { color: var(--ink); text-decoration: none; }
.bor .bor-mcard-name a:hover { color: var(--red); text-decoration: underline; }
.bor-mcard-when { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bor-mcard-docs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.bor .bor-doc { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 10px; border-radius: 12px;
  background: var(--tint); font-size: 15px; font-weight: 500; color: var(--red); text-align: center; text-decoration: none !important;
  transition: background-color .2s ease, transform .1s ease; }
.bor .bor-doc:hover { background: #f6d9dd; }
.bor .bor-doc:active { transform: scale(.97); }
.bor .bor-doc:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.bor .bor-doc--none { background: var(--gray); color: #8e8e93; font-size: 14px; font-weight: 400; }
.bor .bor-empty { margin: 0; padding: 28px 24px; border-radius: 22px; background: #fff; font-size: 17px; color: var(--muted); }

/* the Board's other pages */
.bor .bor-more { padding: 96px 0 110px; }
.bor .bor-more .ctip-h2 { color: var(--ink); }

/* ---- smaller screens ----------------------------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .bor-up { grid-template-columns: auto minmax(0, 1fr); }
  .bor-mgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bor-up-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; min-width: 0; }
  .bor-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bor-ways, .bor-ways--2 { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .bor .bor-way { min-height: 0; }
}
@media (max-width: 767px) {
  .bor .bor-upcoming { padding-bottom: 64px; }
  .bor-up, .bor-up--none { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 24px 22px; border-radius: 22px; }
  .bor-up .ev-tile-lg { width: 64px; height: 66px; border-radius: 16px; }
  .bor-up .ev-tile-lg .ev-tile-m { font-size: 15px; }
  .bor-up .ev-tile-lg .ev-tile-d { font-size: 30px; }
  .bor .bor-past, .bor .bor-more { padding: 72px 0 80px; }
  .bor-mgrid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .bor-mcard { padding: 18px; gap: 16px; border-radius: 20px; }
  .bor .bor-empty { border-radius: 18px; }
  .bor .bor-way { padding: 22px 22px 20px; border-radius: 20px; }
  .bor-way-title { font-size: 21px; }
  .bor-way-text { font-size: 16px; }
  .bor .bor-members, .bor .bor-about, .bor .bor-contact { padding: 72px 0 80px; }
  .bor .bor-members .ctip-h2 { margin-bottom: 24px; }
  .bor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .bor-card { border-radius: 18px; }
  .bor-body { padding: 12px 14px 14px; }
  .bor-name { font-size: 15px; }
  .bor-office { font-size: 13px; }
  .bor-island, .bor .bor-apply { font-size: 13px; }
  .bor-split { grid-template-columns: minmax(0, 1fr); }
  .bor-about-text { font-size: 17px; }
  .bor-contact-card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .bor .bor-way, .bor-way .ev-tile, .bor-way-more .ctip-chev, .bor-year-btn, .bor .bor-doc, .bor-sub summary .ctip-chev { transition: none; }
  .bor .bor-doc:active { transform: none; }
  .bor .bor-way:active, .bor .bor-way:hover .bor-way-more .ctip-chev, .bor .bor-way:hover .ev-tile { transform: none; }
}

/* ---- /bor/vacancy/ (inc/bor-vacancy.php): the open seats, the page text beside the How to apply card ------------ */
.bor .bor-vseats { padding: 0 0 56px; }
.bor .bor-vseat-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.bor-vseat { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-width: 220px; margin: 0;
  padding: 26px 32px; border-radius: 22px; background: var(--gray); }
.bor-vseat-island { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; color: var(--ink); }
.bor-vseat-state { font-size: 15px; font-weight: 600; color: var(--red); }
.bor .bor-vbody { padding: 88px 0 104px; }
.bor-vgrid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px 64px; align-items: start; }
.bor-vtext { max-width: 680px; font-size: 17px; line-height: 1.6; color: #424245; }
.bor-vtext > :first-child { margin-top: 0; }
.bor .bor-vtext h2 { margin: 44px 0 12px; font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; color: var(--ink); }
.bor .bor-vtext p { margin: 0 0 16px; }
.bor .bor-vtext ul { margin: 0 0 16px; padding-left: 1.2em; }
.bor .bor-vtext li { margin: 0 0 8px; padding-left: 2px; }
.bor .bor-vtext li::marker { color: var(--red); }
.bor-vapply { position: sticky; top: 130px; padding: 28px; border-radius: 24px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.bor .bor-vapply-h { margin: 0 0 8px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.bor .bor-vapply-lede { margin: 0 0 18px; font-size: 16px; line-height: 1.5; color: #424245; }
.bor .bor-vapply-btn { display: flex; justify-content: center; width: 100%; }
.bor-vapply-to { margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(0, 0, 0, .08); }
.bor .bor-vapply-note { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) {
  .bor-vgrid { grid-template-columns: minmax(0, 1fr); }
  .bor-vapply { position: static; order: -1; }
}
@media (max-width: 767px) {
  .bor-vseat { flex: 1 1 140px; min-width: 0; padding: 20px; }
  .bor-vseat-island { font-size: 24px; }
  .bor .bor-vbody { padding: 56px 0 72px; }
  .bor-vapply { padding: 22px; border-radius: 20px; }
}
/* Seat history card under the regents (nmc_bor_history_card): text left, the seat chart in miniature right */
.bor .bor-hcard { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: center; margin: 32px 0 0; padding: 28px 32px; border-radius: 24px; background: #f5f5f7; color: inherit; text-decoration: none; transition: background-color .2s ease, transform .2s ease; }
.bor .bor-hcard:hover { background: #eeeef1; }
.bor .bor-hcard:active { transform: scale(.99); transition-duration: .08s; }
.bor .bor-hcard:focus-visible { outline: 2px solid var(--red, #a22631); outline-offset: 3px; }
.bor-hc-text { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.bor-hc-h { font-size: 24px; font-weight: 600; line-height: 1.15; letter-spacing: -.015em; color: var(--ink, #1d1d1f); }
.bor-hc-p { font-size: 16px; line-height: 1.45; color: var(--muted, #6e6e73); }
.bor .bor-hc-more { margin-top: 4px; }
.bor-hc-chart { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.bor-hc-rows { padding: 14px 16px; border-radius: 16px; background: #fff; }
.bor-hc-in { position: relative; display: flex; flex-direction: column; gap: 6px; }
.bor-hc-row { position: relative; height: 12px; }
.bor-hc-t { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: #dcdce1; }
.bor-hc-t.is-serving { background: var(--red, #a22631); }
.bor-hc-t.is-held { background: #fff; box-shadow: inset 0 0 0 1.5px var(--red, #a22631); }
.bor-hc-now { position: absolute; top: -6px; bottom: -6px; width: 0; border-left: 1.5px solid var(--red, #a22631); opacity: .45; }
.bor-hc-ticks { position: relative; height: 14px; margin: 0 16px; font-size: 12px; font-weight: 500; color: var(--muted, #6e6e73); font-variant-numeric: tabular-nums; }
.bor-hc-ticks span { position: absolute; transform: translateX(-50%); }
@media (max-width: 767px) { .bor .bor-hcard { grid-template-columns: 1fr; gap: 20px; padding: 24px 20px; } .bor-hc-h { font-size: 21px; } }
@media (prefers-reduced-motion: reduce) { .bor .bor-hcard, .bor .bor-hcard:active { transition: none; transform: none; } }
