/*
Theme Name: Astra AHSTC
Theme URI: https://localhost:8080
Description: Astra child theme for AHSTC branding and feature presentation.
Author: Local Build
Template: astra
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
Text Domain: astra-ahstc
*/

/*
  Theme-specific presentation for judge directory/map/upcoming events.
  Functionality lives in the MU plugin customizations/wp-mu-plugins/hsu-site-features.php.
*/
:root {
  --hsu-bg: #fafafa;
  --hsu-ink: #2f2116;
  --hsu-muted: #6a5645;
  --hsu-gold: #bf8521;
  --hsu-dark: #2a1a11;
  --hsu-line: #dbc9a9;
}

body.hsu-system-color-mode .ast-header-color-switcher-element {
  display: none;
}

body.hsu-system-color-mode.astra-dark-mode-enable {
  --hsu-bg: var(--ast-global-color-4);
  --hsu-ink: var(--ast-global-color-2);
  --hsu-muted: var(--ast-global-color-3);
  --hsu-dark: var(--ast-global-color-2);
  --hsu-line: var(--ast-global-color-6);
  --ast-comment-inputs-background: var(--ast-global-color-5);
  --ast-form-input-text: var(--ast-global-color-2);
  --ast-form-input-focus-text: var(--ast-global-color-2);
  --ast-form-field-color: var(--ast-global-color-3);
  --ast-border-color: var(--ast-global-color-7);
  --ast-global-dark-bg-style: var(--ast-global-color-5);
  --ast-global-dark-lfs: var(--ast-global-color-5);
  --ast-widget-bg-color: var(--ast-global-color-5);
  --ast-wc-container-head-bg-color: var(--ast-global-color-5);
  --ast-title-layout-bg: var(--ast-global-color-5);
  --ast-search-border-color: var(--ast-global-color-7);
}

body.hsu-system-color-mode.astra-dark-mode-enable .site-primary-footer-wrap[data-section="section-primary-footer-builder"] {
  background-color: var(--ast-global-color-5) !important;
}

body.hsu-system-color-mode.astra-dark-mode-enable .ast-builder-menu-1 .main-header-menu > .menu-item > .sub-menu {
  background: var(--ast-global-color-5);
  border-color: var(--ast-border-color);
}

body.hsu-system-color-mode.astra-dark-mode-enable .ast-builder-menu-1 .main-header-menu > .menu-item > .sub-menu .menu-link {
  color: var(--ast-global-color-2);
}

body.hsu-system-color-mode.astra-dark-mode-enable .ast-builder-menu-1 .main-header-menu > .menu-item > .sub-menu .menu-link:hover,
body.hsu-system-color-mode.astra-dark-mode-enable .ast-builder-menu-1 .main-header-menu > .menu-item > .sub-menu .menu-link:focus {
  background: var(--ast-global-color-4);
}

@media (min-width: 922px) {
  /* Lift the entire desktop header stack above Leaflet pane z-index values. */
  #masthead,
  #ast-desktop-header,
  #ast-desktop-header .ast-main-header-wrap {
    position: relative;
    z-index: 1300;
  }

  /* Keep desktop nav dropdowns above Leaflet map panes and controls. */
  .ast-primary-header-bar,
  .ast-builder-menu-1,
  .ast-builder-menu-1 .main-header-menu > .menu-item {
    position: relative;
  }

  .ast-primary-header-bar {
    z-index: 1200;
  }

  .ast-builder-menu-1 .main-header-menu > .menu-item > .sub-menu {
    z-index: 1201;
  }

  .ast-builder-menu-1 .main-header-menu > .menu-item.hsu-members-nav-item > .sub-menu {
    left: auto;
    right: 0;
  }
}

.hsu-leadership {
  display: grid;
  gap: 14px;
  background: #f2f2f2;
  padding: 12px;
}

.hsu-leadership-heading {
  margin: 0;
  padding: 10px 14px;
  background: #2b69c2;
  color: #ffffff;
  font-family: "Lora", Georgia, serif;
  font-style: italic;
  font-size: 2rem;
  line-height: 1.15;
}

.hsu-leadership-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.hsu-leadership-card {
  background: #ffffff;
  min-height: 120px;
}

.hsu-leadership-card--with-photo {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  align-items: center;
  padding-right: 1.5rem;
}

.hsu-leadership-card--no-photo {
  padding: 1rem 1.5rem;
}

.hsu-leadership-photo {
  width: 120px;
  height: 120px;
  overflow: hidden;
}

.hsu-leadership-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.hsu-leadership-card-body {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.hsu-leadership-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.3;
}

.hsu-leadership-location {
  margin: 0;
  font-size: 0.92rem;
  color: #2b3642;
  line-height: 1.35;
}

.hsu-leadership-details {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 2px;
  color: #2b3642;
  font-size: 0.92rem;
  line-height: 1.35;
}

.hsu-leadership-email {
  margin: 0;
  font-size: 0.92rem;
}

.hsu-leadership-email a {
  color: #2b3642;
}

.hsu-leadership-email a:hover,
.hsu-leadership-email a:focus {
  color: #1b2531;
}

.hsu-leadership-empty p {
  margin: 0;
}

.hsu-about-judge-query .wp-block-post-template.hsu-leadership-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.hsu-about-judge-query .wp-block-post {
  margin: 0;
}

.hsu-about-judge-query .hsu-leadership-card {
  background: #ffffff;
  min-height: 120px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding-right: 1.5rem;
}

.hsu-about-judge-query .hsu-leadership-photo {
  margin: 0;
  width: 120px;
  flex: 0 0 120px;
}

