/* EM2026 — Main stylesheet */

:root {
  --em-color-main-rgb: 80, 30, 140;
  --em-color-page-rgb: 255, 255, 255;
  --em-color-text-rgb: 44, 44, 44;
  --em-color-blue-rgb: 10, 40, 90;
  --em-color-accent-rgb: 250, 185, 80;
  --em-color-sunset-rgb: 242, 168, 98;
  --em-color-sky-rgb: 80, 160, 210;
  --em-color-lilac: #ece6f3;
  --em-color-porcelain: #f7f6f2;

  --em-color-wm-rgb: 28, 139, 160;
  --em-color-em-rgb: 110, 45, 145;
  --em-color-nm-rgb: 47, 168, 78;
  --em-color-hml-rgb: 30, 45, 86;
  --em-color-swm-rgb: 156, 46, 93;

  --em-color-main: rgb(var(--em-color-main-rgb));
  --em-color-page: rgb(var(--em-color-page-rgb));
  --em-color-text: rgb(var(--em-color-text-rgb));
  --em-color-blue: rgb(var(--em-color-blue-rgb));
  --em-color-accent: rgb(var(--em-color-accent-rgb));
  --em-color-wm: rgb(var(--em-color-wm-rgb));
  --em-color-em: rgb(var(--em-color-em-rgb));
  --em-color-nm: rgb(var(--em-color-nm-rgb));
  --em-color-hml: rgb(var(--em-color-hml-rgb));
  --em-color-swm: rgb(var(--em-color-swm-rgb));

  --em-font-heading: 'Montserrat', sans-serif;
  --em-font-body: 'Inter', sans-serif;

  --em-header-height: 44px;
  --em-admin-bar: 0px;
}

/* WordPress admin bar: 46px mobile, 32px desktop */
body.admin-bar {
  --em-admin-bar: 46px;
}

@media screen and (min-width: 783px) {
  body.admin-bar {
    --em-admin-bar: 32px;
  }
}

/* Page-level palette override: set via the "Palette" panel in the page editor */
body.palette-navy {
  --em-color-main-rgb: 198, 154, 43;
  --em-color-page-rgb: 255, 255, 255;
  --em-color-text-rgb: 44, 44, 44;
  --em-color-blue-rgb: 15, 26, 58;
  --em-color-accent-rgb: 15, 26, 58;
  --em-color-sunset-rgb: 242, 168, 98;
  --em-color-sky-rgb: 80, 160, 210;

  --em-color-main: rgb(var(--em-color-main-rgb));
  --em-color-page: rgb(var(--em-color-page-rgb));
  --em-color-text: rgb(var(--em-color-text-rgb));
  --em-color-blue: rgb(var(--em-color-blue-rgb));
  --em-color-accent: rgb(var(--em-color-accent-rgb));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--em-font-body);
  color: var(--em-color-text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--em-font-heading);
  color: var(--em-color-blue);
  margin-top: 0;
}

p {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

img,
video {
  max-width: 100%;
  height: auto;
}

.has-xl-font-size {
  font-size: 1.5rem;
}

.has-xxl-font-size {
  font-size: 2rem;
}

.has-xxxl-font-size {
  font-size: 3rem;
}

.has-small-font-size {
  font-size: 0.875rem;
}

.has-small-medium-size {
  font-size: 1.5rem;
}

.has-blue-color {
  color: var(--em-color-blue) !important;
}

/* Header styles live in assets/css/header.css */
/* Footer styles live in assets/css/footer.css */

/* =============================================
   SKIP LINK
   ============================================= */

.em-not-found {
  padding: 3rem 1.5rem;
  max-width: 1440px;
  margin: 0 auto;
  gap: 2rem;
  align-items: center;
}

.em-skip-link {
  position: absolute;
  left: -9999px;
}

.em-skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 999;
}

.em-content {
  padding-top: calc(var(--em-header-height) + var(--em-admin-bar));
  flex-grow: 1;
}

.wp-block-group-is-layout-grid {
  display: grid;
  gap: 1.25rem;
}

.em-wp-block-column-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.em-mb-0 {
  margin-bottom: 0 !important;
}

.em-color-main {
  color: var(--em-color-main) !important;
}

.em-plain-link {
  text-decoration: none;
  font-weight: 600;
}

.em-plain-link :hover {
  text-decoration: underline;
}

.em-wp-block-column-bio {
  flex-direction: column-reverse;
  display: flex;
  margin-bottom: auto;
}

.em-wp-block-column-bio .wp-block-heading {
  text-align: center;
}

.em-wp-block-column-bio .wp-block-image {
  display: flex;
  justify-content: center;
}

.em-wp-block-column-bio .wp-block-image img {
  max-height: 200px;
  max-width: max-content;
}

.em-wp-group-divided {
  align-items: center;
  border-top: 1px solid rgba(var(--em-color-text-rgb), 0.15);
  margin-top: 2rem;
}

.em-wp-group-divided .wp-block-image {
  padding: 1rem;
}

.wp-block-column-center {
  text-align: center;
  align-self: center;
}

@media (min-width: 1024px) {

  .em-wp-block-column-bio {
    flex-direction: column;
    padding-right: 5rem;
  }

  .em-wp-block-column-bio .wp-block-heading {
    text-align: left;
  }

  .em-wp-block-column-bio .wp-block-heading:after {
    content: '';
    display: block;
    width: 3rem;
    height: 2px;
    background-color: rgba(var(--em-color-main-rgb), 1);
    margin-top: 1rem;
  }

  .em-wp-block-column-bio .wp-block-image img {
    max-height: 300px;
    max-width: max-content;
  }
}

@media (min-width: 1200px) {
  .em-wp-block-column-bio {
    padding-right: 10rem;
  }
}

.text-wm {
  color: var(--em-color-wm) !important;
  text-decoration: none;
}

.text-em {
  color: var(--em-color-em) !important;
  text-decoration: none;
}

.text-nm {
  color: var(--em-color-nm) !important;
  text-decoration: none;
}

.text-hml {
  color: var(--em-color-hml) !important;
  text-decoration: none;
}

.text-swm {
  color: var(--em-color-swm) !important;
  text-decoration: none;
}

.em-text-uppercase {
  text-transform: uppercase;
}

.wp-site-blocks {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.em-table table th {
  border: 1px solid rgba(var(--em-color-blue-rgb), .25);
  background: rgba(var(--em-color-blue-rgb), .25);
  text-align: left;
}

.em-table table td {
  border: 1px solid rgba(var(--em-color-blue-rgb), .25);
}

.em-table table thead {
  border: none;
}

.wp-block-list {
  padding-left: 1.25rem;
  margin-top: 0;
}

.wp-block-list li {
  margin-bottom: .25rem;
}