body {
  background: #fff;
  font-family: "Maven Pro", sans-serif;
  // Better Font Rendering
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

#wrapper {
  background-color: #fff;
}

nav.navbar > .container {
  max-width: 900px;
  margin: 0 auto;
}

nav.navbar {
  height: 104px;
  margin: 0 -15px;
  background-color: #477087;
  background-image: url("../images/navbar_decor_v1.67fcd6d1681c.png");
  background-repeat: no-repeat;
  background-position-y: 30px;
  background-size: 100% 15px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

#splash_row {
  background-image: url("../images/HomePageHeroMin.56efb3716a0a.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 75vh;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

#logo {
  width: 160px;
  margin: -10px auto;
}


#action_well_container {
  bottom: 80px;
  left: 30px;
  position: absolute;
  width: 300px;
}

#action_well_container_right {
  right: 30px;
  position: absolute;
  top: 35px;
  width: 250px;
}

#action_well_container h1,
#action_well_container h2,
#action_well_container h3,
#action_well_container h4,
#action_well_container_right h1,
#action_well_container_right h2,
#action_well_container_right h3,
#action_well_container_left h4 {
  margin-top: 0;
}

#action_well_container h1,
#action_well_container h2,
#action_well_container_right h1,
#action_well_container_right h2 {
  font-size: 24px;
}


.action_well {
  background-color: rgba(50,50,50,0.6);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 0;
  color: #ddd;
}

.action_well:empty {
  display: none;
}

.action_well a, .action_well a:visited {
  color: #ddd;
  text-decoration: none;
}

.action_well a:hover {
  border-bottom: 1px #ddd dotted;
}

.action_well .btn-default::after {
  content: '\f054';
  font-family: 'FontAwesome';
  margin-left: 8px;
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.15s ease;
}

.action_well .btn-default:hover::after {
  transform: translateX(3px);
}

.action_well > p > .btn-default {
  border: none;
  border-radius: 6px;
  color: #FFF;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: #477087;
  padding: 10px 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.action_well > p > .btn-default:hover {
  border: none;
  color: #FFF;
  background: #335c72;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.action_well_alert {
  border-top: 2px solid #900;
  border-bottom: 2px solid #900;
}

.checkout-btn {
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.checkout-btn:hover,
.checkout-btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.checkout-btn .fa-chevron-right {
  margin-left: 8px;
  vertical-align: middle;
  transition: transform 0.15s ease;
}

.checkout-btn:hover .fa-chevron-right {
  transform: translateX(3px);
}

@media (min-width: 768px) {
  .checkout-btn {
    float: right;
    position: sticky;
    top: 0.5em;
    z-index: 20;
  }
}

@media (max-width: 767px) {
  .checkout-btn {
    display: block;
    width: 100%;
    float: none;
    position: sticky;
    top: 1px;
    text-align: center;
    margin-bottom: 1rem;
    z-index: 20;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
  }
}

.action_well_highlight h4 {
  font-size: 18px;
}

.action_well_highlight h3, .action_well_highlight h4 {
  margin: 0;
}

#action_well_container_right .action_well_highlight h3 a {
  border-bottom: 1px dotted #fff;
  color: #EEE9BF;
}

#action_well_container_right h4 a {
  color: #EEE9BF;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#action_well_container_right h4 a:hover {
  color: #fff;
}

.card-header {
  /* Adding color to homepage news well header */
  background-color: #749cb2 !important;
  color: #fff;
}

.card-header + .post-body {
  /* Adding color to homepage news well content */
  background-color: #e1e9ed !important;
}

.post.card .btn-secondary {
  border: none;
  border-radius: 6px;
  background: #477087;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 6px 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.post.card .btn-secondary:hover,
.post.card .btn-secondary:focus {
  background: #335c72;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.news-item-title {
  margin-top: 0;
}

.post-body img {
  max-width: 100%;
  height: auto;
}

.single-column-11 {
    float: none;
    margin: 0 auto;
}

.content-col, .sidebar-col {
    padding: 0 30px 30px 30px;
}

/* Page header row above the two columns: same side padding as the columns, so
   the page title lines up with the content below it */
.top-col {
    padding-left: 30px;
    padding-right: 30px;
}

.sidebar-col-right {
    border-left: 1px dashed #ddd;
}

.sidebar-col-left {
    border-right: 1px dashed #ddd;
}

.sidebar-col-panel {
    border: none;
}

.sidebar-col>h3 {
  font-weight: 700;
  font-size: 20px;
}

.sidebar-col>h4 {
  font-size: 16px;
}

#footerlogo {
    display: block;
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin: 0 auto -20px auto;
    padding: 0px 20px;
    background-color: #ffffff;
}

#footerlogo+h6 {
    text-align: center;
}

#footer {
  margin-top: 4em;
}

#footer ul {
  list-style-type: none;
  padding-left: 0;
}

.footerblock {
  text-align: center;
  margin-bottom: 1.5em;
}

.footerblock a {
  color: #000;
}


.footerdivider {
  padding: 0 0.5em;
}

.contentblock {
    padding-top: 5px;
}

.contentblock img {
    padding: 15px;
}

.contentblock img.pull-left, .contentblock div.pull-left {
    padding-left: 0;
}

.contentblock img.pull-right, .contentblock div.pull-right {
    padding-right: 0;
}

.btn-primary {
    background-color: #477087;
    border-color: #477087;
}

/* Special Cases */

.body_action_well {
    border-top: 2px solid #477087;
    border-bottom: 2px solid #477087;
}

.body_action_well h2:first-child, .body_action_well h3:first-child, .body_action_well h4:first-child {
    margin-top: 0;
}

.regsummarywell {
    margin-top: 25px;
}

.contentblock .bio img {
    padding-top: 6px;
}

div.instructors {
    display: inline;
}

div.instructors .instructor {
    display: inline-flex;
    position: relative;
}

div.instructors .instructor img {
    width: 118px;
    height: 118px;
    padding: 0;
}

.instructor-bio-photo {
    margin-right: 1em;
    margin-bottom: 0.5em;
}

/* Instructors page bios: round avatar on the left, name and bio beside it.
   Grid rather than a float, so text lines up in one column and a short bio
   can't pull the next one up beside its photo. */
.staff-list .bio {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    column-gap: 1.75rem;
    align-items: start;
    /* Card */
    margin-bottom: 1.25rem;
    padding: 1.5rem 1.75rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
/* Card hover: border picks up the brand blue and the shadow deepens a touch,
   alongside the avatar ring. No lift or pointer, since the card isn't a link. */
@media (hover: hover) {
    .staff-list .bio:hover {
        border-color: rgba(71, 112, 135, 0.35);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05), 0 10px 24px rgba(71, 112, 135, 0.12);
    }
}
@media (prefers-reduced-motion: reduce) {
    .staff-list .bio {
        transition: none;
    }
}
/* Jumping to a bio from the sidebar leaves a little room above the card */
.staff-list > a[name] {
    display: block;
    position: relative;
    top: -1rem;
}
.staff-list .bio > .bio-avatar {
    grid-column: 1;
    grid-row: 1 / span 4;
    width: 120px;
    height: 120px;
    padding: 0;
    margin: 0.25rem 0 0;
    border-radius: 50%;
    object-fit: cover;
    background: #e9ecef;
    /* Portrait frame: a thin white mat, then a soft brand-blue ring */
    box-shadow: 0 0 0 3px #fff, 0 0 0 4px rgba(71, 112, 135, 0.35);
    transition: box-shadow 0.2s ease;
}
/* Hovering anywhere on a bio firms up its ring, marking the bio being read.
   The photo isn't a link, so no pointer cursor or zoom that would suggest a click. */