.hsu-about-judge-query .hsu-leadership-photo img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  display: block;
}

.hsu-about-judge-query .hsu-leadership-card-body {
  min-width: 0;
  width: 100%;
  display: grid;
  gap: 4px;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.hsu-about-judge-query .hsu-leadership-name {
  margin: 0;
}

.hsu-about-judge-query .hsu-leadership-role {
  margin: 0;
}

.hsu-about-judge-query .hsu-leadership-role .wp-block-post-excerpt__excerpt {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
}

.hsu-judge-profile-card {
  background: #ffffff;
  padding: 1rem;
}

.hsu-judge-profile-card .wp-block-post-featured-image {
  margin-bottom: 0.75rem;
}

.hsu-judge-profile-card .wp-block-post-title {
  margin-bottom: 0.3rem;
}

.hsu-judge-profile-card .wp-block-post-excerpt {
  margin-bottom: 0.45rem;
}

.hsu-judge-profile-card .wp-block-post-excerpt__more-link {
  display: none;
}

.hsu-judge-meta {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
}

.hsu-judge-meta + .hsu-judge-meta {
  margin-top: 0.2rem;
}

.hsu-judge-meta-label {
  font-weight: 600;
}

.hsu-judge-meta-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 2px;
}

.hsu-judge-meta--email a {
  color: inherit;
}

.hsu-judge-meta--email a:hover,
.hsu-judge-meta--email a:focus {
  color: inherit;
}

.judge-directory {
  display: grid;
  gap: 16px;
  background: #f2f2f2;
  padding: 12px;
}

.judge-directory-actions {
  margin-bottom: 14px;
}

.judge-level-group + .judge-level-group {
  padding-top: 2px;
}

.judge-level-title {
  margin: 0 0 10px;
  padding: 10px 14px;
  background: #2b69c2;
  color: #ffffff;
  font-family: "Lora", Georgia, serif;
  font-style: italic;
  font-size: 2rem;
  line-height: 1.15;
}

.judge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.wp-block-post-template.judge-grid {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hsu-judge-state-query .wp-block-post {
  margin: 0;
}

.hsu-judge-state-query .judge-card {
  min-height: 118px;
}

.hsu-judge-state-query .judge-card-content {
  display: flex;
  gap: 10px;
  align-items: center;
}

.hsu-judge-state-query .wp-block-post.has-post-thumbnail .judge-card {
  padding-right: 1.5rem;
}

.hsu-judge-state-query .wp-block-post:not(.has-post-thumbnail) .judge-card {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.hsu-judge-state-query .wp-block-post:not(.has-post-thumbnail) .judge-card-content {
  min-height: 118px;
}

.hsu-judge-state-query figure.judge-card-photo {
  margin: 0;
  width: 120px;
  flex: 0 0 120px;
}

.hsu-judge-state-query .judge-card-photo img {
  width: 120px;
  height: 120px;
}

.judge-card {
  border: 0;
  background: #ffffff;
  min-height: 118px;
}

.judge-card-content {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  align-items: center;
}

.judge-card--no-photo {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.judge-card--with-photo {
  padding-right: 1.5rem;
}

.judge-card--no-photo .judge-card-content {
  grid-template-columns: 1fr;
  min-height: 118px;
}

.judge-card-photo {
  display: block;
  width: 120px;
  height: 120px;
  overflow: hidden;
}

.judge-card-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  box-shadow: none;
}

.judge-card-details {
  min-width: 0;
  --judge-card-text-gap: 4px;
  display: flex;
  flex-direction: column;
  gap: var(--judge-card-text-gap);
}

.judge-card-header {
  display: flex;
  flex-direction: column;
  gap: var(--judge-card-text-gap);
}

.judge-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.3;
}

.judge-card-level {
  display: block;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.35;
}

.judge-location,
.judge-email {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
}

.judge-email a {
  color: inherit;
}

.judge-email a:hover,
.judge-email a:focus {
  color: inherit;
}

.judge-directory-empty p {
  margin: 0;
}

.judge-map-shell {
  display: grid;
  gap: 14px;
}

.judge-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.judge-map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #e8dcc6;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.9rem;
  background: #fffdf8;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
  color: var(--hsu-ink);
  text-decoration: none;
  transition:
    background-color 120ms ease,
    border-color 120ms ease,
    color 120ms ease,
    opacity 120ms ease;
}

.judge-map-legend-item.is-active {
  background: #fff7e8;
  border-color: #d8b57c;
  color: #3b2a16;
}

.judge-map-legend-item.is-active .judge-map-legend-state {
  background: #f4c66a;
  color: #3b2a16;
  border-color: #c78f2c;
}

.judge-map-legend-item:not(.is-active) {
  background: #f4f6f8;
  border-color: #d0d6dd;
  color: #66737f;
  opacity: 0.9;
}

.judge-map-legend-item:not(.is-active) .judge-map-legend-label,
.judge-map-legend-item:not(.is-active) .judge-map-legend-count {
  color: #6f7b86;
}

.judge-map-legend-item:not(.is-active) .judge-map-legend-state {
  background: #ffffff;
  color: #6f7b86;
  border-color: #c2cad4;
}

.judge-map-legend-label {
  color: inherit;
  font-weight: 600;
}

.judge-map-legend-item:focus-visible {
  outline: 2px solid #2f6fb9;
  outline-offset: 2px;
}

.judge-map-legend-swatch {
  width: 12px;
  height: 12px;
  box-shadow: inset 0 0 0 2px #ffffff;
}

