/*
 * AVA 2026 — global theme styles
 *
 * Copy this file into Divi → Theme Options → Custom CSS (or the site theme
 * styles.css). Loaded site-wide; use ava-* classes in Toolset views.
 */

 :root {
  --ava-event-date-bg: #1f6f78;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

.ava-type-body {
  font-family: var(--et_global_body_font, 'Lexend', sans-serif);
  font-size: var(--et_global_body_font_size, 16px);
  line-height: var(--et_global_body_font_height, 1.6);
}

.ava-col-heading {
  color: var(--gcid-heading-color);
  font-weight: 600;
}

.ava-card-title {
  margin: 0 0 10px;
  color: var(--gcid-heading-color);
  font-family: var(--et_global_heading_font, 'Libre Baskerville', serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.ava-body-text {
  margin: 0;
  color: var(--gcid-body-color);
  font-size: 15px;
  line-height: 1.55;
}

.ava-body-text > :first-child {
  margin-top: 0;
}

.ava-body-text > :last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Interactive elements
   -------------------------------------------------------------------------- */

.ava-btn-outline,
.ava-btn-outline-wrap > a {
  display: inline-block;
  padding: 8px 20px;
  border: 2px solid var(--gcid-primary-color);
  border-radius: 6px;
  background: transparent;
  color: var(--gcid-primary-color);
  font-family: inherit;
  font-size: inherit;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.ava-btn-outline:hover,
.ava-btn-outline-wrap > a:hover {
  background: var(--gcid-467wmelwgk, rgba(3, 124, 141, 0.12));
}

.ava-link-arrow {
  color: var(--gcid-primary-color);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.ava-link-arrow:hover {
  color: var(--gcid-link-color);
}

.ava-link-arrow span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.ava-link-arrow:hover span {
  transform: translateX(3px);
}

.ava-text-link {
  color: var(--gcid-heading-color);
  font-weight: 600;
  text-decoration: none;
}

.ava-text-link:hover {
  color: var(--gcid-primary-color);
}

.ava-focus-visible:focus-visible {
  outline: 2px solid var(--gcid-primary-color);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Forms (shared post-form styling)
   -------------------------------------------------------------------------- */

.ava-form {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 32px;
}

/* Beat legacy per-form max-width rules still in Toolset form CSS editors */
form.cred-form > .submit-a-job,
form.cred-form > .submit-accredited-cpd,
form.cred-form > .ava-form {
  width: 100%;
  max-width: none;
  margin: 0;
}

.ava-form__messages {
  margin-bottom: 24px;
}

.ava-form__messages .alert {
  margin: 0;
  padding: 12px 16px;
  border: 1px solid var(--gcid-lp27o1eo77, rgba(3, 124, 141, 0.25));
  border-radius: 6px;
  background: var(--gcid-467wmelwgk, #f3fafb);
  color: var(--gcid-heading-color);
  font-size: 15px;
  line-height: 1.5;
}

.ava-form__field {
  margin-bottom: 20px;
}

.ava-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 0;
}

.ava-form__grid .ava-form__field {
  margin-bottom: 20px;
}

.ava-form__label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.4;
}

.ava-form__input,
.ava-form input[type="text"],
.ava-form input[type="email"],
.ava-form input[type="url"],
.ava-form input[type="date"],
.ava-form input[type="number"],
.ava-form textarea:not(.wp-editor-area),
.ava-form select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--gcid-lp27o1eo77, rgba(3, 124, 141, 0.25));
  border-radius: 6px;
  background: var(--gcid-wxo69m6z3z, #ffffff);
  color: var(--gcid-body-color);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ava-form__input:focus,
.ava-form input[type="text"]:focus,
.ava-form input[type="email"]:focus,
.ava-form input[type="url"]:focus,
.ava-form input[type="date"]:focus,
.ava-form input[type="number"]:focus,
.ava-form textarea:focus,
.ava-form select:focus {
  border-color: var(--gcid-primary-color);
  box-shadow: 0 0 0 3px var(--gcid-lp27o1eo77, rgba(3, 124, 141, 0.25));
  outline: none;
}

.ava-form__field-editor .wp-editor-wrap {
  border: 1px solid var(--gcid-lp27o1eo77, rgba(3, 124, 141, 0.25));
  border-radius: 6px;
  overflow: hidden;
  background: var(--gcid-wxo69m6z3z, #ffffff);
}

.ava-form__field-editor .wp-editor-tools,
.ava-form__field-editor .wp-editor-tabs,
.ava-form__field-editor .quicktags-toolbar {
  display: none !important;
}

.ava-form__field-editor .wp-editor-container {
  border: none;
}

.ava-form__field-editor .mce-tinymce {
  display: block !important;
  visibility: visible !important;
}

.ava-form__field-editor .mce-edit-area iframe {
  min-height: 220px;
}

.ava-form__actions {
  margin-top: 8px;
  padding-top: 8px;
}

.ava-form__submit {
  display: inline-block;
  min-width: 160px;
  padding: 10px 24px;
  border: 2px solid var(--gcid-primary-color);
  border-radius: 6px;
  background: var(--gcid-primary-color);
  color: var(--gcid-wxo69m6z3z, #ffffff);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.ava-form__submit:hover {
  background: var(--gcid-0e6s480mtd, #026570);
  border-color: var(--gcid-0e6s480mtd, #026570);
}

.ava-form__submit:focus-visible {
  outline: 2px solid var(--gcid-primary-color);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Tags and meta rows
   -------------------------------------------------------------------------- */

.ava-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.ava-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--gcid-467wmelwgk, rgba(3, 124, 141, 0.12));
  color: var(--gcid-primary-color);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

.ava-pill:empty {
  display: none;
}

.ava-meta {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--gcid-body-color);
  font-size: 15px;
  line-height: 1.45;
}

.ava-meta:last-child {
  margin-bottom: 0;
}

.ava-meta__icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--gcid-primary-color);
  opacity: 0.75;
}

.ava-meta__icon i {
  display: block;
  font-size: 16px;
  line-height: 1;
  width: 16px;
  text-align: center;
}

.ava-meta__text {
  min-width: 0;
}

.ava-meta .ava-meta__text:empty {
  display: none;
}

.ava-meta:has(.ava-meta__text:empty) {
  display: none;
}

/* --------------------------------------------------------------------------
   Surfaces and badges
   -------------------------------------------------------------------------- */

.ava-surface {
  background: var(--gcid-wxo69m6z3z, #ffffff);
  border: 1px solid var(--gcid-t4dp5ke4yf, #efefef);
  border-radius: 8px;
}

.ava-card {
  padding: 28px;
  background: var(--gcid-wxo69m6z3z, #ffffff);
  border: 1px solid var(--gcid-t4dp5ke4yf, #efefef);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ava-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 88px;
}

.ava-badge:empty {
  display: none;
}

.ava-badge__item {
  display: block;
  line-height: 0;
}

.ava-badge img {
  display: block;
  width: 88px;
  height: auto;
  object-fit: contain;
}

.ava-feature-art {
  flex-shrink: 0;
  width: 160px;
  height: 120px;
  line-height: 0;
}

.ava-feature-art:empty {
  display: none;
}

.ava-feature-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
}

.ava-feature-art--compact {
  width: 88px;
  height: 72px;
  opacity: 0.4;
}

.ava-feature-art--compact img {
  object-fit: contain;
  object-position: bottom right;
  border-radius: 0;
}

.ava-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* --------------------------------------------------------------------------
   Clickable card (modal trigger — photo, hover overlay, + icon)
   -------------------------------------------------------------------------- */

.ava-card-link {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--gcid-wxo69m6z3z, #ffffff);
  border: 1px solid var(--gcid-t4dp5ke4yf, #efefef);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ava-card-link__trigger {
  position: relative;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.ava-card-link__trigger:focus-visible {
  outline: 2px solid var(--gcid-primary-color);
  outline-offset: 2px;
}

.ava-card-link__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.ava-card-link:hover .ava-card-link__overlay {
  opacity: 1;
}

.ava-card-link__media {
  position: relative;
  flex-shrink: 0;
}

.ava-card-link__photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--gcid-t4dp5ke4yf, #efefef);
}

.ava-card-link__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ava-card-link__plus {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--gcid-primary-color);
  border-radius: 50%;
  background: var(--gcid-wxo69m6z3z, #ffffff);
  color: var(--gcid-primary-color);
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  pointer-events: none;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.ava-card-link__plus > span {
  display: block;
  margin-top: -2px;
}

.ava-card-link:hover .ava-card-link__plus {
  transform: scale(1.2);
  background: var(--gcid-primary-color);
  color: var(--gcid-wxo69m6z3z, #ffffff);
}

.ava-card-link__content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 4px;
  padding: 20px;
}

.ava-card-link__action {
  display: inline-block;
  margin-top: auto;
  pointer-events: none;
}

.ava-card-link:hover .ava-card-link__action span {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Jobs listing (shared across latest-jobs and all-jobs views)
   -------------------------------------------------------------------------- */

.jobs-listing {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr) minmax(0, 1.25fr) minmax(0, 1fr) auto;
  column-gap: 24px;
  padding: 0 28px;
  overflow: hidden;
}

.jobs-listing--header,
.jobs-listing--row {
  display: contents;
}

.jobs-listing--cell {
  padding: 10px 0;
  text-align: left;
}

.jobs-listing--row .jobs-listing--cell {
  border-top: 1px solid var(--gcid-t4dp5ke4yf, #efefef);
  color: var(--gcid-body-color);
}

.jobs-listing--cell-title {
  color: var(--gcid-heading-color);
  font-weight: 600;
}

.jobs-listing--row .jobs-listing--cell-title,
.jobs-listing--row .jobs-listing--cell-organisation {
  text-transform: lowercase;
}

.jobs-listing--row .jobs-listing--cell-title::first-letter,
.jobs-listing--row .jobs-listing--cell-organisation::first-letter {
  text-transform: uppercase;
}

.jobs-listing--cell-action {
  text-align: right;
}

/* --------------------------------------------------------------------------
   Awards listing (award-years + award-listing views)
   -------------------------------------------------------------------------- */

.awards-years {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.awards-years--heading {
  margin: 0 0 16px;
}

.awards-listing {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) minmax(0, 0.7fr) auto;
  column-gap: 24px;
  padding: 0 28px;
  overflow: hidden;
}

.awards-listing--header,
.awards-listing--row {
  display: contents;
}

.awards-listing--cell {
  padding: 14px 0;
  text-align: left;
}

.awards-listing--row .awards-listing--cell {
  border-top: 1px solid var(--gcid-t4dp5ke4yf, #efefef);
  color: var(--gcid-body-color);
}

.awards-listing--cell-recipient {
  color: var(--gcid-heading-color);
  font-weight: 600;
}

.awards-listing--cell-amount {
  white-space: nowrap;
}

.awards-listing--cell-action {
  text-align: right;
}

/* --------------------------------------------------------------------------
   Documents listing (wide) — Download Monitor downloads
   -------------------------------------------------------------------------- */

.documents-listing-wide {
  overflow: hidden;
}

.documents-listing-wide--row {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 0.8fr) auto;
  column-gap: 32px;
  align-items: center;
  padding: 18px 28px;
  border-top: 1px solid var(--gcid-t4dp5ke4yf, #efefef);
  color: var(--gcid-body-color);
}

.documents-listing-wide--row:first-child {
  border-top: none;
}

.documents-listing-wide--doc {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.documents-listing-wide--icon {
  flex: 0 0 auto;
  color: #d32f2f;
  font-size: 28px;
  line-height: 1;
}

.documents-listing-wide--identity {
  min-width: 0;
}

.documents-listing-wide--title {
  color: var(--gcid-heading-color);
  font-weight: 600;
  line-height: 1.35;
}

.documents-listing-wide--format {
  margin-top: 2px;
  color: var(--gcid-body-color);
  font-size: 13px;
  line-height: 1.4;
  text-transform: uppercase;
  opacity: 0.75;
}

.documents-listing-wide--updated {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.35;
}

.documents-listing-wide--updated-label {
  color: var(--gcid-heading-color);
  font-weight: 500;
}

.documents-listing-wide--action {
  text-align: right;
}

.documents-listing-wide--download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   Documents listing with featured image
   -------------------------------------------------------------------------- */

.documents-listing-featured {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.documents-listing-featured--item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.documents-listing-featured--media {
  width: 200px;
  height: 150px;
}

.documents-listing-featured--content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.documents-listing-featured--title {
  margin: 0;
}

.documents-listing-featured--meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--gcid-body-color);
  font-size: 13px;
  line-height: 1.4;
  opacity: 0.8;
}

.documents-listing-featured--format {
  text-transform: uppercase;
}

.documents-listing-featured--description {
  margin: 0;
}

.documents-listing-featured--download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   Documents grid with language filter
   -------------------------------------------------------------------------- */

.wpv-filter-form:has(.documents-grid--filters) {
  margin: 0 0 24px;
}

.documents-grid--filters {
  margin: 0;
}

.documents-grid--filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.documents-grid--filter-label {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
}

.documents-grid--filter select,
.documents-grid--filters select {
  appearance: none;
  min-width: 260px;
  max-width: 100%;
  padding: 10px 40px 10px 14px;
  border: 1px solid var(--gcid-lp27o1eo77, rgba(3, 124, 141, 0.25));
  border-radius: 8px;
  background-color: var(--gcid-wxo69m6z3z, #ffffff);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23037c8d' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  color: var(--gcid-body-color);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.documents-grid--filter select:hover,
.documents-grid--filters select:hover {
  border-color: var(--gcid-primary-color);
}

.documents-grid--filter select:focus,
.documents-grid--filters select:focus {
  border-color: var(--gcid-primary-color);
  outline: none;
  box-shadow: 0 0 0 3px var(--gcid-467wmelwgk, rgba(3, 124, 141, 0.12));
}

.documents-grid.documents-grid--cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.documents-grid--card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}

.documents-grid--title {
  margin: 0 0 8px;
}

.documents-grid--subtitle {
  margin: 0 0 10px;
}

.documents-grid--meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 20px;
  color: var(--gcid-body-color);
  font-size: 13px;
  line-height: 1.4;
  opacity: 0.8;
}

.documents-grid--format {
  text-transform: uppercase;
}

.documents-grid--download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.documents-grid--pagination {
  margin: 28px 0 0;
}

.documents-grid--pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.documents-grid--pager-item {
  list-style: none;
  margin: 0;
}

.documents-grid--pager-item:empty {
  display: none;
}

/* --------------------------------------------------------------------------
   Past AVA meetings resources (documents, videos, abstracts sub-views)
   -------------------------------------------------------------------------- */

.past-ava-meetings--section-title {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.3;
}

.past-ava-meetings--section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.past-ava-meetings--section li {
  list-style: none;
  padding-left: 0;
}

.past-ava-meetings--links,
.past-ava-meetings--links-item {
  list-style: none;
  margin: 0;
  padding: 0;
}

.past-ava-meetings--links-item::marker {
  content: none;
}

.past-ava-meetings--links-item + .past-ava-meetings--links-item {
  margin-top: 8px;
}

.past-ava-meetings--links .past-ava-meetings--link {
  display: block;
  width: 100%;
  padding: 10px 16px;
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
  white-space: normal;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.past-ava-meetings--links .past-ava-meetings--link:hover {
  background: var(--gcid-primary-color);
  border-color: var(--gcid-primary-color);
  color: var(--gcid-wxo69m6z3z, #ffffff);
}

/* --------------------------------------------------------------------------
   Toolset pagination (outline button style — shared across paginated views)
   -------------------------------------------------------------------------- */

.wpv-pagination-nav-links-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 24px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--gcid-t4dp5ke4yf, #efefef);
}

.wpv-pagination-nav-links-item {
  margin: 0;
  list-style: none;
}

.wpv-pagination-nav-links-item .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 2px solid var(--gcid-primary-color);
  border-radius: 6px;
  background: transparent;
  color: var(--gcid-primary-color);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.wpv-pagination-nav-links-item a.page-link:hover {
  background: var(--gcid-467wmelwgk, rgba(3, 124, 141, 0.12));
  color: var(--gcid-primary-color);
}

.wpv-pagination-nav-links-item.active .page-link,
.wpv-pagination-nav-links-item-current .page-link {
  background: var(--gcid-primary-color);
  border-color: var(--gcid-primary-color);
  color: var(--gcid-wxo69m6z3z, #ffffff);
  cursor: default;
}

/* --------------------------------------------------------------------------
   Modal (shared across views — paired via data-ava-modal attributes)
   -------------------------------------------------------------------------- */

.ava-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.ava-modal.is-open {
  display: flex;
}

.ava-modal__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.ava-modal__panel {
  position: relative;
  width: 96%;
  max-width: 1080px;
  max-height: calc(100vh - 96px);
  overflow: auto;
  padding: 32px;
  background: var(--gcid-wxo69m6z3z, #ffffff);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.ava-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: transparent;
  color: var(--gcid-heading-color);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.ava-modal-source__title {
  margin: 0 0 20px;
  padding-right: 32px;
  color: var(--gcid-heading-color);
  font-family: var(--et_global_heading_font, 'Libre Baskerville', serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}

.ava-modal-source__details {
  margin: 0 0 20px;
}

.ava-modal-source__detail {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 6px;
  margin: 0 0 12px;
}

.ava-modal-source__detail:last-child {
  margin-bottom: 0;
}

.ava-modal-source__detail dt {
  margin: 0;
  color: var(--gcid-heading-color);
  font-weight: 600;
  white-space: nowrap;
}

.ava-modal-source__detail dd {
  margin: 0;
  color: var(--gcid-body-color);
}

.ava-modal-source__body {
  margin: 20px 0;
  padding: 20px 0;
  border-top: 1px solid var(--gcid-t4dp5ke4yf, #efefef);
  border-bottom: 1px solid var(--gcid-t4dp5ke4yf, #efefef);
  color: var(--gcid-body-color);
}

/* Post body typography inside open modals */
.ava-modal__panel .ava-modal__content p {
  margin: 0 0 1em;
  line-height: 1.6;
}

.ava-modal__panel .ava-modal__content p:last-child {
  margin-bottom: 0;
}

.ava-modal__panel .ava-modal__content h1,
.ava-modal__panel .ava-modal__content h2,
.ava-modal__panel .ava-modal__content h3,
.ava-modal__panel .ava-modal__content h4,
.ava-modal__panel .ava-modal__content h5,
.ava-modal__panel .ava-modal__content h6 {
  margin: 1.5em 0 0.75em;
  color: var(--gcid-heading-color);
  font-family: var(--et_global_heading_font, 'Libre Baskerville', serif);
  font-weight: 600;
  line-height: 1.3;
}

.ava-modal__panel .ava-modal__content ul {
  list-style-type: disc;
  margin: 0 0 1em;
  padding-left: 1.5em;
}

.ava-modal__panel .ava-modal__content ol {
  list-style-type: decimal;
  margin: 0 0 1em;
  padding-left: 1.5em;
}

.ava-modal__panel .ava-modal__content li {
  display: list-item;
  margin-bottom: 0.35em;
  line-height: 1.55;
}

.ava-modal__panel .ava-modal__content li:last-child {
  margin-bottom: 0;
}

.ava-modal__content a {
  color: var(--gcid-primary-color);
}

.ava-modal__content a:hover {
  color: var(--gcid-link-color);
}

/* --------------------------------------------------------------------------
   The Events Calendar (list + day views) alignment with AVA theme
   -------------------------------------------------------------------------- */

.tribe-events-page-template .tribe-common .tribe-common-c-btn,
.tribe-events-page-template .tribe-common .tribe-events-c-subscribe-dropdown__button,
.tribe-events-page-template .tribe-events .tribe-events-c-events-bar__search-button {
  border: 2px solid var(--gcid-primary-color);
  border-radius: 6px;
  background: transparent;
  color: var(--gcid-primary-color);
  font-family: var(--et_global_body_font, 'Lexend', sans-serif);
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tribe-events-page-template .tribe-common .tribe-common-c-btn:hover,
.tribe-events-page-template .tribe-common .tribe-events-c-subscribe-dropdown__button:hover,
.tribe-events-page-template .tribe-events .tribe-events-c-events-bar__search-button:hover {
  background: var(--gcid-467wmelwgk, rgba(3, 124, 141, 0.12));
  border-color: var(--gcid-primary-color);
  color: var(--gcid-primary-color);
}

.tribe-events-page-template .tribe-events .tribe-events-calendar-list__event-row,
.tribe-events-page-template .tribe-events .tribe-events-calendar-day__event {
  margin-bottom: 20px;
  padding: 24px;
  background: var(--gcid-wxo69m6z3z, #ffffff);
  border: 1px solid var(--gcid-t4dp5ke4yf, #efefef);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tribe-events-page-template .tribe-events .tribe-events-calendar-list__event-row:last-child,
.tribe-events-page-template .tribe-events .tribe-events-calendar-day__event:last-child {
  margin-bottom: 0;
}

.tribe-events-page-template .tribe-events .tribe-events-calendar-list__event-date-tag {
  align-self: start;
  height: auto;
  min-height: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--ava-event-date-bg);
}

.tribe-events-page-template .tribe-events .tribe-events-calendar-list__event-date-tag-datetime {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  height: auto;
}

.tribe-events-page-template .tribe-events .tribe-events-calendar-list__event-date-tag-weekday,
.tribe-events-page-template .tribe-events .tribe-events-calendar-list__event-date-tag-daynum,
.tribe-events-page-template .tribe-events .tribe-events-calendar-list__event-date-tag-month,
.tribe-events-page-template .tribe-events .tribe-events-calendar-list__event-date-tag * {
  color: #ffffff;
}

.tribe-events-page-template .tribe-events .tribe-events-calendar-day__event-datetime {
  display: inline-block;
  width: fit-content;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--ava-event-date-bg);
  color: #ffffff;
  font-weight: 600;
  line-height: 1.35;
}

.tribe-events-page-template .tribe-events .tribe-events-calendar-list__event-title a,
.tribe-events-page-template .tribe-events .tribe-events-calendar-day__event-title-link {
  color: var(--gcid-heading-color);
  font-family: var(--et_global_heading_font, 'Libre Baskerville', serif);
  font-weight: 600;
}

.tribe-events-page-template .tribe-events .tribe-events-calendar-list__event-title a:hover,
.tribe-events-page-template .tribe-events .tribe-events-calendar-day__event-title-link:hover {
  color: var(--gcid-primary-color);
}

.tribe-events-page-template .tribe-events .tribe-events-calendar-list__event-description,
.tribe-events-page-template .tribe-events .tribe-events-calendar-list__event-datetime,
.tribe-events-page-template .tribe-events .tribe-events-calendar-list__event-venue,
.tribe-events-page-template .tribe-events .tribe-events-calendar-list__event-cost,
.tribe-events-page-template .tribe-events .tribe-events-calendar-list__event-organizer,
.tribe-events-page-template .tribe-events .tribe-events-calendar-day__event-description,
.tribe-events-page-template .tribe-events .tribe-events-calendar-day__event-venue,
.tribe-events-page-template .tribe-events .tribe-events-calendar-day__event-cost,
.tribe-events-page-template .tribe-events .tribe-events-calendar-day__event-organizer {
  color: var(--gcid-body-color);
}

.tribe-events-page-template .tribe-events .tribe-events-c-events-bar {
  margin-bottom: 20px;
  padding: 18px;
  border: 1px solid var(--gcid-t4dp5ke4yf, #efefef);
  border-radius: 12px;
  background: var(--gcid-wxo69m6z3z, #ffffff);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

@media (max-width: 640px) {
  .ava-form {
    padding: 24px 20px;
  }

  .ava-form__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .ava-grid-3 {
    grid-template-columns: 1fr;
  }

  .documents-grid.documents-grid--cols-4 {
    grid-template-columns: 1fr;
  }

  .tribe-events-page-template .tribe-events .tribe-events-calendar-list__event-row,
  .tribe-events-page-template .tribe-events .tribe-events-calendar-day__event,
  .tribe-events-page-template .tribe-events .tribe-events-c-events-bar {
    padding: 18px;
  }
}

@media (max-width: 980px) {
  .ava-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .documents-grid.documents-grid--cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jobs-listing {
    display: block;
    padding: 0;
  }

  .jobs-listing--header {
    display: none;
  }

  .jobs-listing--row {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 8px;
    padding: 20px;
    border-top: 1px solid var(--gcid-t4dp5ke4yf, #efefef);
  }

  .jobs-listing--row .jobs-listing--cell {
    border-top: none;
    padding: 0;
  }

  .jobs-listing--cell-action {
    text-align: left;
    padding-top: 8px;
  }

  .awards-listing {
    display: block;
    padding: 0;
  }

  .awards-listing--header {
    display: none;
  }

  .awards-listing--row {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 8px;
    padding: 20px;
    border-top: 1px solid var(--gcid-t4dp5ke4yf, #efefef);
  }

  .awards-listing--row .awards-listing--cell {
    border-top: none;
    padding: 0;
  }

  .awards-listing--cell-action {
    text-align: left;
    padding-top: 8px;
  }

  .documents-listing-wide--row {
    grid-template-columns: 1fr;
    row-gap: 10px;
    padding: 20px;
  }

  .documents-listing-wide--action {
    text-align: left;
    padding-top: 4px;
  }

  .documents-listing-featured--item {
    flex-direction: column;
  }

  .documents-listing-featured--media {
    width: 100%;
    height: auto;
    max-width: 280px;
  }

  .documents-grid--filter {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .documents-grid--filter select,
  .documents-grid--filters select {
    width: 100%;
    min-width: 0;
  }
}

/* --------------------------------------------------------------------------
   WooCommerce My Account — merged AVA account nav
   -------------------------------------------------------------------------- */

.woocommerce-account .woocommerce-MyAccount-navigation.ava-account-nav {
  width: 100%;
}

.woocommerce-account .ava-account-nav__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce-account .ava-account-nav__list li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce-account .ava-account-nav__list a {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 0;
  padding: 10px 14px;
  border: 1px solid var(--gcid-t4dp5ke4yf, #e6e6e6);
  border-radius: 8px;
  background: #fff;
  color: var(--gcid-body-color, #333);
  text-align: left;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.woocommerce-account .ava-account-nav__list a:hover,
.woocommerce-account .ava-account-nav__list a:focus {
  border-color: var(--gcid-primary-color, #1f6f78);
  color: var(--gcid-primary-color, #1f6f78);
  outline: none;
}

.woocommerce-account .ava-account-nav__list .is-active a,
.woocommerce-account .ava-account-nav__list li.is-active a {
  border-color: var(--gcid-primary-color, #1f6f78);
  background: var(--gcid-467wmelwgk, #eef7f8);
  color: var(--gcid-primary-color, #1f6f78);
}

.woocommerce-account .ava-account-nav__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.woocommerce-account .ava-account-nav__icon i {
  font-size: 1rem;
  color: inherit;
}

.woocommerce-account .ava-account-nav__label {
  font-family: var(--et_global_body_font, 'Lexend', sans-serif);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.woocommerce-account .woocommerce-MyAccount-content .pmpro_section_title,
.woocommerce-account .woocommerce-MyAccount-content .pmpro_card {
  max-width: 100%;
}

.woocommerce-account .woocommerce-MyAccount-content .pmpro_table {
  width: 100%;
}

.woocommerce-account .woocommerce-MyAccount-content a {
  color: var(--gcid-primary-color, #1f6f78);
}

/* Remove PMPro outer rounded card for Order History only */
.woocommerce-account .woocommerce-MyAccount-content #pmpro_account-orders .pmpro_card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.woocommerce-account .woocommerce-MyAccount-content #pmpro_account-orders .pmpro_card_content {
  padding: 0;
}

/* Separate content from side nav without nesting a second box around PMPro cards */
.woocommerce-account .woocommerce-MyAccount-content {
  padding-left: 28px;
  border-left: 1px solid var(--gcid-t4dp5ke4yf, #e6e6e6);
}

@media (min-width: 769px) {
  .woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) {
    display: flex;
    align-items: flex-start;
    gap: 36px;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation.ava-account-nav {
    flex: 0 0 220px;
    max-width: 220px;
  }

  .woocommerce-account .woocommerce-MyAccount-content {
    flex: 1 1 auto;
    min-width: 0;
  }
}

/* Stack billing / shipping address columns below ~1080px */
@media (max-width: 1080px) {
  .woocommerce-account .woocommerce-Addresses.u-columns,
  .woocommerce-account .woocommerce-Addresses.col2-set,
  .woocommerce-account .u-columns.woocommerce-Addresses {
    display: block;
    width: 100%;
  }

  .woocommerce-account .woocommerce-Addresses .u-column1,
  .woocommerce-account .woocommerce-Addresses .u-column2,
  .woocommerce-account .woocommerce-Addresses .col-1,
  .woocommerce-account .woocommerce-Addresses .col-2,
  .woocommerce-account .woocommerce-Address {
    float: none;
    width: 100% !important;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .woocommerce-account .woocommerce-Addresses .woocommerce-Address + .woocommerce-Address,
  .woocommerce-account .woocommerce-Addresses .u-column2,
  .woocommerce-account .woocommerce-Addresses .col-2 {
    margin-top: 28px;
  }
}

@media (max-width: 768px) {
  .woocommerce-account .woocommerce-MyAccount-content {
    padding-left: 0;
    border-left: none;
    padding-top: 20px;
    border-top: 1px solid var(--gcid-t4dp5ke4yf, #e6e6e6);
    margin-top: 8px;
  }

  .woocommerce-account .ava-account-nav__list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    overflow: visible;
    padding-bottom: 0;
  }

  .woocommerce-account .ava-account-nav__list li {
    flex: 1 1 calc(50% - 4px);
  }

  .woocommerce-account .ava-account-nav__list a {
    white-space: normal;
    padding: 10px 12px;
  }

  .woocommerce-account .ava-account-nav__label {
    font-size: 12px;
  }
}

/* -------------------------------------------------------------------------
   TEC archive/single: Divi Library hero sits above the calendar, full width
   ------------------------------------------------------------------------- */
.ava-tec-hero,
.ava-tec-hero .et-l,
.ava-tec-hero .et_builder_inner_content,
.ava-tec-hero .et_pb_section {
  width: 100%;
  max-width: none;
}

.tribe-events .ava-tec-hero,
.tribe-events-l-container .ava-tec-hero,
.tribe-events-before-html .ava-tec-hero {
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* -------------------------------------------------------------------------
   Soft floating particles overlay (Divi section class: ava-particles)
   Gradient stays in Divi Background; canvas sits above it, under content.
   ------------------------------------------------------------------------- */
.ava-particles {
  position: relative;
  overflow: hidden;
}

.ava-particles__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.ava-particles > .et_pb_row {
  position: relative;
  z-index: 1;
}

/* -------------------------------------------------------------------------
   Darkify: header logo swap + Divi section background overrides
   Toggle is html.darkify_dark_mode_enabled (not .darkify_style_all).
   ------------------------------------------------------------------------- */
html.darkify_dark_mode_enabled .et-l--header .et_pb_image_0_tb_header img,
html.darkify_dark_mode_enabled .et-l--header .ava-header-logo img {
  content: url("https://ava2026.ava.eu.com/wp-content/uploads/2026/06/Ava-web-logo-white.png");
}

/* Darkify secondary stripes (sections Darkify tags as alternate). */
html.darkify_dark_mode_enabled .et-l--post > .et_builder_inner_content .et_pb_section.darkify_style_secondary_bg {
  background: var(--darkify_dark_mode_secondary_bg) !important;
  background-color: var(--darkify_dark_mode_secondary_bg) !important;
}

/* Divi-striped sections without darkify_style_secondary_bg are handled in theme-scripts.js */