@media (hover: hover) {
    .staff-list .bio:hover > .bio-avatar {
        box-shadow: 0 0 0 3px #fff, 0 0 0 5px #477087;
    }
}
@media (prefers-reduced-motion: reduce) {
    .staff-list .bio > .bio-avatar {
        transition: none;
    }
}
.staff-list .bio > .bio-avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e3ebef;
    color: #477087;
    font-size: 2.25rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.staff-list .bio > .bio-head,
.staff-list .bio > .bio-privates,
.staff-list .bio > .bio-teaching,
.staff-list .bio > .post-body,
.staff-list .bio > .video {
    grid-column: 2;
}
/* "Email <name> about private lessons": outlined brand-blue pill under the name */
.staff-list .bio > .bio-privates {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 36px;
    margin: 0 0 0.875rem;
    padding: 0.3rem 0.9rem;
    border: 1px solid #477087;
    border-radius: 999px;
    color: #477087;
    font-size: 0.9rem;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.staff-list .bio > .bio-privates:hover,
.staff-list .bio > .bio-privates:focus {
    background-color: #477087;
    color: #fff;
    text-decoration: none;
}
.staff-list .bio > .bio-privates:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(71, 112, 135, 0.35);
}
.staff-list .bio-name {
    margin-bottom: 0.5rem;
}
.staff-list .bio-title {
    margin: -0.375rem 0 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #477087;
}
/* Instructors page header (CMS text block at the top of the page) */
.instructors-intro {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 1.5rem;
    row-gap: 0.5rem;
    margin-bottom: 1.75rem;
}
.instructors-intro h1 {
    flex: 1 0 100%;
    margin: 0 0 0.25rem;
}
.instructors-intro .instructors-intro-lead {
    flex: 1 1 auto;
    margin: 0;
    font-size: 1.15rem;
    color: #495057;
}
.instructors-intro .instructors-intro-link {
    margin: 0;
    font-size: 0.95rem;
    white-space: nowrap;
}
.instructors-intro-link a {
    color: #477087;
    font-weight: 600;
}
.instructors-intro .instructors-intro-history {
    flex: 1 0 100%;
    margin: 0.375rem 0 0;
    font-size: 0.95rem;
    color: #6c757d;
}
/* Section heading above each list ("Guest instructors", "Instructors") */
.staff-list-heading {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6c757d;
}
/* "Teaching" box: classes in progress / coming up */
.staff-list .bio-teaching {
    margin: 0 0 1rem;
    padding: 0.625rem 0.875rem;
    background: rgba(71, 112, 135, 0.06);
    border-radius: 8px;
    font-size: 0.9rem;
}
.staff-list .bio-teaching-label {
    margin: 0 0 0.25rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6c757d;
}
.staff-list .bio-teaching-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.staff-list .bio-teaching-list li {
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
    line-height: 1.4;
}
.staff-list .bio-teaching-list li + li {
    margin-top: 0.25rem;
}
.staff-list .bio-teaching-list .fa {
    flex: none;
    color: #477087;
}
.staff-list .bio-teaching-list a {
    color: #2f4b5b;
    font-weight: 600;
}
.staff-list .bio-teaching-when {
    color: #5a6268;
}
.staff-list .bio-teaching-when .nw {
    white-space: nowrap;
}
.staff-list .bio-coming-soon {
    color: #6c757d;
    font-style: italic;
}
.staff-list .bio > .post-body > :last-child {
    margin-bottom: 0;
}
@media (max-width: 575.98px) {
    /* Phones: small avatar beside the name, bio full width underneath */
    .staff-list .bio {
        grid-template-columns: 64px minmax(0, 1fr);
        column-gap: 0.875rem;
        row-gap: 0.75rem;
        align-items: center;
        margin-bottom: 1rem;
        padding: 1.125rem 1rem;
        border-radius: 10px;
    }
    .staff-list .bio > .bio-avatar {
        grid-row: 1;
        width: 64px;
        height: 64px;
        margin: 0;
        box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(71, 112, 135, 0.35);
    }
    .staff-list .bio > .bio-avatar-initials {
        font-size: 1.25rem;
    }
    .staff-list .bio-name {
        margin: 0;
        font-size: 1.5rem;
    }
    .staff-list .bio-title {
        margin: 0.125rem 0 0;
    }
    .staff-list .bio > .bio-teaching {
        grid-column: 1 / -1;
        margin: 0;
    }
    /* Email button gets its own row under the avatar and name, so its label fits on one line */
    .staff-list .bio > .bio-privates {
        grid-column: 1 / -1;
        min-height: 40px;
        margin: 0;
    }
    .staff-list .bio > .post-body,
    .staff-list .bio > .video {
        grid-column: 1 / -1;
    }
}

/* Smooth-scrolling to a bio from the directory leaves room above the card */
.staff-list .bio {
    scroll-margin-top: 1.25rem;
}
/* Briefly highlight the bio you jumped to */
.staff-list .bio.bio-flash {
    border-color: #477087;
    box-shadow: 0 0 0 3px rgba(71, 112, 135, 0.2), 0 10px 24px rgba(71, 112, 135, 0.12);
}
.staff-list .bio.bio-flash > .bio-avatar {
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px #477087;
}

/* Instructors page sidebar: "Jump to an instructor" directory (core/staff_image_set.html).
   One sticky card in the bio-card style; rows of small round avatars + full names. */
.staff-directory-card {
    position: sticky;
    top: 1.25rem;
    max-height: calc(100vh - 2.5rem);
    overflow-y: auto;
    padding: 1.125rem 0.75rem 0.75rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
}
.staff-directory-title {
    margin: 0 0.5rem 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
}
.staff-directory + .staff-directory {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.staff-directory-label {
    margin: 0 0.5rem 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6c757d;
}
.staff-directory-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.staff-directory-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.375rem 0.5rem;
    border-radius: 8px;
    color: #212529;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.staff-directory-link:hover,
.staff-directory-link:focus {
    background: rgba(71, 112, 135, 0.08);
    color: #212529;
    text-decoration: none;
}
.staff-directory-link:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(71, 112, 135, 0.35);
}
.staff-directory-link.is-active {
    background: rgba(71, 112, 135, 0.12);
    color: #2f4b5b;
    font-weight: 600;
}
.staff-directory-avatar {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: #e9ecef;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(71, 112, 135, 0.3);
    transition: box-shadow 0.15s ease;
}
.staff-directory-link:hover .staff-directory-avatar,
.staff-directory-link.is-active .staff-directory-avatar {
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px #477087;
}
.staff-directory-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e3ebef;
    color: #477087;
    font-size: 0.8rem;
    font-weight: 600;
}
.staff-directory-name {
    min-width: 0;
    font-size: 0.95rem;
    line-height: 1.25;
}
@media (prefers-reduced-motion: reduce) {
    .staff-directory-link,
    .staff-directory-avatar {
        transition: none;
    }
}
/* Phones: the sidebar falls below every bio, and the bio cards already show each
   person, so the directory is hidden. */
@media (max-width: 767.98px) {
    .staff-directory,
    .staff-directory-card {
        display: none;
    }
}

/* Instructors page: guest instructors and instructors are separate lists of cards */
.staff-list + .staff-list {
    margin-top: 1.75rem;
}

div.instructors .instructor .name {
    display: none;
    text-align: center;
    display: block;
    visibility: hidden;
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 100;
    top: 0px;
    left: 0px;
    font-size: 2em;
    line-height: 118px;
    font-weight: bold;
    color: white;
    background-color: #477087;
    text-decoration: none;
}

div.instructors .instructor:hover .name {
    visibility: visible;
}

dl.schedule dt {
  margin-top: 1em;
}

dl.schedule dd {
  margin-left: 1em;
}