.judge-map-legend-swatch--circle {
  border-radius: 50%;
}

.judge-map-legend-swatch--square {
  border-radius: 0;
}

.judge-map-legend-swatch--diamond {
  border-radius: 0;
  transform: rotate(45deg);
}

.judge-map-legend-count {
  color: var(--hsu-muted);
}

.judge-map-legend-state {
  margin-left: 2px;
  padding: 2px 6px;
  border: 1px solid currentColor;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

.judge-map-canvas {
  width: 100%;
  min-height: 460px;
  border: 1px solid #dbe3ec;
  background: #f7f9fc;
}

.judge-map-status {
  margin: 0;
  color: #607286;
  font-size: 0.92rem;
}

.judge-map-empty {
  margin: 0;
}

.judge-map-unmapped {
  border-top: 1px dashed #d2d9e1;
  padding-top: 8px;
}

.judge-map-unmapped summary {
  cursor: pointer;
  font-weight: 600;
}

.judge-map-unmapped ul {
  margin: 8px 0 0;
}

.judge-map-unmapped li {
  margin: 0 0 4px;
}

.judge-map-unmapped li span {
  color: #607286;
}

.judge-marker-icon {
  background: transparent;
  border: 0;
}

.judge-marker-icon span {
  display: block;
  width: 16px;
  height: 16px;
  box-shadow: 0 0 0 2px #ffffff, 0 1px 4px rgba(0, 0, 0, 0.35);
}

.judge-marker-icon span.judge-marker-shape-circle {
  border-radius: 50%;
}

.judge-marker-icon span.judge-marker-shape-square {
  border-radius: 0;
}

.judge-marker-icon span.judge-marker-shape-diamond {
  border-radius: 0;
  transform: rotate(45deg);
}

.judge-popup {
  min-width: 180px;
}

.judge-popup-photo {
  width: 54px;
  height: 54px;
  overflow: hidden;
  margin: 0 0 8px;
}

.judge-popup-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  box-shadow: none;
}

