:root{
  --cpld-gold: #e5c55a;   /* tweak to match your brand */
  --cpld-navy: #2b3646;
}

/* === CPLD-style header === */
.cpld-header{
  --cpld-gold: #e5c55a;   /* tweak to match your brand */
  --cpld-navy: #2b3646;
  --cpld-border: #e5e7eb;
  --cpld-radius: 10px;
  --cpld-max: 1200px;
  font-family: inherit;
}

/* Make the Header template-part sticky */
header.wp-block-template-part,
.wp-site-blocks > header,
.wp-site-blocks > .wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #fff;
}

.cpld-header__top,
.cpld-header__nav,
.cpld-header__utility,
.cpld-header__logo img{
  transition: padding 180ms ease, margin 180ms ease, max-width 180ms ease, transform 180ms ease;
}
/* Logo shrink animation */

.is-scrolled .cpld-header__logo {
  font-size: 20px;
  margin-top: 20px;
}
/*.is-scrolled .cpld-header__logo img{*/
/*  font-size: 20px;*/
/*  padding-top: 20px;*/
/*}*/
/* Reduce vertical padding in your rows */
.is-scrolled .cpld-header__top{ padding-top: 2px; padding-bottom: 0px; }
.is-scrolled .cpld-header__nav{ padding-top: 0px; padding-bottom: 1px; margin-top: -20px; }

/* Shrink logo */


.cpld-header__top,
.cpld-header__nav,
.cpld-header__utility{
  max-width: var(--cpld-max);
  margin: 0 auto;
  padding: 14px 16px;
}
/* Top row */
.cpld-header__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
}

.cpld-header__logo{
  display:inline-flex;
  align-items: baseline;
  vertical-align: bottom;
  font-size: 30px;
  color: var(--cpld-navy);
  padding: 10px 14px;
  border: 1px solid var(--cpld-border);
  border-radius: var(--cpld-radius);
  background: #fff;
  text-decoration:none;
  font-family: Alata;
  position: relative;
  top: 16px;   /* try 2px–6px */
}

.cpld-header__logo img{
  display:block;
  height:auto;
  max-width: 240px;
}

.cpld-header__top-right{
  display:flex;
  align-items:center;
  gap: 18px;
}


/* Put OPEN/CLOSED + Today's Hours on one line */
.cpld-header__status{
  font-size: 15px;
  line-height: 1.2;
  display: flex;
  align-items: center;
  color: var(--cpld-navy);
  justify-content: flex-end; /* keeps it tight on the right */
  gap: 12px;
  text-align: right; /* safe if you're right-aligning that area */
}

.cpld-header__status strong{
  font-size: 15px;
}
/* remove the default multi-line spacing */
.cpld-header__status-line{
  margin: 0;
}

/* stack on small screens */
@media (max-width: 600px){
  .cpld-header__status{
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 6px;
  }
}

/* Responsive */
@media (max-width: 900px){
  .cpld-header__top{
    flex-direction:column;
    align-items:stretch;
  }
  .cpld-header__top-right{
    justify-content:space-between;
  }

}

/* WP accessibility helper if your theme doesn't include it */
.screen-reader-text{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  border:0;
}

/* Solid gold social icons, no outline ring */
.cpld-header__social{
  display:flex;
  gap: 4px;
}

.cpld-social{
  width: 32px;
  height: 32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border: 0;              /* no outline */
  background: transparent; /* just the icon */
  color: var(--cpld-gold); /* icon fill color */
  text-decoration:none;
}

.cpld-social svg{
  width: 32px;
  height: 32px;
  display:block;
  fill: currentColor;     /* makes SVG fill gold */
}

/* Optional: subtle hover */
.cpld-social:hover{
  opacity: 0.85;
  transform: translateY(-1px);
}

.cpld-social:focus-visible{
  outline: 2px solid var(--cpld-gold);
  outline-offset: 3px;
}

/* Header utility row: search left, buttons right */
.cpld-header__utility {
  padding: 10px 16px;
}


/* Search full-width in its column */
.cpld-header__search .wp-block-search__inside-wrapper {
  width: 100%;
  border: 1px solid rgba(43, 54, 70, 0.25); /* your #2b3646 softened */
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff;
}