.upcomingclasses>ul, .upcomingevents>ul {
    padding-left: 0;
}

.upcomingclasses>ul>li, .upcomingevents>ul>li {
    list-style-type: none;
}

.upcomingclasses>ul ul, .upcomingevents>ul ul {
    padding-left: 2em;
}

.reg-weekday-header {
  font-weight: 400;
  font-size: 1.5rem;
  margin-top: 1.5rem;
}

.reg-event-header {
  font-weight: 400;
  font-size: 1rem;
}


@media (min-width: 1200px) {
  .container {
    width: 100%;
    max-width: 100%;
  }

}

@media (min-width: 768px) and (max-width: 991px) {
  .container {
    width: 100%;
  }
  #wrapper {
    width: 100%;
  }

  .content-col .upcomingclasses h3 {
    margin-top: 0;
  }
}

@media (min-width: 992px) {
  .navbar .navbar-nav>li {
    padding: 0 15px;
    font-size: 17px;
  }
  .navbar .navbar-right>li {
    padding: 0 20px;
  }
  .navbar .navbar-right>li:last-child {
    padding-right: 15px;
  }

  .upcomingclasses h3 {
    margin-top: 0;
  }

  .sidebar-col-panel div.instructors {
    width: 250px;
    float: right;
    display: block;
  }
}

@media screen and (max-width: 991px){
    #footerlogo {
        width: 120px;
    }
    /* Only applies to table of contents at top of page on mobile */
    .content-col div:first-child .toc {
        margin-top: 20px;
    }
}

@media screen and (min-width:768px){
    .navbar-brand-centered {
        position: absolute;
        left: 50%;
        top: 0;
        display: block;
        width: 220px;
        text-align: center;
        background: url("../images/badge_v2.cb877219c7f9.png");
        height: 136px;
        background-position: 0 -17px;
        background-repeat: no-repeat;
        z-index: 10;
    }
    .navbar>.container .navbar-brand-centered,
    .navbar>.container-fluid .navbar-brand-centered {
        margin-left: -110px;
        padding: 0;
    }

    .navbar-nav {
      margin: 0 -15px;
    }

    .navbar .navbar-nav .nav-link {
        color: #fff;
        margin-top: 45px;
        transition: opacity 0.2s ease;
    }

    .navbar .navbar-nav .nav-link:hover,
    .navbar .navbar-nav .nav-link:focus {
        opacity: 0.75;
    }

    .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    }

    .dropdown-toggle:hover+.dropdown-menu,
    .dropdown-menu:hover,
    .dropdown-menu.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

}

@media screen and (max-width:767px){
  nav.navbar {
        background-color: #477087;
        background-image: none;
        height: 70px;
  }
    .navbar-brand-centered {
        background: #fff;
        height: 50px;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.25);
        padding: 5px;
    }

    .navbar-toggler {
      border: none;
      padding: 10px;
      border-radius: 6px;
      transition: background-color 0.2s ease;
    }

    .navbar-toggler:hover, .navbar-toggler:focus {
      background-color: rgba(255,255,255,0.15);
      outline: none;
    }

    .navbar-toggler-bar {
      display: block;
      width: 24px;
      height: 2px;
      background-color: #fff;
      border-radius: 1px;
      transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .navbar-toggler-bar + .navbar-toggler-bar {
      margin-top: 5px;
    }

    .navbar-toggler[aria-expanded="true"] .bar1 {
      transform: translateY(7px) rotate(45deg);
    }

    .navbar-toggler[aria-expanded="true"] .bar2 {
      opacity: 0;
    }

    .navbar-toggler[aria-expanded="true"] .bar3 {
      transform: translateY(-7px) rotate(-45deg);
    }

    .navbar-collapse {
        z-index: 20;
        position:absolute;
        top: 70px;
        left: 0;
        width: 100%;
    }

    .navbar-collapse.collapsing {
      transition: height 0.25s ease;
    }

    .navbar-collapse .navbar-nav {
      opacity: 0;
      transform: translateY(-8px);
      transition: opacity 0.25s ease, transform 0.25s ease;
    }

    .navbar-collapse.collapsing .navbar-nav,
    .navbar-collapse.show .navbar-nav {
      opacity: 1;
      transform: translateY(0);
    }

    .navbar-nav {
        background: #f9f9f9;
    }

    .navbar .navbar-nav .nav-link, .navbar .navbar-nav .show>.nav-link {
        color: #333;
        margin-left: 1rem;
    }

    .navbar .navbar-nav .nav-link:hover {
        color: #000;
        font-weight: 700;
    }



    .navbar-collapse .navbar-nav:last-child {
      border-bottom: 2px solid #477087;
    }

    #navbar {
        padding: 0;
    }

    #logo {
        max-width: 60px;
        margin-top: -5px;
    }

    #splash_row {
      height: 0;
      background-size: 150% auto;
        background-position-x: 50%;
        padding-top: Calc(77.31% + 40px);
    }

    #action_well_container {
    position: absolute;
    bottom: 40px;
    left: 0px;
      width: 100%;
  }

  #action_well_container .action_well:last-child {
    margin-bottom: 0;
  }

  #action_well_container_right {
      position: inherit;
      left: 0;
      right: 0;
      width: 100%;
      margin: 0;
    margin-bottom: 20px;
      top: inherit;
      bottom: 40px;
      height: 40px;
        background-image: url("../images/fresh_snow_2.7b9e5a40cd2a.png");
        background-repeat: repeat;
        background-size: auto;
        display: flex;
        align-items: center;
  }

  #action_well_container_right .action_well {
    background-color: transparent;
    position: relative;
    width: 100%;
    padding: 5px;
    text-align: center;
  }

  #action_well_container_right .action_well_highlight h3 a, #action_well_container_right .action_well_highlight h4 a, #action_well_container_right .action_well_highlight h3 a:visited, #action_well_container_right .action_well_highlight h4 a:visited {
    border-bottom: 1px dotted #ddd;
    color: #ddd;
  }

  .card-header:first-child {
    border-radius: 0;
  }

  .content-col, .sidebar-col {
      padding: 0 25px 25px 25px;
  }

  .top-col {
      padding-left: 25px;
      padding-right: 25px;
  }

  .content-col .upcomingclasses h3 {
      margin-top: 20px;
  }

  .contentblock .col-xs-12 {
      padding-left: 0;
      padding-right: 0;
  }

  .individualseries, .individualevent {
      text-align: center;
  }
}

@media screen and (max-width:479px){
    #splash_row {
      height: 0;
      background-size: 200% auto;
        background-position-x: 70%;
        padding-top: Calc(103.08% + 40px);
    }
}

/* Homepage: Mailchimp signup as a card (blh/mailchimp_signup.html), matching the
   instructors page cards. */