.hsu-home-upcoming {
  --hsu-home-surface: var(--wp--preset--color--ast-global-color-5, var(--ast-global-color-5, #f8fafc));
  --hsu-home-border: var(--wp--preset--color--ast-global-color-7, var(--ast-global-color-7, #cbd5e1));
  --hsu-home-heading: var(--wp--preset--color--ast-global-color-2, var(--ast-global-color-2, #111827));
  --hsu-home-meta: var(--wp--preset--color--ast-global-color-3, var(--ast-global-color-3, #475569));
  --hsu-home-link: var(--wp--preset--color--ast-global-color-0, var(--ast-global-color-0, #0f5ea8));
  margin-block: var(--wp--preset--spacing--60, 3rem);
  padding: 2rem;
}

.hsu-home-upcoming-heading {
  margin: 0 0 var(--wp--preset--spacing--40, 1rem);
  color: var(--hsu-home-heading);
  font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1.12;
}

.hsu-home-upcoming-grid {
  display: grid;
  gap: var(--wp--preset--spacing--40, 1rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hsu-home-upcoming-panel {
  border: 1px solid var(--hsu-home-border);
  background: var(--hsu-home-surface);
  padding: 2rem;
  text-align: left;
}

.hsu-home-upcoming-panel-title {
  margin: 0 0 var(--wp--preset--spacing--30, 0.67rem);
  color: var(--hsu-home-heading);
  font-size: clamp(1.5rem, 1.25rem + 0.8vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
}

.hsu-home-upcoming .hsu-home-upcoming-list {
  list-style: none;
  margin: 0;
  padding: 0;
  padding-inline-start: 0;
}

.hsu-home-upcoming .hsu-home-upcoming-list .hsu-home-upcoming-item {
  margin-left: 0;
  padding-left: 0;
  list-style: none;
}

.hsu-home-upcoming-item + .hsu-home-upcoming-item {
  margin-top: var(--wp--preset--spacing--30, 0.67rem);
  padding-top: var(--wp--preset--spacing--30, 0.67rem);
  border-top: 1px dashed var(--hsu-home-border);
}

.hsu-home-upcoming-item-title {
  margin: 0;
  color: var(--hsu-home-heading);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.hsu-home-upcoming-item-title a {
  color: inherit;
  text-decoration: none;
}

.hsu-home-upcoming-item-title a:hover,
.hsu-home-upcoming-item-title a:focus {
  color: var(--hsu-home-link);
  text-decoration: underline;
}

.hsu-home-upcoming-item-date,
.hsu-home-upcoming-item-location,
.hsu-home-upcoming-item-meta {
  margin: 0.34rem 0 0;
  color: var(--hsu-home-meta);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  line-height: 1.4;
}

.hsu-home-upcoming-item-location {
  margin-top: 0.12rem;
}

.hsu-home-upcoming-empty {
  margin: 0;
  color: var(--hsu-home-meta);
  font-size: 1rem;
  line-height: 1.4;
}

.hsu-home-upcoming-link-row {
  margin: var(--wp--preset--spacing--30, 0.67rem) 0 0;
  margin-bottom: 0;
}

.entry-content p.hsu-home-upcoming-link-row {
  margin-top: var(--wp--preset--spacing--30, 0.67rem);
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;
  margin-block-end: 0;
}

.hsu-home-upcoming-link {
  color: var(--hsu-home-link);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  font-weight: 500;
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.1em;
}

.hsu-home-upcoming-link:hover,
.hsu-home-upcoming-link:focus {
  color: var(--wp--preset--color--ast-global-color-1, var(--ast-global-color-1, #1b67b5));
  text-decoration: underline;
}

.upcoming-events-directory {
  display: grid;
  gap: 14px;
}

.hsu-events-filter {
  margin: 0 0 var(--wp--preset--spacing--40, 1rem);
}

.hsu-events-filter-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--wp--preset--spacing--30, 0.67rem);
  margin: 0;
  padding: 0;
}

.hsu-events-filter-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--wp--preset--color--ast-global-color-7, var(--ast-global-color-7, #cbd5e1));
  border-radius: 999px;
  background: var(--wp--preset--color--ast-global-color-5, var(--ast-global-color-5, #ffffff));
  color: var(--wp--preset--color--ast-global-color-2, var(--ast-global-color-2, #111827));
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.hsu-events-filter-link:visited {
  color: var(--wp--preset--color--ast-global-color-2, var(--ast-global-color-2, #111827));
}

.hsu-events-filter-link:hover,
.hsu-events-filter-link:focus {
  color: var(--wp--preset--color--ast-global-color-1, var(--ast-global-color-1, #1b67b5));
  border-color: var(--wp--preset--color--ast-global-color-0, var(--ast-global-color-0, #0f5ea8));
  background: var(--wp--preset--color--ast-global-color-6, var(--ast-global-color-6, #f8fafc));
  text-decoration: none;
}

.hsu-events-filter-link.is-active,
.hsu-events-filter-link[aria-current="page"] {
  color: #fff;
  border-color: var(--wp--preset--color--ast-global-color-0, var(--ast-global-color-0, #0f5ea8));
  background: var(--wp--preset--color--ast-global-color-0, var(--ast-global-color-0, #0f5ea8));
}

.hsu-events-filter-link.is-active:visited,
.hsu-events-filter-link[aria-current="page"]:visited {
  color: #fff;
}

.upcoming-events-grid {
  display: grid;
  gap: 14px;
}

.upcoming-events-directory {
  --hsu-events-surface: var(--wp--preset--color--ast-global-color-5, var(--ast-global-color-5, #ffffff));
  --hsu-events-surface-subtle: var(--wp--preset--color--ast-global-color-4, var(--ast-global-color-4, #f7f9fc));
  --hsu-events-border: var(--wp--preset--color--ast-global-color-7, var(--ast-global-color-7, #dbe3ec));
  --hsu-events-heading: var(--wp--preset--color--ast-global-color-2, var(--ast-global-color-2, #1f2933));
  --hsu-events-text: var(--wp--preset--color--ast-global-color-3, var(--ast-global-color-3, #607286));
  --hsu-events-link-bg: var(--wp--preset--color--ast-global-color-5, var(--ast-global-color-5, #ffffff));
  --hsu-events-link-hover-bg: var(--wp--preset--color--ast-global-color-4, var(--ast-global-color-4, #f7edd9));
  --hsu-events-accent: var(--wp--preset--color--ast-global-color-0, var(--ast-global-color-0, #1a73e8));
}

.upcoming-events-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.upcoming-events-list {
  min-width: 0;
}

.upcoming-events-calendar {
  border: 1px solid var(--hsu-events-border);
  background: var(--hsu-events-surface);
  padding: 12px;
  color: var(--hsu-events-heading);
}

.upcoming-calendar-heading {
  margin: 0 0 10px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--hsu-events-heading);
  letter-spacing: 0.01em;
}

.upcoming-calendar-month + .upcoming-calendar-month {
  margin-top: 12px;
}

.upcoming-calendar-month-title {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--hsu-events-heading);
}

.upcoming-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-bottom: 4px;
}

.upcoming-calendar-weekdays span {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--hsu-events-text);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.upcoming-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--hsu-events-border);
  background: var(--hsu-events-border);
}

.upcoming-calendar-day {
  min-height: 72px;
  background: var(--hsu-events-surface);
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--hsu-events-heading);
}

.upcoming-calendar-day--empty {
  background: var(--hsu-events-surface-subtle);
}

.upcoming-calendar-day-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-left: auto;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--hsu-events-heading);
}

.upcoming-calendar-day--today .upcoming-calendar-day-number {
  background: var(--hsu-events-accent);
  color: #ffffff;
}

.upcoming-calendar-day-events {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.upcoming-calendar-chip {
  display: block;
  max-width: 100%;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upcoming-calendar-chip--show {
  background: #e8f0fe;
  color: #1a73e8;
}

.upcoming-calendar-chip--training {
  background: #e6f4ea;
  color: #137333;
}

.upcoming-calendar-chip--conference {
  background: #f3e8ff;
  color: #7c3aed;
}

.upcoming-calendar-more {
  font-size: 0.72rem;
  color: var(--hsu-events-text);
  font-weight: 600;
}

.upcoming-event-card {
  border: 1px solid var(--hsu-events-border);
  border-radius: 10px;
  background: var(--hsu-events-surface);
  padding: 14px 16px;
  color: var(--hsu-events-heading);
}

.upcoming-event-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 6px;
}

.upcoming-event-date {
  margin: 0;
  font-size: 0.92rem;
  color: var(--hsu-muted);
  font-weight: 600;
}

.upcoming-event-type-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.73rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.upcoming-event-type-tag--show {
  background: #e8f0fe;
  border-color: #c6dafc;
  color: #1a73e8;
}

.upcoming-event-type-tag--training {
  background: #e6f4ea;
  border-color: #c2e4cc;
  color: #137333;
}

.upcoming-event-type-tag--conference {
  background: #f3e8ff;
  border-color: #ddccff;
  color: #7c3aed;
}

.upcoming-event-title {
  margin: 0 0 6px;
  font-size: 1.3rem;
  line-height: 1.3;
  color: var(--hsu-events-heading);
}

.upcoming-event-location {
  margin: 0;
  color: var(--hsu-muted);
  font-size: 0.95rem;
}

.upcoming-event-host {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--hsu-muted);
  font-size: 0.95rem;
}

.upcoming-event-host-photo {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  overflow: hidden;
}

.upcoming-event-host-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  box-shadow: none;
}

.upcoming-event-host-text {
  margin: 0;
  min-width: 0;
}

.upcoming-event-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.upcoming-event-link {
  display: inline-block;
  border: 1px solid var(--hsu-events-border);
  border-radius: 999px;
  padding: 7px 12px;
  background: var(--hsu-events-link-bg);
  color: var(--hsu-events-heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.upcoming-event-link:hover,
.upcoming-event-link:focus {
  background: var(--hsu-events-link-hover-bg);
  text-decoration: none;
}

.upcoming-event-link-register {
  border-color: var(--hsu-gold);
  background: var(--hsu-gold);
  color: #ffffff;
}

.upcoming-event-link-register:visited {
  color: #ffffff;
}

.upcoming-event-link-register:hover,
.upcoming-event-link-register:focus {
  background: #a96f0c;
}

.upcoming-events-empty p {
  margin: 0;
}

/* Normalize WooCommerce checkout fields after Astra's generated checkout CSS. */
body.woocommerce-checkout .woocommerce form.checkout {
  --hsu-woo-field-height: 60px;
  --hsu-woo-field-filled-height: 60px;
  --hsu-woo-field-line-height: 24px;
  --hsu-woo-field-padding-block: 17px;
  --hsu-woo-field-filled-padding-top: 27px;
  --hsu-woo-field-filled-padding-bottom: 7px;
  --hsu-woo-field-padding-inline: 16px;
}

body.woocommerce-checkout .woocommerce form.checkout .form-row input.input-text:not(#wc-stripe-hidden-style-input),
body.woocommerce-checkout .woocommerce form.checkout .form-row select,
body.woocommerce-checkout .woocommerce form.checkout .form-row .select2-container--default .select2-selection--single {
  box-sizing: border-box;
  height: auto;
  min-height: var(--hsu-woo-field-height);
  padding-block: var(--hsu-woo-field-padding-block);
  padding-inline: var(--hsu-woo-field-padding-inline);
  line-height: var(--hsu-woo-field-line-height);
}

body.woocommerce-checkout .woocommerce form.checkout .form-row input.input-text:not(#wc-stripe-hidden-style-input) {
  overflow: visible;
}

body.woocommerce-checkout .woocommerce form.checkout .form-row select {
  padding-right: 44px;
  background-position: calc(100% - 12px) 50%;
}

body.woocommerce-checkout.woocommerce-page .woocommerce form.checkout .form-row.ast-animate-input select,
body.woocommerce-checkout.woocommerce-page .woocommerce form.checkout .form-row.ast-animate-input .select2-container--default .select2-selection--single {
  padding-block: var(--hsu-woo-field-padding-block);
}

body.woocommerce-checkout .woocommerce form.checkout .form-row.ast-animate-input:not(#billing_country_field):not(#shipping_country_field) input.input-text:not(#wc-stripe-hidden-style-input),
body.woocommerce-checkout .woocommerce form.checkout .form-row.ast-animate-input:not(#billing_country_field):not(#shipping_country_field) select,
body.woocommerce-checkout .woocommerce form.checkout .form-row.ast-animate-input:not(#billing_country_field):not(#shipping_country_field) .select2-container--default .select2-selection--single {
  min-height: var(--hsu-woo-field-filled-height);
  padding-top: var(--hsu-woo-field-filled-padding-top);
  padding-bottom: var(--hsu-woo-field-filled-padding-bottom);
}

body.woocommerce-checkout .woocommerce form.checkout .form-row .select2-container {
  line-height: var(--hsu-woo-field-line-height);
}

body.woocommerce-checkout .woocommerce form.checkout .form-row .select2-container--default .select2-selection--single {
  display: flex;
  align-items: center;
  margin: 0;
  padding-right: 44px;
  background-position: calc(100% - 12px) 50%;
}

body.woocommerce-checkout .woocommerce form.checkout .form-row .select2-container--default .select2-selection--single .select2-selection__rendered {
  display: block;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
  line-height: var(--hsu-woo-field-line-height);
}

body.woocommerce-checkout .woocommerce form.checkout .form-row .select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
}

body.woocommerce-checkout .woocommerce form.checkout .form-row textarea.input-text {
  height: auto;
  min-height: 72px;
  padding-block: var(--hsu-woo-field-padding-block);
  padding-inline: var(--hsu-woo-field-padding-inline);
  line-height: var(--hsu-woo-field-line-height);
}

@media (max-width: 544px) {
  body.woocommerce-checkout .woocommerce form.checkout .form-row.form-row-first,
  body.woocommerce-checkout .woocommerce form.checkout .form-row.form-row-last,
  body.woocommerce-checkout .woocommerce form.checkout .form-row.ast-column-33,
  body.woocommerce-checkout .woocommerce form.checkout .form-row.ast-column-50 {
    float: none;
    width: 100%;
  }
}

/* Keep Civi event registration aligned with AHSTC styling under Astra. */
body.civicrm-event-register .ast-container {
  padding-top: clamp(0.8rem, 2vw, 1.2rem);
  padding-bottom: clamp(0.8rem, 2vw, 1.2rem);
}

body.civicrm-event-register {
  --hsu-civi-select-surface: var(--ast-comment-inputs-background, var(--ast-global-color-4, #ffffff));
  --hsu-civi-select-border: var(--ast-border-color, #cbd5e1);
  --hsu-civi-select-text: var(--ast-form-input-text, #475569);
  --hsu-civi-select-placeholder: var(--ast-form-field-color, #9ca3af);
  --hsu-civi-select-focus: var(--ast-global-color-0, #046bd2);
  --hsu-civi-select-focus-text: var(--ast-form-input-focus-text, #475569);
}

body.civicrm-event-register #crm-container.crm-public {
  border: 0;
  padding: 0;
  background: transparent;
}

body.civicrm-event-register #crm-container .crm-event-register-form-block {
  max-width: 860px;
  margin: 0 auto;
}

body.hsu-system-color-mode.astra-dark-mode-enable.civicrm-event-register #crm-container #intro_text > div {
  background: var(--ast-global-color-5) !important;
  border: 1px solid var(--ast-border-color) !important;
  color: var(--ast-global-color-2) !important;
}

body.civicrm-event-register #crm-container .crm-profile,
body.civicrm-event-register #crm-container fieldset.priceset-group {
  margin: 0 0 1rem;
  padding: 0 0 0.45rem;
  border: 0;
  background: transparent;
}

body.civicrm-event-register #crm-container #noOfparticipants {
  margin: 0 0 1rem;
  padding: 0 0 0.45rem;
}

body.civicrm-event-register #crm-container #noOfparticipants .content {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  align-items: center;
  column-gap: 1rem;
  row-gap: 0.45rem;
}

body.civicrm-event-register #crm-container #noOfparticipants .content br {
  display: none;
}

body.civicrm-event-register #crm-container #noOfparticipants .content .description {
  grid-column: 1 / -1;
  margin: 0;
}

body.civicrm-event-register #crm-container .crm-profile > legend,
body.civicrm-event-register #crm-container fieldset.priceset-group > legend {
  width: 100%;
  margin: 0 0 0.75rem;
  padding: 0 0 0.35rem;
  border-bottom: 1px solid var(--hsu-line);
  color: var(--hsu-ink);
  font-family: "Lora", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
}

body.civicrm-event-register #crm-container .crm-profile .crm-section,
body.civicrm-event-register #crm-container .crm-profile-id-12 .crm-section {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 0.55rem 1rem;
  align-items: center;
  margin: 0 0 0.8rem;
}

body.civicrm-event-register #crm-container .crm-profile .crm-section .label,
body.civicrm-event-register #crm-container .crm-profile .crm-section .content {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
}

body.civicrm-event-register #crm-container .crm-profile .crm-section .label {
  text-align: right;
  font-weight: 600;
  color: var(--hsu-ink);
}

body.civicrm-event-register #crm-container .participant_info-group {
  margin: 0 0 1.2rem;
}

body.civicrm-event-register #crm-container .participant_info-group fieldset.label-left.no-border {
  margin: 0 0 0.9rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--hsu-line);
  border-radius: 8px;
  background: var(--ast-global-color-5, #ffffff);
}

body.civicrm-event-register #crm-container .participant_info-group .crm-profile-view-title,
body.civicrm-event-register #crm-container .participant_info-group .crm-additional-profile-view-title {
  display: block;
  margin: 0 0 0.85rem;
  padding: 0 0 0.4rem;
  border-bottom: 1px solid var(--hsu-line);
  color: var(--hsu-ink);
  font-family: "Lora", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
}

body.civicrm-event-register #crm-container .participant_info-group .crm-section {
  display: grid;
  grid-template-columns: minmax(0, 210px) minmax(0, 1fr);
  gap: 0.4rem 1rem;
  align-items: start;
  margin: 0;
  padding: 0.55rem 0;
}

body.civicrm-event-register #crm-container .participant_info-group .crm-section + .crm-section {
  border-top: 1px solid var(--hsu-line);
}

body.civicrm-event-register #crm-container .participant_info-group .crm-section .label,
body.civicrm-event-register #crm-container .participant_info-group .crm-section .content {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
}

body.civicrm-event-register #crm-container .participant_info-group .crm-section .label {
  text-align: right;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--hsu-muted);
}

body.civicrm-event-register #crm-container .participant_info-group .crm-section .content {
  min-width: 0;
  color: var(--hsu-ink);
  font-weight: 500;
  overflow-wrap: anywhere;
}

body.civicrm-event-register #crm-container .crm-marker {
  color: #8b2500;
}

body.civicrm-event-register #crm-container input.crm-form-text,
body.civicrm-event-register #crm-container select.crm-form-select,
body.civicrm-event-register #crm-container textarea.crm-form-textarea {
  width: 100%;
  max-width: 380px;
}

body.civicrm-event-register #crm-container .select2-container {
  width: 100%;
  max-width: 380px;
}

body.civicrm-event-register #crm-container .select2-container .select2-choice {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid var(--hsu-civi-select-border);
  border-radius: 4px;
  background: var(--hsu-civi-select-surface);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  color: var(--hsu-civi-select-text);
  font-family: inherit;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  padding: 7px 58px 7px 16px;
  text-decoration: none;
}

body.civicrm-event-register #crm-container .select2-container.select2-allowclear .select2-choice {
  padding-right: 96px;
}

body.civicrm-event-register #crm-container .select2-container .select2-choice > .select2-chosen {
  margin-right: 0;
  color: inherit;
  line-height: 24px;
  text-decoration: none;
}

body.civicrm-event-register #crm-container .select2-container .select2-choice.select2-default,
body.civicrm-event-register #crm-container .select2-container .select2-choice.select2-default .select2-chosen,
body.civicrm-event-register #crm-container .select2-container .select2-choice > .select2-chosen.select2-default {
  color: var(--hsu-civi-select-text) !important;
}

body.civicrm-event-register #crm-container .select2-container .select2-choice abbr {
  display: none;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 0;
  background: none !important;
  text-decoration: none;
  top: 50%;
  right: 58px;
  transform: translateY(-50%);
}

body.civicrm-event-register #crm-container .select2-container.select2-allowclear:not(.select2-container-disabled) .select2-choice abbr {
  display: inline-flex;
}

body.civicrm-event-register #crm-container .select2-container .select2-choice abbr::before {
  content: "×";
  color: var(--hsu-civi-select-text);
  font-size: 22px;
  line-height: 1;
}

body.civicrm-event-register #crm-container .select2-container .select2-choice abbr:hover::before,
body.civicrm-event-register #crm-container .select2-container .select2-choice abbr:focus::before {
  color: var(--ast-global-color-1);
}

body.civicrm-event-register #crm-container .select2-container .select2-choice .select2-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  border-left: 1px solid var(--hsu-civi-select-border);
  border-radius: 0 4px 4px 0;
  background: transparent;
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
}

body.civicrm-event-register #crm-container .select2-container .select2-choice .select2-arrow::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 4.25 6 8l4-3.75' stroke='%23334155' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 12px 12px;
}

body.hsu-system-color-mode.astra-dark-mode-enable.civicrm-event-register #crm-container .select2-container .select2-choice .select2-arrow::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 4.25 6 8l4-3.75' stroke='%23FFFFFF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

body.civicrm-event-register #crm-container .select2-container .select2-choice .select2-arrow b {
  display: none;
}

body.civicrm-event-register #crm-container .select2-container.select2-container-active .select2-choice,
body.civicrm-event-register #crm-container .select2-container.select2-dropdown-open .select2-choice {
  border-color: var(--hsu-civi-select-focus);
  box-shadow: none;
  outline: none;
}

body.civicrm-event-register .select2-drop.crm-container.crm-public {
  border: 1px solid var(--hsu-civi-select-border) !important;
  border-top: none !important;
  border-radius: 4px;
  background: var(--hsu-civi-select-surface) !important;
  background-color: var(--hsu-civi-select-surface) !important;
  background-image: none !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  color: var(--hsu-civi-select-text) !important;
}

body.civicrm-event-register .select2-drop.crm-container.crm-public .select2-search {
  background: var(--hsu-civi-select-surface) !important;
  border-bottom: 1px solid var(--hsu-civi-select-border);
  padding: 8px;
}

body.civicrm-event-register .select2-drop.crm-container.crm-public .select2-search input {
  min-height: 40px;
  border: 1px solid var(--hsu-civi-select-border);
  border-radius: 4px;
  background: var(--hsu-civi-select-surface);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  color: var(--hsu-civi-select-text);
  font-family: inherit;
  font-size: 16px;
  line-height: 24px;
  padding: 8px 12px;
  background-image: none;
}

body.civicrm-event-register .select2-drop.crm-container.crm-public .select2-search input:focus {
  border-color: var(--hsu-civi-select-focus);
  box-shadow: none;
  outline: none;
  color: var(--hsu-civi-select-focus-text);
}

body.civicrm-event-register .select2-drop.crm-container.crm-public .select2-results {
  margin: 0 !important;
  padding: 0 !important;
  background: var(--hsu-civi-select-surface) !important;
  background-color: var(--hsu-civi-select-surface) !important;
}

body.civicrm-event-register .select2-drop.crm-container.crm-public .select2-results li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  background: var(--hsu-civi-select-surface) !important;
  background-color: var(--hsu-civi-select-surface) !important;
}

body.civicrm-event-register .select2-drop.crm-container.crm-public .select2-results .select2-result-label {
  padding: 8px 12px;
  background: var(--hsu-civi-select-surface) !important;
  background-color: var(--hsu-civi-select-surface) !important;
  color: var(--hsu-civi-select-text);
}

body.civicrm-event-register .select2-drop.crm-container.crm-public .select2-results .select2-highlighted,
body.civicrm-event-register .select2-drop.crm-container.crm-public .select2-results .select2-highlighted .select2-result-label {
  background: var(--hsu-civi-select-focus) !important;
  background-color: var(--hsu-civi-select-focus) !important;
  color: #ffffff;
}

body.civicrm-event-register .select2-drop.crm-container.crm-public .select2-results .select2-highlighted .select2-result-label,
body.civicrm-event-register .select2-drop.crm-container.crm-public .select2-results .select2-highlighted .crm-select2-row-label,
body.civicrm-event-register .select2-drop.crm-container.crm-public .select2-results .select2-highlighted .crm-select2-row-description,
body.civicrm-event-register .select2-drop.crm-container.crm-public .select2-results .select2-highlighted .crm-select2-row-description p {
  color: #ffffff !important;
}

body.civicrm-event-register .select2-drop.crm-container.crm-public .select2-results .select2-highlighted em {
  background: transparent;
}

body.civicrm-event-register #crm-container .select2-container.select2-container-disabled .select2-choice,
body.civicrm-event-register #crm-container .select2-container.select2-container-disabled .select2-choice .select2-arrow {
  border-color: var(--hsu-civi-select-border);
  background: var(--hsu-civi-select-surface);
  cursor: not-allowed;
  opacity: 0.7;
}

body.civicrm-event-register #crm-container .priceset-group input.crm-form-text {
  max-width: 5.8rem;
  text-align: center;
}

body.civicrm-event-register #crm-container .crm-price-amount-amount {
  font-weight: 700;
  color: var(--hsu-dark);
}

body.civicrm-event-register #crm-container #priceset .crm-option-label-pair {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

body.civicrm-event-register #crm-container #priceset .crm-option-label-pair input.crm-form-radio {
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--ast-global-color-0, #046bd2);
}

body.civicrm-event-register #crm-container #priceset .crm-option-label-pair label {
  margin: 0;
}

body.civicrm-event-register #crm-container #pricesetTotal {
  margin-top: 0.8rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--hsu-line);
}

body.civicrm-event-register #crm-container #pricevalue {
  font-weight: 700;
  color: var(--hsu-dark);
}

body.civicrm-event-register #crm-container #billing-payment-block {
  margin-top: 1.5rem;
  padding: 1rem;
  border: 1px solid var(--ast-border-color, #cbd5e1);
  border-radius: 4px;
  background: var(--ast-global-color-5, #f0f5fa);
}

body.civicrm-event-register #crm-container #billing-payment-block::before {
  content: "Payment details";
  display: block;
  margin: 0 0 0.75rem;
  color: var(--hsu-ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

body.civicrm-event-register #crm-container #billing-payment-block #crm-payment-js-billing-form-container.stripe {
  margin: 0;
}

body.hsu-system-color-mode.astra-dark-mode-enable.civicrm-event-register #crm-container .StripeElement,
body.hsu-system-color-mode.astra-dark-mode-enable.civicrm-event-register #crm-container #card-element {
  border: 1px solid var(--ast-border-color) !important;
  background: var(--ast-global-color-5) !important;
  box-shadow: none !important;
}

body.civicrm-event-register #crm-container .messages.status {
  border: 1px solid #d9cf7a;
  border-radius: 0;
  background: #f7f3c8;
  color: #43351a;
  padding: 0.7rem 0.9rem;
}

body.hsu-system-color-mode.astra-dark-mode-enable.civicrm-event-register #crm-container .messages.status {
  border-color: var(--ast-global-color-6);
  background: var(--ast-global-color-5);
  color: var(--ast-global-color-2);
}

body.civicrm-event-register #crm-container .cms_user-section a.button,
body.civicrm-event-register #crm-container .crm-submit-buttons .crm-form-submit {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--hsu-dark);
  border-radius: 0;
  background: var(--hsu-dark);
  color: #fff;
  text-shadow: none;
  box-shadow: none;
}

body.civicrm-event-register #crm-container .cms_user-section a.button:hover,
body.civicrm-event-register #crm-container .crm-submit-buttons .crm-form-submit:hover,
body.civicrm-event-register #crm-container .crm-submit-buttons .crm-form-submit:focus {
  border-color: #0a0f15;
  background: #0a0f15;
  text-decoration: none;
}