/* Input styling */
.cpld-header__search input.wp-block-search__input {
  border: 0;
  outline: 0;
  padding: 6px 8px;
  font-size: 16px;
}

/* Button inside search */
.cpld-header__search button.wp-block-search__button {
  border: 0;
  border-radius: 999px;
}


.cpld-header__utility-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.cpld-header__segmented .wp-block-buttons {
  border: 3px solid var(--wp--preset--color--brand-blue);
  border-radius: 15px;
  overflow: hidden; 
  gap: 0; 
}

/* Remove individual button styling so the wrapper owns the border */
.cpld-header__segmented .wp-block-button__link {

  border: 0 !important;
  border-radius: 0 !important;
  background: transparent;
  color: var(--wp--preset--color--brand-dark);
  padding: 15px 15px;
  font-weight: 600;
  line-height: 1;
}


/* Divider between the two */
.cpld-header__segmented .wp-block-button + .wp-block-button .wp-block-button__link {
  border-left: 2px solid var(--wp--preset--color--brand-blue);
  color: var(--wp--preset--color--brand-dark)
}

/* Hover: subtle fill like the mock */
.cpld-header__segmented .wp-block-button__link:hover {
  background: #fff;
}

/* Focus for keyboard users */
.cpld-header__segmented .wp-block-button__link:focus-visible {
  outline: 4px solid var(--wp--preset--color--brand-blue);
  outline-offset: -2px;
}
/* Make the second button filled */
.cpld-header__segmented .wp-block-button:first-child .wp-block-button__link {
  background: var(--wp--preset--color--brand-blue);
  color: #fff !important;
}

.cpld-header__segmented .wp-block-button:first-child .wp-block-button__link:hover {
  background: var(--wp--preset--color--brand-dark);
  color: #fff !important;
}
.cpld-header__segmented .wp-block-button__link:hover {
  background: var(--wp--preset--color--brand-dark);
  color: #fff !important;
}

.cpld-search {
  display: flex;
  align-items: stretch;
  width: 100%;
  border: 2px solid var(--wp--preset--color--brand-blue);
  border-radius: 999px;
  overflow: hidden;
  background: var(--wp--preset--color--base);
}