.signup-card {
    padding: 1.25rem 1.25rem 1rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
/* Same hover as the instructor and news cards */
@media (hover: hover) {
    .signup-card:hover {
        border-color: rgba(71, 112, 135, 0.35);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05), 0 10px 24px rgba(71, 112, 135, 0.12);
    }
}
.signup-card-title {
    margin: 0 0 0.25rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
}
.signup-card-title .fa {
    margin-right: 0.25rem;
    color: #477087;
}
.signup-card-lead {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    color: #5a6268;
}
.signup-card .mc-field-group {
    position: relative;
    margin-bottom: 0.75rem;
}
.signup-card-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 0.75rem;
}
.signup-card label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #343a40;
}
.signup-card-optional {
    font-weight: 400;
    color: #6c757d;
}
.signup-card .form-control {
    height: 2.5rem;
    border-color: #ced4da;
    border-radius: 8px;
    font-size: 0.95rem;
}
.signup-card .form-control:focus {
    border-color: #477087;
    box-shadow: 0 0 0 3px rgba(71, 112, 135, 0.25);
}
.signup-card .form-control.mce_inline_error {
    border: 1px solid #c0392b !important;
}
/* Field errors added by mc-validate.js (it sets inline colours, hence !important) */
.signup-card div.mce_inline_error {
    margin: 0.25rem 0 0 !important;
    padding: 0 !important;
    background: none !important;
    font-size: 0.8rem;
    font-weight: 600;
    color: #c0392b !important;
}
.signup-card-button {
    width: 100%;
    min-height: 2.75rem;
    margin-top: 0.25rem;
    border: 1px solid #477087;
    border-radius: 8px;
    background: #477087;
    color: #fff;
    font-weight: 600;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.signup-card-button:hover {
    background: #3a5d71;
    border-color: #3a5d71;
}
.signup-card-button:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(71, 112, 135, 0.35);
}
.signup-card-note {
    margin: 0.5rem 0 0;
    font-size: 0.8rem;
    text-align: center;
    color: #6c757d;
}
/* Success / error message after submitting */
.signup-card #mce-responses .response {
    margin: 0.25rem 0 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
}
.signup-card #mce-success-response {
    background: rgba(40, 167, 69, 0.1);
    color: #1e6b33;
}
.signup-card #mce-error-response {
    background: rgba(192, 57, 43, 0.08);
    color: #a02f23;
}
.signup-card #mce-error-response a,
.signup-card #mce-success-response a {
    color: inherit;
    text-decoration: underline;
}
@media (prefers-reduced-motion: reduce) {
    .signup-card,
    .signup-card-button {
        transition: none;
    }
}

/* Homepage "Latest news" card (news/latest_news_panel.html) */
.news-card {
    margin-bottom: 2rem;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
/* Same hover as the instructor cards: brand-tinted border, slightly deeper shadow */
@media (hover: hover) {
    .news-card:hover {
        border-color: rgba(71, 112, 135, 0.35);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05), 0 10px 24px rgba(71, 112, 135, 0.12);
    }
}
.news-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.25rem 1rem;
    margin-bottom: 0.5rem;
}
.news-card-label {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6c757d;
}
.news-card-links {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
}
.news-card-links a {
    color: #477087;
    font-weight: 600;
    text-decoration: none;
}
.news-card-links a:hover {
    color: #2f4b5b;
    text-decoration: underline;
}
.news-card-item + .news-card-item {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.news-card-title {
    margin: 0 0 0.125rem;
    font-size: 1.4rem;
    line-height: 1.3;
}
.news-card-date {
    margin: 0 0 0.625rem;
    font-size: 0.9rem;
    color: #6c757d;
}
.news-card-content {
    color: #343a40;
}
.news-card-content > :last-child {
    margin-bottom: 0;
}
/* Preview: about three lines, fading out (set by the script in the template) */
.news-card-content.is-clamped {
    max-height: 4.6em;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
    mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.news-card-toggle[hidden] {
    display: none;
}
.news-card-content img {
    max-width: 100%;
    height: auto;
}
.news-card-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.375rem;
    padding: 0.25rem 0;
    border: 0;
    background: none;
    color: #477087;
    font-weight: 600;
    cursor: pointer;
}
.news-card-toggle:hover {
    color: #2f4b5b;
    text-decoration: underline;
}
.news-card-toggle:focus-visible {
    outline: 0;
    border-radius: 4px;
    box-shadow: 0 0 0 3px rgba(71, 112, 135, 0.35);
}
.news-card-toggle .fa {
    font-size: 0.75em;
    transition: transform 0.2s ease;
}
.news-card-toggle[aria-expanded="true"] .fa {
    transform: rotate(180deg);
}
.news-card-toggle .news-card-when-open,
.news-card-toggle[aria-expanded="true"] .news-card-when-closed {
    display: none;
}
.news-card-toggle[aria-expanded="true"] .news-card-when-open {
    display: inline;
}
@media (prefers-reduced-motion: reduce) {
    .news-card,
    .news-card-toggle .fa {
        transition: none;
    }
}
@media (max-width: 575.98px) {
    .news-card {
        padding: 1.125rem 1rem;
        border-radius: 10px;
    }
    .news-card-title {
        font-size: 1.25rem;
    }
}

/* Links: brand blue instead of Bootstrap's default bright blue, site-wide.
   Element selectors, so anything with its own link styles (buttons, nav,
   footer, cards above) keeps them. */
a {
    color: #477087;
}
a:hover,
a:focus {
    color: #2f4b5b;
}
/* Links inside page text (CMS text blocks, bios) are underlined so they're
   recognisable without relying on colour alone. */
.content-col p a:not([class]),
.content-col li a:not([class]) {
    text-decoration: underline;
    text-decoration-color: rgba(71, 112, 135, 0.45);
    text-underline-offset: 2px;
}
.content-col p a:not([class]):hover,
.content-col li a:not([class]):hover {
    text-decoration-color: currentColor;
}
.content-col .instructors-intro a,
.content-col .bio-teaching a {
    text-decoration: none;
}
.content-col .instructors-intro a:hover,
.content-col .bio-teaching a:hover {
    text-decoration: underline;
}

/* Homepage videos: plain 16:9 frame (square corners, no shadow) with a click-to-play thumbnail
   (set up by the script in cms/blh_frontpage.html) */
.video-embed {
    position: relative;
    width: 100%;
    margin: 1rem 0 1.25rem;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
}
@supports not (aspect-ratio: 16 / 9) {
    .video-embed { height: 0; padding-top: 56.25%; }
}
.video-embed iframe,
.video-embed-play {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.video-embed-play {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background-color: #111;
    background-position: center;
    /* YouTube's hqdefault thumbnail is 4:3 with black bars above and below a
       16:9 picture; stretching it to 4/3 of the frame height crops the bars. */
    background-size: 100% 133.34%;
    cursor: pointer;
}
.video-embed-play::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.35));
    transition: background-color 0.2s ease;
}
.video-embed-icon {
    position: relative;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(71, 112, 135, 0.92);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.video-embed-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 54%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 13px 0 13px 21px;
    border-color: transparent transparent transparent #fff;
}
.video-embed-play:hover .video-embed-icon,
.video-embed-play:focus-visible .video-embed-icon {
    background: #477087;
    transform: scale(1.06);
}
.video-embed-play:hover::before {
    background-color: rgba(0, 0, 0, 0.08);
}
.video-embed-play:focus-visible {
    outline: 3px solid rgba(71, 112, 135, 0.6);
    outline-offset: -3px;
}
@media (prefers-reduced-motion: reduce) {
    .video-embed-play::before,
    .video-embed-icon {
        transition: none;
    }
}
@media (max-width: 575.98px) {
    .video-embed-icon {
        width: 56px;
        height: 56px;
    }
}

/* Homepage on phones: signup card moved under the news card */
.signup-card.signup-card-inline {
    margin-bottom: 2rem;
}
/* No dashed divider once the sidebar stacks below the content */
@media (max-width: 767.98px) {
    .sidebar-col-right {
        border-left: 0;
    }
    .sidebar-col-left {
        border-right: 0;
    }
}

/* Homepage "Upcoming classes" card (cms/blh_frontpage.html); header reuses
   .news-card-head/.news-card-label/.news-card-links */
