/* ============================================================
   Variables / Palette
   medchi shades: https://maketintsandshades.com/#8cb8de
   ============================================================ */

:root {
  --medchi-blue:        rgba(140, 184, 222, 1);
  --medchi-blue-80:     rgba(140, 184, 222, 0.8);
  --medchi-blue-65:     rgba(140, 184, 222, 0.65);
  --medchi-blue-30:     rgba(140, 184, 222, 0.3);
  --medchi-blue-light:  rgb(198, 220, 239);
  --medchi-blue-thead:  rgb(140, 184, 222);
}


/* ============================================================
   Layout — Page Shell
   ============================================================ */

#header {
  background: rgba(245, 253, 253, 1);
  max-width: 100vw;
}

#page-wrapper > #start {
  background-color: #eef2f5;
}

#body-wrapper {
  background: rgba(248, 253, 253, 1);
  overflow-x: clip;
}

#body-wrapper > .container {
  background-color: white;
  padding: 1rem 2rem 80px;
}

#error {
  min-height: 70vw;
}


/* ============================================================
   Layout — Contained Media
   ============================================================ */

#body-wrapper img,
#body-wrapper iframe,
#body-wrapper video,
#body-wrapper table {
  max-width: 100%;
}

#body-wrapper table {
  display: block;
  overflow-x: auto;
}

iframe {
  border: none;
}

.centered-table table {
  display: table !important;
}

/* ============================================================
   Layout — Mobile / Overlay
   ============================================================ */

.mobile-container #overlay {
  width: 100vw;
}

.mobile-menu {
  max-width: 100vw;
}

.header-fixed .mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
}


/* ============================================================
   Typography & Headings
   ============================================================ */

h2, h3, h4 {
  text-align: center;
}

.center {
  text-align: center;
  margin: auto;
  display: block;
}


/* ============================================================
   Body Text — Squish / Margins
   ============================================================ */

#body-wrapper .container > p,
#body-wrapper .container > * > p,
.squish-text {
  margin: 25px 15vmin;
}

.table-page {
  margin: 25px 5vmin !important;
}

.page-title {
  margin: 0 0 25px;
}


/* ============================================================
   Blue-Tint Banner
   ============================================================ */

.blue-tint-banner #blog-hero .image-overlay {
  background-color: var(--medchi-blue-30);
  background-blend-mode: multiply;
  background-size: cover;
}

.blue-tint-banner #large-title-text {
  background-color: var(--medchi-blue-80);
}

.blue-tint-banner.header-dark.header-transparent #header:not(.scrolled) {
  background-color: var(--medchi-blue-65);
}


/* ============================================================
   Hero / Large Title
   ============================================================ */

#large-title-text {
  background-color: rgba(169, 169, 169, 0.7);
  padding: 18px;
}

#large-title-text h1 {
  font-size: 4em;
  margin: auto;
  color: white;
}


/* ============================================================
   Breadcrumbs
   ============================================================ */

#breadcrumbs {
  justify-content: center;
  padding: 0;
  margin: 0 auto !important;
}


/* ============================================================
   Figures & Captions
   ============================================================ */

figure.standard-figure {
  margin: 45px auto !important;
  text-align: center;
}

figure.standard-figure * {
  text-align: center;
  margin: auto;
}

figure.standard-figure figcaption,
figcaption {
  font-size: 0.9em;
  text-align: center;
  margin: auto;
}

figure.standard-figure figcaption {
  width: 60%;
}


/* ============================================================
   Accordion
   ============================================================ */

.accordion-wrapper label {
  color: white !important;
  background: var(--medchi-blue) !important;
}


/* ============================================================
   Modal
   ============================================================ */

.jqmodal {
  top: 75px;
}


/* ============================================================
   Blog Listing / Cards
   ============================================================ */

.blog-listing .blog-date {
  font-size: 16px;
}

.blog-listing .card-date {
  font-size: 32px;
  font-family: 'Times New Roman', serif;
  text-decoration: underline dotted;
  text-align: left;
  margin: -5px 15px;
}

.blog-listing .card-image img,
.blog-listing .card-image img {
  display: block;
}

.blog-listing .card {
  box-shadow:
    rgba(0, 0, 0, 0.25)  0px 54px 55px,
    rgba(0, 0, 0, 0.12)  0px -12px 30px,
    rgba(0, 0, 0, 0.12)  0px 4px 6px,
    rgba(0, 0, 0, 0.17)  0px 12px 13px,
    rgba(0, 0, 0, 0.09)  0px -3px 5px;
}


/* ============================================================
   Bricklayer Grid
   ============================================================ */

.bricklayer {
  column-gap: 25px;
}

.bricklayer-column {
  padding-right: 0 !important;
}

/* 3 columns on desktop */
.bricklayer-column-sizer {
  width: 33.333%;
}


/* ============================================================
   Tables — Pure CSS Theme
   ============================================================ */

.pure-table-striped tr:nth-child(2n-1) td {
  background-color: var(--medchi-blue-light);
}

.pure-table thead {
  background-color: var(--medchi-blue-thead);
}

/* Two-column layout: pin first column width on mobile */
.two-column-image-left table tr td:first-child,
.two-column-image-left table tr th:first-child {
  min-width: 45%;
}

.pastpresidents table {
  overflow-x: scroll;
}


/* ============================================================
   Past Presidents — Bio Card
   ============================================================ */

.presidents_bio_card a {
  color: #0056b3;
  text-decoration: underline dotted;
  cursor: pointer;
}

.president-preview {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  word-break: break-word;
  width: 100%;
  box-sizing: border-box;
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  position: relative;
}

.president-preview::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1.5em;
  background: linear-gradient(to bottom, transparent, white 90%);
}


/* ============================================================
   Gallery
   ============================================================ */

.gallery h3 {
  text-align: center;
}

#body-wrapper .container > .justified-gallery {
  margin: auto;
}


/* ============================================================
   Footer
   ============================================================ */

#footer > p {
  margin: 30px auto;
}

#footer > table {
  text-align: center;
  margin: auto;
}

#footer > table td,
#footer > table th {
  padding: 0 35px;
  text-align: left;
}


/* ============================================================
   Full-Width & Wide Page Variants
   ============================================================ */

.full-width-page #body-wrapper > section.container {
  max-width: 100vw;
}


/* ============================================================
   Responsive Overrides
   ============================================================ */

/* Tablet (≤992px) */
@media (max-width: 992px) {
  .bricklayer-column-sizer {
    width: 50%;
  }

  /* Hide the third card so it doesn't sit alone on its own row */
  .bricklayer-column:last-of-type a:last-of-type .card {
    display: none;
  }
}

/* Small tablet / large mobile (≤922px) */
@media (max-width: 922px) {
  #body-wrapper .container > p,
  .squish-text {
    margin: 25px 0;
    text-align: left !important;
  }
}

/* Mobile (≤576px) */
@media (max-width: 576px) {
  .bricklayer-column-sizer {
    width: 100%;
  }

  .container > * {
    padding: 0;
    margin: 0;
  }
}

/* Wide tables on mid-size screens */
@media (max-width: 1200px) {
  .wide-page .pure-u-1:has(> table) {
    overflow-x: auto;
    width: 100vw;
    left: 50%;
    margin-left: -50vw;
    position: relative;
  }
}