/* Left dropdown segment */
.cpld-search__mode {
  border: 0;
  background: var(--wp--preset--color--brand-blue);
  color: #fff;
  padding: 0 12px;
  font-weight: 700;
  cursor: pointer;

  /* remove default select styling as much as possible */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Simple chevron */
.cpld-search__mode {
  background-image: linear-gradient(45deg, transparent 50%, #fff 50%),
                    linear-gradient(135deg, #fff 50%, transparent 50%);
  background-position: calc(100% - 16px) 55%, calc(100% - 11px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 28px; /* room for chevron */
}

.cpld-search__input {
  border: 0;
  outline: 0;
  flex: 1;
  padding: 15px 12px;
  min-width: 0;
  font-size: 16px;
  background: transparent;
  color: var(--wp--preset--color--text);
}

.cpld-search__submit {
  border: 0;
  background: transparent;
  padding: 0 14px;
  cursor: pointer;
  color: var(--wp--preset--color--brand-dark);
}

.cpld-search:focus-within {
  box-shadow: 0 0 0 3px rgba(112, 166, 232, 0.35);
}

.cpld-menu_submenu{
  background: var(--cpld-gold);
  color: var(--wp--preset--color--brand-mutedblue);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.10);
}
.cpld-menu_submenu svg{
  color: inherit; /* sets currentColor */
}

.cpld-search-hero{
  border-radius: 0;           /* keep it edge-to-edge */
  overflow: hidden;           /* ensures clean crop */
}

.cpld-search-hero .wp-block-cover__image-background{
  object-position: center center; /* crop from top/bottom, keep top visible */
}

/* remove the “gap” created by default block margins */
.cpld-search-hero{
  margin-top: 0 !important;
  min-height: 360px;
  position: relative;
}

/* Search block often has a bottom margin */
.wp-block-search{
  margin-bottom: 0 !important;
}

/* If they’re inside your header group wrapper */
.cpld-header__search-wrap > *{
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}


/* Put a vertical divider between columns */
.cpld-cols-divider{
  position: relative;
}

.cpld-cols-divider > .wp-block-column{
  position: relative;
}

/* Divider after the first column (between col 1 and col 2) */
.cpld-cols-divider > .wp-block-column:first-child::after{
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: calc(var(--wp--style--block-gap, 24px) / -2);
  width: 1px;
  background: rgba(0,0,0,.15);
}
/* Vertical divider between columns (works reliably in WP Columns block) */
.wp-block-columns.cpld-cols-divider > .wp-block-column + .wp-block-column{
  border-left: 1px solid rgba(0,0,0,.18);
  padding-left: 20px;  /* space from the line */
  margin-left: 20px;   /* space on the other side */
}



/* Style for events*/

    :root{
      --bg: #eef0f2;
      --ink: #111;
      --muted: #2f2f2f;
      --link: #2a7c86;           /* teal-ish title */
      --card-border: #d7dbe0;
      --hover-outline: #4e8ff0;  /* blue outline */
      --btn: #4a5a73;            /* slate button */
      --btn-text: #fff;
    }
    *{ box-sizing: border-box; }
      .cpld-card{
      margin:0;
      font-family:inherit ;
      color: var(--ink);
    }


    .panel{
      width: 360px;             /* screenshot-ish width */
      max-width: 100%;
    }


    .status{
      font-size: 13px;
      color: #566;
      margin: 8px 0 12px;
      white-space: pre-wrap;
    }
    .status.error{ color:#b00020; }

    .list{
      display:flex;
      flex-direction: column;
      gap: 18px;
    }

    .event-card{
      background: rgba(255,255,255,.55);
      border: 1px solid var(--card-border);
      border-radius: 1px;
      display:grid;
      grid-template-columns: 8px 92px 1fr;
      min-height: 86px;
      align-items: stretch;
    }

    .event-card:hover,
    .event-card:focus-within{
      outline: 2px solid var(--hover-outline);
      outline-offset: 0;
      background: rgba(255,255,255,.75);
    }

    .bar{ width: 8px; background: #7aa879; }

    .date{
      padding: 14px 10px 14px 14px;
      display:flex;
      flex-direction: column;
      justify-content: center;
      gap: 2px;
    }

    .month{
      font-size: 18px;
      font-weight: 700;
      letter-spacing: .04em;
      text-transform: uppercase;
      line-height: 1;
    }

    .day{
      font-size: 34px;
      font-weight: 800;
      line-height: 1;
      margin-top: 2px;
    }

    .dow{
      font-size: 15px;
      font-weight: 800;
      letter-spacing: .06em;
      text-transform: uppercase;
      line-height: 1;
      margin-top: 2px;
    }

    .details{
      padding: 14px 14px 14px 6px;
      display:flex;
      flex-direction: column;
      justify-content: center;
      gap: 6px;
      min-width: 0; /* allow clamping */
    }

    .title a{
      color: var(--link);
      font-weight: 650;
      text-decoration: none;

      /* 2-line clamp */
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
      overflow: hidden;
      line-height: 1.15;
      max-height: calc(1.15em * 2);
    }
    .title a:hover{ text-decoration: underline; }

    .time{
      font-size: 14px;
      color: var(--muted);
      line-height: 1.1;
    }

    .pillrow{
      display:flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 2px;
    }
    .pillrow:empty{ display:none; }

    .pill{
      font-size: 12px;
      padding: 4px 8px;
      border: 1px solid rgba(0,0,0,.12);
      border-radius: 999px;
      color: #444;
      background: rgba(0,0,0,.02);
      max-width: 100%;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .cta{
      margin-top: 18px;
      width: 100%;
      border: 0;
      border-radius: 10px;
      background: var(--btn);
      color: var(--btn-text);
      padding: 16px 18px;
      font-weight: 650;
      font-size: 16px;
      display:flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      cursor: pointer;
    }
    .cta:hover{ filter: brightness(1.05); }
    .cta:active{ transform: translateY(1px); }

    .cta svg{
      width: 20px;
      height: 20px;
      fill: none;
      stroke: #fff;
      stroke-width: 2;
    }

    @media (max-width: 380px){
      .event-card{ grid-template-columns: 8px 84px 1fr; }
      .day{ font-size: 32px; }
    }