.classes-card {
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.5rem 1rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
@media (hover: hover) {
    .classes-card:hover {
        border-color: rgba(71, 112, 135, 0.35);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05), 0 10px 24px rgba(71, 112, 135, 0.12);
    }
}
.classes-card-list {
    margin: 0 -0.75rem;
    padding: 0;
    list-style: none;
}
.classes-card-list li + li {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.classes-card-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.625rem 0.75rem;
    border-radius: 8px;
    color: #212529;
    text-decoration: none;
    transition: background-color 0.15s ease;
}
.classes-card-row:hover,
.classes-card-row:focus {
    background: rgba(71, 112, 135, 0.08);
    color: #212529;
    text-decoration: none;
}
.classes-card-row:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(71, 112, 135, 0.35);
}
.classes-card-main {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}
.classes-card-name {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
}
.classes-card-teachers {
    font-size: 0.95rem;
    color: #2f4b5b;
}
.classes-card-meta {
    font-size: 0.9rem;
    color: #5a6268;
}
.classes-card-starts {
    flex: none;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    background: rgba(71, 112, 135, 0.1);
    color: #2f4b5b;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}
.classes-card-empty {
    margin: 0.25rem 0 0.375rem;
    color: #343a40;
}
@media (prefers-reduced-motion: reduce) {
    .classes-card,
    .classes-card-row {
        transition: none;
    }
}
@media (max-width: 575.98px) {
    .classes-card {
        padding: 1.125rem 1rem 0.75rem;
        border-radius: 10px;
    }
    .classes-card-list {
        margin: 0 -0.5rem;
    }
    .classes-card-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.375rem;
        padding: 0.625rem 0.5rem;
    }
}

/* Footer: music licensing notice (cms/home.html) */
.licensing-strip {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    text-align: left;
}
.licensing-nfda {
    flex: none;
}
.licensing-nfda img {
    display: block;
    width: 56px;
    height: 56px;
}
.licensing-text {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #6c757d;
}
.licensing-text a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(108, 117, 125, 0.5);
    text-underline-offset: 2px;
}
.licensing-text a:hover {
    color: #477087;
}
.licensing-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.licensing-logos img {
    display: block;
    width: auto;
}

/* Site footer (cms/home.html): light full-width band */
.site-footer {
    margin-top: 3rem;
    padding: 2.25rem 0 0.5rem;
    background: #f3f6f8;
    border-top: 1px solid rgba(71, 112, 135, 0.12);
    /* extend the band to the edges of the window */
    box-shadow: 0 0 0 100vmax #f3f6f8;
    clip-path: inset(0 -100vmax);
    font-size: 0.95rem;
}
.site-footer a {
    color: #343a40;
    text-decoration: none;
}
.site-footer a:hover,
.site-footer a:focus {
    color: #477087;
    text-decoration: underline;
}
/* Keep footer content at a comfortable width on wide screens */
.site-footer > .col-12 {
    max-width: 1100px;
    margin: 0 auto;
}
.site-footer .licensing-text a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(108, 117, 125, 0.5);
    text-underline-offset: 2px;
}
.site-footer .licensing-text a:hover {
    color: #477087;
}
.site-footer-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.5rem 3rem;
    padding-bottom: 1.5rem;
}
.site-footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}
.site-footer-logo {
    flex: none;
    width: 88px;
    height: 88px;
    object-fit: contain;
}
.site-footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    line-height: 1.4;
}
.site-footer-contact .fa {
    width: 1.1em;
    color: #6c757d;
}
.site-footer .site-footer-name {
    color: #212529;
}
.site-footer-social {
    display: flex;
    gap: 0.5rem;
    margin: 0.5rem 0 0;
    padding: 0;
    list-style: none;
}
.site-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(71, 112, 135, 0.1);
    color: #477087;
    font-size: 1.1rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.site-footer-social .fa {
    width: auto;
    color: inherit;
}
.site-footer-social a:hover,
.site-footer-social a:focus {
    background: #477087;
    color: #fff;
    text-decoration: none;
}
.site-footer-links ul {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 0.375rem 2.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.site-footer-account {
    margin: 1rem 0 0;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    color: #6c757d;
}
.site-footer-copyright {
    margin: 0;
    padding: 0.25rem 0 1rem;
    font-size: 0.8rem;
    color: #6c757d;
}
@media (prefers-reduced-motion: reduce) {
    .site-footer-social a {
        transition: none;
    }
}
@media (max-width: 767.98px) {
    .site-footer {
        text-align: center;
    }
    .site-footer-main {
        flex-direction: column;
        align-items: center;
    }
    .site-footer-brand {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    .site-footer-social {
        justify-content: center;
    }
    .site-footer-links ul {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    .licensing-strip {
        flex-direction: column;
        text-align: center;
        gap: 0.625rem;
    }
    .licensing-logos {
        justify-content: center;
    }
}

/* Homepage hero: primary + secondary buttons in the main box (CMS text block
   in the "action_well" placeholder uses .hero-actions / .hero-btn-*) */
.action_well .hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin: 1rem 0 0.25rem;
}
.action_well .hero-actions a,
.action_well .hero-actions a:visited {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.action_well .hero-actions .hero-btn-primary {
    background: #477087;
    border-color: #477087;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.action_well .hero-actions .hero-btn-primary:hover,
.action_well .hero-actions .hero-btn-primary:focus {
    background: #3a5d71;
    border-color: #3a5d71;
    color: #fff;
}
.action_well .hero-actions .hero-btn-secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
}
.action_well .hero-actions .hero-btn-secondary:hover,
.action_well .hero-actions .hero-btn-secondary:focus {
    background: rgba(255, 255, 255, 0.14);
    border-color: #fff;
    color: #fff;
}
.action_well .hero-actions a:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.75);
    outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
    .action_well .hero-actions a {
        transition: none;
    }
}
/* Phones: the strip under the photo for the old second box is gone, so the
   main box sits at the bottom of the photo */
@media (max-width: 767.98px) {
    #action_well_container {
        bottom: 0;
    }
}

/* Homepage "What is Lindy Hop?" teaser card (CMS text block, .lindy-card).
   Thumbnail + short intro + link to the full entry on the new dancer guide. */
