/*
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;
}

@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;
  color: #2b3642;
  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: #2b3642;
}

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

.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;
  color: #1d2835;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.35;
}

.judge-card-level--senior {
  color: #1d2835;
}

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

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

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

.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-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 #d7dee7;
  background: #ffffff;
  padding: 12px;
}

.upcoming-calendar-heading {
  margin: 0 0 10px;
  font-size: 1.02rem;
  font-weight: 700;
  color: #1f2933;
  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: #1f2933;
}

.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: #607286;
  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 #dbe3ec;
  background: #dbe3ec;
}

.upcoming-calendar-day {
  min-height: 72px;
  background: #ffffff;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.upcoming-calendar-day--empty {
  background: #f7f9fc;
}

.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: #3a4958;
}

.upcoming-calendar-day--today .upcoming-calendar-day-number {
  background: #1a73e8;
  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-more {
  font-size: 0.72rem;
  color: #607286;
  font-weight: 600;
}

.upcoming-event-card {
  border: 1px solid #e8dcc6;
  border-radius: 10px;
  background: #fffdf8;
  padding: 14px 16px;
}

.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-title {
  margin: 0 0 6px;
  font-size: 1.3rem;
  line-height: 1.3;
}

.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-line);
  border-radius: 999px;
  padding: 7px 12px;
  background: #ffffff;
  color: var(--hsu-dark);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.upcoming-event-link:hover,
.upcoming-event-link:focus {
  background: #f7edd9;
  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;
}

/* 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 #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.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 .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 .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 .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 #pricesetTotal {
  margin-top: 0.15rem;
  padding-top: 0.65rem;
  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 .messages.status {
  border: 1px solid #d9cf7a;
  border-radius: 0;
  background: #f7f3c8;
  color: #43351a;
  padding: 0.7rem 0.9rem;
}

body.civicrm-event-register #crm-container .cms_user-section a.button,
body.civicrm-event-register #crm-container .crm-submit-buttons .crm-form-submit {
  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 {
  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 {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  body.civicrm-event-register #crm-container .crm-profile .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 {
    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;
  }
}
