/*
Theme Name: EmeraNova
Theme URI: https://emeranova.com/
Author: Hyperion Insights
Description: Custom WordPress theme for EmeraNova's tissue-restoration portfolio, meetings, research, and company content.
Version: 1.5.1
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: emeranova
*/

/* The production design system lives in assets/en.css. */

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.en-form-notice {
  border-left: 4px solid #0d4e9f;
  margin: 0 0 1.5rem;
  padding: 0.9rem 1rem;
}

.en-form-notice.is-error {
  border-left-color: #c33;
}

.en-honeypot {
  left: -10000px;
  position: absolute;
  top: auto;
}

.en-wp-content {
  min-height: 45vh;
}

html {
  scroll-padding-top: 7rem;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  font-size: 1.05rem;
  gap: 0.5rem 1.5rem;
  margin-bottom: 2rem;
}

.event-meta time {
  font-weight: 600;
}

.en-wp-content .post-list {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.en-wp-content .post-card {
  border: 1px solid rgba(10, 36, 64, 0.15);
  color: inherit;
  display: block;
  padding: 1.5rem;
  text-decoration: none;
}

.en-wp-content .post-card h2,
.en-wp-content .post-card p {
  overflow-wrap: anywhere;
}

.flegal-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
}

.en-cookie-settings {
  appearance: none;
  background: transparent;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.en-consent {
  background: #fff;
  border: 1px solid rgba(10, 36, 64, 0.18);
  border-radius: 12px;
  bottom: 1rem;
  box-sizing: border-box;
  box-shadow: 0 18px 60px rgba(10, 36, 64, 0.24);
  color: #0a2440;
  left: 50%;
  max-height: calc(100vh - 2rem);
  max-width: 1120px;
  overflow: auto;
  padding: clamp(1rem, 2vw, 1.5rem);
  position: fixed;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  z-index: 10000;
}

.en-consent[hidden],
.en-consent__preferences[hidden] {
  display: none;
}

.en-consent__summary {
  align-items: end;
  display: grid;
  gap: 1rem 2rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.en-consent__eyebrow {
  color: #0d4e9f;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  margin: 0 0 0.35rem;
  text-transform: uppercase;
}

.en-consent h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  margin: 0;
}

.en-consent__copy > p:last-child {
  color: #43566b;
  line-height: 1.55;
  margin: 0.45rem 0 0;
  max-width: 68ch;
}

.en-consent a {
  color: #0d4e9f;
  font-weight: 600;
}

.en-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

.en-consent__button {
  background: #fff;
  border: 2px solid #0d4e9f;
  border-radius: 999px;
  color: #0d4e9f;
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  min-height: 44px;
  padding: 0.65rem 1rem;
}

.en-consent__button:hover,
.en-consent__button:focus-visible {
  background: #edf5ff;
}

.en-consent__button:focus-visible,
.en-cookie-settings:focus-visible {
  outline: 3px solid #f47f22;
  outline-offset: 3px;
}

.en-consent__button.en-consent__decision {
  background: #0d4e9f;
  color: #fff;
}

.en-consent__button.en-consent__decision:hover,
.en-consent__button.en-consent__decision:focus-visible {
  background: #083b79;
}

.en-consent__preferences {
  border-top: 1px solid rgba(10, 36, 64, 0.15);
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.1rem;
  padding-top: 1rem;
}

.en-consent__choice {
  align-items: start;
  border: 1px solid rgba(10, 36, 64, 0.15);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  gap: 0.7rem;
  line-height: 1.4;
  padding: 0.85rem;
}

.en-consent__choice.is-required {
  background: #f5f7fa;
  cursor: default;
}

.en-consent__choice input {
  accent-color: #0d4e9f;
  height: 1.15rem;
  margin: 0.1rem 0 0;
  width: 1.15rem;
}

.en-consent__choice strong {
  display: block;
  margin-bottom: 0.15rem;
}

.en-consent__gpc {
  color: #43566b;
  font-size: 0.85rem;
  grid-column: 1 / -1;
  margin: 0;
}

.en-consent__preferences > .en-consent__button {
  justify-self: start;
}

@media (max-width: 850px) {
  .en-consent__summary,
  .en-consent__preferences {
    grid-template-columns: 1fr;
  }

  .en-consent__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .en-consent {
    border-bottom: 0;
    border-left: 0;
    border-radius: 12px 12px 0 0;
    border-right: 0;
    bottom: 0;
    max-height: 92vh;
    width: 100%;
  }

  .en-consent__actions,
  .en-consent__actions .en-consent__button,
  .en-consent__preferences > .en-consent__button {
    width: 100%;
  }
}