.lindy-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
@media (hover: hover) {
    .lindy-card:hover {
        border-color: rgba(71, 112, 135, 0.35);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05), 0 10px 24px rgba(71, 112, 135, 0.12);
    }
}
.lindy-card-media {
    position: relative;
    display: block;
    flex: none;
    width: 240px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background: #111;
}
.lindy-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    /* YouTube thumbnails are 4:3 with bars; cover crops them off */
    object-fit: cover;
}
.lindy-card-media::after {
    content: "\f04b";
    font-family: "FontAwesome";
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: -24px 0 0 -24px;
    padding-left: 3px;
    border-radius: 50%;
    background: rgba(71, 112, 135, 0.92);
    color: #fff;
    font-size: 16px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.lindy-card-media:hover::after,
.lindy-card-media:focus-visible::after {
    background: #477087;
    transform: scale(1.06);
}
.lindy-card-body {
    min-width: 0;
}
.lindy-card .lindy-card-label {
    margin: 0 0 0.375rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6c757d;
}
.lindy-card .lindy-card-text {
    margin: 0 0 0.5rem;
    color: #343a40;
}
.lindy-card .lindy-card-link {
    margin: 0;
}
.content-col .lindy-card .lindy-card-link a {
    color: #477087;
    font-weight: 600;
    text-decoration: none;
}
.content-col .lindy-card .lindy-card-link a:hover {
    color: #2f4b5b;
    text-decoration: underline;
}
@media (prefers-reduced-motion: reduce) {
    .lindy-card,
    .lindy-card-media::after {
        transition: none;
    }
}
@media (max-width: 575.98px) {
    .lindy-card {
        flex-direction: column;
        align-items: stretch;
        gap: 0.875rem;
        border-radius: 10px;
    }
    .lindy-card-media {
        width: 100%;
    }
}

/* Card with a video as its side thumbnail (About card). The click-to-play
   script turns the iframe into .video-embed; when played, the card gets
   .is-playing and the video expands to full card width above the text. */
.lindy-card-video {
    flex: none;
    width: 240px;
}
.lindy-card-video .video-embed {
    margin: 0;
    border-radius: 8px;
}
.lindy-card-video .video-embed-icon {
    width: 48px;
    height: 48px;
}
.lindy-card-video .video-embed-icon::after {
    border-width: 9px 0 9px 15px;
}
.lindy-card.is-playing {
    flex-direction: column;
    align-items: stretch;
}
.lindy-card.is-playing .lindy-card-video {
    width: 100%;
}
@media (max-width: 575.98px) {
    .lindy-card-video {
        width: 100%;
    }
}

/* ---------------------------------------------------------------------------
   Pages with an "On this page" card (new dancer guide, FAQ): faq/FAQ_TOC.html
   adds .has-page-toc to #main_row. Same card language as the instructors page.
   --------------------------------------------------------------------------- */
.page-toc:not(.is-ready) {
    display: none;
}
.page-toc {
    position: sticky;
    top: 1.25rem;
    max-height: calc(100vh - 2.5rem);
    overflow-y: auto;
    padding: 1.125rem 0.75rem 0.75rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
}
.page-toc-title {
    display: block;
    margin: 0 0.5rem 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    list-style: none;
    cursor: default;
}
.page-toc-title::-webkit-details-marker {
    display: none;
}
.page-toc-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.page-toc-link {
    display: block;
    padding: 0.4rem 0.5rem;
    border-radius: 8px;
    color: #343a40;
    font-size: 0.95rem;
    line-height: 1.3;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.page-toc-link:hover,
.page-toc-link:focus {
    background: rgba(71, 112, 135, 0.08);
    color: #212529;
    text-decoration: none;
}
.page-toc-link:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(71, 112, 135, 0.35);
}
.page-toc-link.is-active {
    background: rgba(71, 112, 135, 0.12);
    color: #2f4b5b;
    font-weight: 600;
}
/* Phones: collapsed menu at the top of the content */
.page-toc.is-inline {
    position: static;
    max-height: none;
    margin: 0 0 1.5rem;
    padding: 0;
}
.page-toc.is-inline .page-toc-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    margin: 0;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    cursor: pointer;
}
.page-toc.is-inline .page-toc-title::after {
    content: "\f107";
    font-family: "FontAwesome";
    color: #477087;
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}
.page-toc.is-inline details[open] .page-toc-title::after {
    transform: rotate(180deg);
}
.page-toc.is-inline .page-toc-list {
    padding: 0 0.5rem 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 0.5rem;
}
@media (prefers-reduced-motion: reduce) {
    .page-toc-link,
    .page-toc.is-inline .page-toc-title::after {
        transition: none;
    }
}

/* Question headings: calmer size, a divider between questions, land below the top when jumped to */
.has-page-toc .content-col h2 {
    margin: 2.25rem 0 0.75rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    scroll-margin-top: 0.5rem;
}
.has-page-toc .content-col > :first-child h2:first-of-type,
.has-page-toc .content-col > .page-toc.is-inline + * h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}
.has-page-toc .content-col h3 {
    margin: 1.25rem 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}
/* Images in the guide (curriculum infographic): card frame, centred */
.has-page-toc .content-col .img-thumbnail {
    display: block;
    max-width: 100%;
    margin: 0.5rem auto 0;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
}
.has-page-toc .content-col .row {
    margin-left: 0;
    margin-right: 0;
}
.has-page-toc .content-col .row > [class*="col-"] {
    padding: 0;
}

/* Generic page header (same as the instructors page header) */
.page-intro .instructors-intro-lead {
    max-width: 48rem;
}

/* Guide cards: "Ready to dance?" in the sidebar, "Still have questions?" at the end */
.guide-card {
    margin: 0 0 1.25rem;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
@media (hover: hover) {
    .guide-card:hover {
        border-color: rgba(71, 112, 135, 0.35);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05), 0 10px 24px rgba(71, 112, 135, 0.12);
    }
}
.guide-card .guide-card-title {
    margin: 0 0 0.375rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
}
.guide-card p {
    margin: 0 0 0.875rem;
    color: #495057;
}
.guide-card .guide-card-actions {
    margin: 0;
}
.guide-card .guide-card-actions a,
.guide-card .guide-card-actions a:visited {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: #477087;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s ease;
}
.guide-card .guide-card-actions a:hover,
.guide-card .guide-card-actions a:focus {
    background: #3a5d71;
    color: #fff;
    text-decoration: none;
}
.content-col .guide-card {
    margin-top: 2.5rem;
}
@media (min-width: 576px) {
    .content-col .guide-card .guide-card-actions a {
        display: inline-flex;
    }
}
@media (prefers-reduced-motion: reduce) {
    .guide-card,
    .guide-card .guide-card-actions a {
        transition: none;
    }
}
/* Phones: the sidebar card would sit right after the closing card; hide it */
@media (max-width: 767.98px) {
    .sidebar-col .guide-card {
        display: none;
    }
}

/* ---------------------------------------------------------------------------
   Registration page (core/registration/event_registration.html, event_group.html)
   --------------------------------------------------------------------------- */
/* Section heading ("Open for registration"): small label like the other cards' labels */
#classregform .reg-section-header {
    margin: 0.25rem 0 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6c757d;
}
#classregform .reg-section-note {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    color: #6c757d;
}
/* Month heading ("December Class Series") */
#classregform .reg-section > h3 {
    margin-top: 1.25rem !important;
    font-size: 1.35rem;
    font-weight: 600;
}
#classregform .reg-event-group {
    margin-top: 0.75rem !important;
}