body.civicrm-event-register #crm-container .crm-submit-buttons .crm-form-submit {
  border-color: var(--ast-global-color-0, #046bd2);
  border-radius: 0;
  background: var(--ast-global-color-0, #046bd2);
  color: #fff;
}

body.civicrm-event-register #crm-container .crm-submit-buttons .crm-form-submit:hover,
body.civicrm-event-register #crm-container .crm-submit-buttons .crm-form-submit:focus {
  border-color: var(--ast-global-color-1, #045cb4);
  background: var(--ast-global-color-1, #045cb4);
}

body.civicrm-event-register #crm-container .crm-submit-buttons {
  margin-top: 1rem;
  float: none;
  text-align: left;
}

@media (max-width: 980px) {
  .hsu-home-upcoming-grid {
    grid-template-columns: 1fr;
  }

  .upcoming-events-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  body.civicrm-event-register #crm-container .crm-profile .crm-section,
  body.civicrm-event-register #crm-container .crm-profile-id-12 .crm-section,
  body.civicrm-event-register #crm-container .participant_info-group .crm-section {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  body.civicrm-event-register #crm-container #noOfparticipants .content {
    grid-template-columns: 1fr;
  }

  body.civicrm-event-register #crm-container .crm-profile .crm-section .label,
  body.civicrm-event-register #crm-container .participant_info-group .crm-section .label {
    text-align: left;
  }

  body.civicrm-event-register #crm-container input.crm-form-text,
  body.civicrm-event-register #crm-container select.crm-form-select,
  body.civicrm-event-register #crm-container textarea.crm-form-textarea,
  body.civicrm-event-register #crm-container .select2-container {
    max-width: none;
  }

  .judge-grid {
    grid-template-columns: 1fr;
  }

  .hsu-leadership-grid {
    grid-template-columns: 1fr;
  }

  .hsu-leadership-card--with-photo {
    grid-template-columns: 96px 1fr;
  }

  .hsu-leadership-photo {
    width: 96px;
    height: 96px;
  }

  .hsu-about-judge-query .wp-block-post-template.hsu-leadership-grid {
    grid-template-columns: 1fr;
  }

  .hsu-about-judge-query .hsu-leadership-photo,
  .hsu-about-judge-query .hsu-leadership-photo img {
    width: 96px;
    height: 96px;
  }

  .hsu-judge-state-query figure.judge-card-photo,
  .hsu-judge-state-query .judge-card-photo img {
    width: 96px;
    height: 96px;
  }
}