/* Classes already under way: collapsed section at the bottom */
.reg-closed {
    margin: 2.5rem 0 0;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
}
.reg-closed-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.75rem;
    min-height: 52px;
    padding: 0.875rem 3rem 0.875rem 1.25rem;
    position: relative;
    list-style: none;
    cursor: pointer;
    border-radius: 12px;
}
.reg-closed-summary::-webkit-details-marker {
    display: none;
}
.reg-closed-summary::after {
    content: "\f107";
    font-family: "FontAwesome";
    position: absolute;
    right: 1.25rem;
    top: 50%;
    margin-top: -0.7em;
    color: #477087;
    font-size: 1.25rem;
    line-height: 1.4;
    transition: transform 0.2s ease;
}
.reg-closed[open] .reg-closed-summary::after {
    transform: rotate(180deg);
}
.reg-closed-summary:hover {
    background: rgba(71, 112, 135, 0.04);
}
.reg-closed-summary:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(71, 112, 135, 0.35);
}
.reg-closed-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
}
.reg-closed-count {
    font-size: 0.9rem;
    color: #6c757d;
}
.reg-closed-list {
    margin: 0;
    padding: 0 1.25rem 0.5rem;
    list-style: none;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.reg-closed-item {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 1rem;
    padding: 0.75rem 0;
}
.reg-closed-item + .reg-closed-item {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.reg-closed-name {
    font-weight: 600;
    color: #212529;
}
.reg-closed-meta {
    grid-column: 1;
    font-size: 0.9rem;
    color: #6c757d;
}
.reg-closed-ends {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: #eef2f4;
    color: #495057;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}
.reg-closed .nw {
    white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
    .reg-closed-summary::after {
        transition: none;
    }
}
@media (max-width: 575.98px) {
    .reg-closed-item {
        grid-template-columns: 1fr;
    }
    .reg-closed-ends {
        grid-column: 1;
        grid-row: auto;
        justify-self: start;
        margin-top: 0.375rem;
    }
}
/* "Prefer a calendar view?" line at the end of the class list */
.reg-calendar-link {
    margin: 1.5rem 0 0;
    font-size: 0.95rem;
    color: #6c757d;
}
.reg-calendar-link a {
    color: #477087;
    font-weight: 600;
    text-decoration: none;
}
.reg-calendar-link a:hover {
    text-decoration: underline;
}

/* Registration: price on each card (core/registration/event_card.html) */
.reg-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 0.5rem;
    margin: 0 0 0.75rem;
}
.reg-price-amount {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.1;
    color: #212529;
}
.reg-price-door {
    font-size: 0.85rem;
    color: #6c757d;
}
.reg-price-tier {
    flex: 1 0 100%;
    margin-top: 0.125rem;
    font-size: 0.85rem;
    color: #6c757d;
}
.reg-choose-label {
    margin: 0 0 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6c757d;
}

/* Registration: role / "Add to registration" choice buttons (event_number_input.html).
   Shown (and the steppers hidden) when html.reg-js is set; an inline script at
   the top of the registration page sets it before the class list is drawn, so
   there's no flash of the steppers / green button. Without JS: steppers. */
.reg-choice {
    display: none;
}
.reg-js #classregform .reg-qty {
    display: none;
}
.reg-js #classregform .reg-card-side > div[id^="id_"] {
    display: flex;
    gap: 0.5rem;
}
.reg-js #classregform .reg-choice {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 0;
    min-height: 48px;
    margin: 0;
    padding: 0.5rem 0.75rem;
    background: #fff;
    border: 1.5px solid rgba(71, 112, 135, 0.45);
    border-radius: 8px;
    color: #2f4b5b;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.reg-js #classregform .reg-choice:hover:not(:disabled) {
    border-color: #477087;
    background: rgba(71, 112, 135, 0.06);
}
.reg-js #classregform .reg-choice:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(71, 112, 135, 0.35);
}
.reg-choice-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}
.reg-choice-note:empty {
    display: none;
}
.reg-choice-note {
    margin-top: 0.125rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #8a5a00;
}
.reg-choice-check {
    display: none;
}
.reg-js #classregform .reg-choice.is-selected {
    background: #477087;
    border-color: #477087;
    color: #fff;
}
.reg-js #classregform .reg-choice.is-selected:hover {
    background: #3a5d71;
    border-color: #3a5d71;
}
.reg-js #classregform .reg-choice.is-selected .reg-choice-check {
    display: inline-flex;
}
.reg-js #classregform .reg-choice.is-selected .reg-choice-note {
    color: rgba(255, 255, 255, 0.85);
}
.reg-js #classregform .reg-choice:disabled {
    background: #f1f3f5;
    border-color: #dee2e6;
    color: #868e96;
    cursor: not-allowed;
}
.reg-js #classregform .reg-choice:disabled .reg-choice-note {
    color: #868e96;
}
/* Chosen class: brand border on its card */
#classregform .reg-event {
    transition: box-shadow 0.15s ease;
}
#classregform .reg-event.is-chosen {
    box-shadow: inset 0 0 0 2px #477087;
}
/* The bar below replaces the green Check Out button */
.reg-js #classregform input.btn-success.btn-lg,
.reg-js #classregform .checkout-btn {
    display: none !important;
}

/* Registration: checkout bar fixed to the bottom of the screen */
.reg-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(110%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0s linear 0.25s;
}
.reg-bar.is-visible {
    transform: none;
    visibility: visible;
    transition: transform 0.25s ease;
}
.reg-bar-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto;
}
.reg-bar-summary {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
}
.reg-bar-total {
    font-size: 1.1rem;
    font-weight: 700;
    color: #212529;
}
.reg-bar-items {
    overflow: hidden;
    font-size: 0.85rem;
    color: #6c757d;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.reg-bar-btn {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.5rem 1.5rem;
    background: #28a745;  /* Bootstrap success green, like the old Check Out button */
    border: 0;
    border-radius: 8px;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease;
}
.reg-bar-btn:hover,
.reg-bar-btn:focus {
    background: #218838;
    color: #fff;
}
.reg-bar-btn:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.4);
}
body.has-reg-bar {
    padding-bottom: 88px;
}
@media (max-width: 575.98px) {
    .reg-bar-btn {
        padding: 0.5rem 1rem;
    }
    .reg-bar-total {
        font-size: 1rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    .reg-bar,
    .reg-bar.is-visible,
    .reg-js #classregform .reg-choice {
        transition: none;
    }
}
/* "Registering more than one person?": that class shows the quantity steppers */
.reg-multi-link {
    display: inline-block;
    margin: 0.5rem 0 0;
    padding: 0;
    background: none;
    border: 0;
    color: #477087;
    font-size: 0.85rem;
    text-decoration: underline;
    cursor: pointer;
}
.reg-multi-link:hover {
    color: #2f4b5b;
}
.reg-multi-link[hidden] {
    display: none;
}
.reg-js #classregform .reg-card-side > div[id^="id_"].is-multi {
    display: block;
}
.reg-js #classregform .reg-card-side > div[id^="id_"].is-multi .reg-qty {
    display: flex;
}
.reg-js #classregform .reg-card-side > div[id^="id_"].is-multi .reg-choice {
    display: none;
}
/* Steppers in the narrow register column: room for the number */
#classregform .reg-qty {
    flex-wrap: nowrap;
    align-items: center;
    margin-left: 0;
    margin-right: 0;
}
#classregform .reg-qty > .col-form-label {
    flex: 1 1 auto;
    max-width: none;
    padding-left: 0;
}
#classregform .reg-qty > .col-6:last-child {
    flex: 0 0 auto;
    max-width: none;
    width: 8.5rem;
    padding-right: 0;
}
#classregform .reg-qty .input-number {
    min-width: 2.75rem;
    text-align: center;
    font-weight: 600;
}

/* Registration page with no classes open (core/registration/event_registration.html) */
.reg-top-empty .instructors-intro-lead {
    display: none;
}
.reg-empty {
    margin: 0 0 1.5rem;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
}
.reg-empty .reg-empty-title {
    margin: 0 0 0.375rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #212529;
}
.reg-empty .reg-empty-text {
    margin: 0;
    color: #495057;
}
.content-col .reg-empty + .signup-card {
    max-width: 32rem;
}

/* Registration sidebar (static placeholder "registration_sidebar"): level guide
   and curriculum image as cards */
.reg-side-card {
    margin: 0 0 1.25rem;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
}
.sidebar-col .reg-side-card .reg-side-title {
    margin: 0 0 0.875rem;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    color: #212529;
}
.reg-levels {
    margin: 0;
    padding: 0;
    list-style: none;
}
.reg-levels li {
    padding: 0.75rem 0;
}
.reg-levels li:first-child {
    padding-top: 0;
}
.reg-levels li + li {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.reg-level-badge {
    display: inline-block;
    margin-bottom: 0.375rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: rgba(71, 112, 135, 0.12);
    color: #2f4b5b;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.reg-levels p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #495057;
}
.reg-side-card .reg-side-foot {
    margin: 0.875rem 0 0;
    padding-top: 0.875rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.9rem;
    line-height: 1.45;
    color: #6c757d;
}
.reg-side-card .reg-side-foot a {
    color: #477087;
    font-weight: 600;
}
.reg-side-card .reg-curriculum {
    display: block;
    overflow: hidden;
    border-radius: 8px;
}
.reg-side-card .reg-curriculum img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.25s ease;
}
@media (hover: hover) {
    .reg-side-card .reg-curriculum:hover img {
        transform: scale(1.02);
    }
}
.reg-side-card .reg-side-foot.reg-side-foot-plain {
    padding-top: 0;
    border-top: 0;
    margin-top: 0.625rem;
}
@media (prefers-reduced-motion: reduce) {
    .reg-side-card .reg-curriculum img {
        transition: none;
    }
}
.reg-levels li:last-child {
    padding-bottom: 0;
}

/* Choice buttons, revised: selected = tinted background + brand border + a check
   badge on the corner (reads as "chosen", not as a button to press; green
   Check out stays the only filled button). Notes stay on one line. */
.reg-js #classregform .reg-choice {
    position: relative;
}
.reg-js #classregform .reg-choice:focus {
    outline: 0;
}
.reg-js #classregform .reg-choice:focus-visible {
    outline: 3px solid rgba(71, 112, 135, 0.45);
    outline-offset: 2px;
    box-shadow: none;
}
.reg-js #classregform .reg-choice.is-selected,
.reg-js #classregform .reg-choice.is-selected:hover {
    background: rgba(71, 112, 135, 0.1);
    border-color: #477087;
    box-shadow: inset 0 0 0 1px #477087;
    color: #2f4b5b;
}
.reg-js #classregform .reg-choice.is-selected:hover {
    background: rgba(71, 112, 135, 0.15);
}
.reg-js #classregform .reg-choice.is-selected .reg-choice-note {
    color: #8a5a00;
}
.reg-js #classregform .reg-choice .reg-choice-check,
.reg-js #classregform .reg-choice.is-selected .reg-choice-check {
    position: absolute;
    top: -8px;
    right: -8px;
    display: none;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #477087;
    box-shadow: 0 0 0 2px #fff;
    color: #fff;
    font-size: 11px;
}
.reg-js #classregform .reg-choice.is-selected .reg-choice-check {
    display: inline-flex;
}
.reg-choice-note {
    white-space: nowrap;
}
.reg-choice-label {
    white-space: nowrap;
}

/* Image lightbox (blh/lightbox.html) */
html.blh-lightbox-open {
    overflow: hidden;
}
.blh-lightbox {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}
.blh-lightbox::backdrop {
    background: rgba(17, 24, 28, 0.88);
}
.blh-lightbox-figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 3.5rem 1rem 1.5rem;
}
.blh-lightbox-img {
    display: block;
    max-width: min(100%, 1100px);
    max-height: calc(100vh - 7rem);
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
    background: #fff;
}
.blh-lightbox-caption {
    margin-top: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    text-align: center;
}
.blh-lightbox-close {
    position: fixed;
    top: 0.875rem;
    right: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s ease;
}
.blh-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.28);
}
.blh-lightbox-close:focus {
    outline: 0;
}
.blh-lightbox-close:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6);
}
.reg-side-card .reg-curriculum {
    cursor: zoom-in;
}


/* Registration class cards (core/registration/event_card.html): separate cards in
   the site's card style; main column (title, schedule, dates, instructors,
   description) + side column (price, registration choice) */
#classregform .reg-card-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
#classregform .reg-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
    overflow: visible;
}
#classregform .reg-card > .reg-event {
    padding: 1.25rem 1.375rem;
    border-radius: 12px;
}
.reg-card-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 15rem;
    column-gap: 2rem;
    row-gap: 1.25rem;
}
@media (max-width: 991.98px) {
    .reg-card-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .reg-card-side {
        padding-top: 1rem;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
    }
}
#classregform .reg-card .reg-event-title {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.25;
}
#classregform .reg-card .reg-event-title a {
    color: #212529;
    text-decoration: none;
}
#classregform .reg-card .reg-event-title a:hover {
    color: #2f4b5b;
    text-decoration: underline;
}
.reg-card-when {
    display: flex;
    gap: 0.5rem;
    margin: 0 0 0.625rem;
    color: #343a40;
    font-size: 0.95rem;
    line-height: 1.4;
}
.reg-card-when .fa {
    margin-top: 0.2em;
    color: #477087;
}
.reg-card-when a {
    color: #477087;
}
.reg-card .nw {
    white-space: nowrap;
}
.reg-card-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin: 0 0 0.875rem;
    padding: 0;
    list-style: none;
}
.reg-card-dates li {
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: #eef2f4;
    color: #495057;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}
.reg-card-teachers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem 1rem;
    margin: 0 0 0.875rem;
    padding: 0;
    list-style: none;
}
.reg-card-teachers a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #343a40;
    font-size: 0.95rem;
    text-decoration: none;
}
.reg-card-teachers a:hover span {
    color: #2f4b5b;
    text-decoration: underline;
}
.reg-card-avatar {
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: #e9ecef;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(71, 112, 135, 0.25);
}
.reg-card-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e3ebef;
    color: #477087;
    font-size: 0.75rem;
    font-weight: 600;
}
.reg-card .reg-partner-required {
    margin: 0 0 0.75rem;
    color: #8a5a00;
    font-size: 0.9rem;
    font-weight: 600;
}
.reg-card-desc {
    position: relative;
}
.reg-card-desc-body {
    max-height: 7.5em;
    overflow: hidden;
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.5;
}
.reg-card-desc-body > :last-child {
    margin-bottom: 0;
}
.reg-card-desc-body ul,
.reg-card-desc-body ol {
    padding-left: 1.25rem;
}
.reg-card-desc.is-clamped .reg-card-desc-body {
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
    mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.reg-card-desc.is-open .reg-card-desc-body {
    max-height: none;
}
.reg-card-toggle {
    margin: 0.375rem 0 0;
    padding: 0;
    background: none;
    border: 0;
    color: #477087;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}
.reg-card-toggle:hover {
    text-decoration: underline;
}
.reg-card-toggle[hidden] {
    display: none;
}
.reg-card-side .reg-price-amount {
    font-size: 1.5rem;
}
.reg-card .reg-event-soldout {
    margin-top: 1rem;
}
.reg-card .reg-soldout-label {
    display: inline-block;
    margin: 0;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: #f8e1e1;
    color: #8a1f1f;
    font-size: 0.85rem;
    font-weight: 700;
}
.reg-card .reg-staff-override {
    margin-top: 0.75rem;
}
#classregform .reg-card-teachers a,
#classregform .reg-card-teachers a span {
    text-decoration: none;
}
#classregform .reg-card-teachers a:hover span {
    text-decoration: underline;
}

/* Registration cards: past class dates and "In progress · week N of M" */
.reg-card-dates-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem 0.75rem;
    margin: 0 0 0.875rem;
}
.reg-card-dates-row .reg-card-dates {
    margin: 0;
}
.reg-card-dates li.is-past {
    background: transparent;
    box-shadow: inset 0 0 0 1px #dee2e6;
    color: #adb5bd;
    font-weight: 500;
    text-decoration: line-through;
}
.reg-card-progress {
    font-size: 0.85rem;
    font-weight: 600;
    color: #8a5a00;
    white-space: nowrap;
}

/* Registration page: fewer stacked headings, tighter top, no column divider */
.reg-page .sidebar-col-right {
    border-left: 0;
}
.reg-page .top-col .instructors-intro {
    margin-bottom: 1.25rem;
}
.reg-page .instructors-intro .reg-policy {
    margin-top: 0.125rem;
}
.reg-top-empty .reg-policy {
    display: none;
}
#classregform .reg-section:first-of-type > h3 {
    margin-top: 0 !important;
}
#classregform #validation:empty {
    display: none;
}

/* Registration page: when the columns sit side by side, start the sidebar's
   first card level with the first class card (not the "December" heading,
   which labels the class list only). 4.625rem = the month heading's height
   plus its margins. */
@media (min-width: 768px) {
    .reg-page .sidebar-col-right {
        padding-top: 4.625rem;
    }
    .reg-page.reg-no-classes .sidebar-col-right {
        padding-top: 0;
    }
}
