/* CapPulse centered desktop header and responsive, accessible home carousel. */
.capzo-announcement-bar {
  display: flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  background: #fff;
  color: #111;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .15em;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
}

.capzo-announcement-bar span {
  margin-inline: 7px;
}

@media (min-width: 1101px) {
  .capzo-header-inner {
    min-height: 160px;
    height: auto;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-rows: 70px 90px;
    align-items: center;
  }

  .capzo-site-header .capzo-brand {
    grid-column: 2;
    grid-row: 1;
  }

  .capzo-header-tools {
    grid-column: 3;
    grid-row: 1;
  }

  .capzo-primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-self: stretch;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    gap: 0;
  }

  .capzo-main-links {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: clamp(15px, 1.8vw, 27px);
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: .045em;
    white-space: nowrap;
  }

  .capzo-main-links > a,
  .capzo-main-links .capzo-nav-dropdown > button {
    position: relative;
  }

  .capzo-category-nav {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: clamp(16px, 2.8vw, 46px);
    border-top: 1px solid #ececec;
    font-size: 10px;
    letter-spacing: .035em;
  }

  .capzo-category-menu-list {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: clamp(16px, 2.8vw, 46px);
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .capzo-category-menu-list > li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
  }

  .capzo-category-menu-list > li > a {
    padding-block: 13px;
    white-space: nowrap;
  }

  .capzo-category-menu-list .sub-menu {
    position: absolute;
    z-index: 100;
    top: 100%;
    left: -14px;
    display: none;
    min-width: 210px;
    margin: 0;
    padding: 9px 0;
    list-style: none;
    background: #fff;
    box-shadow: 0 14px 35px #0002;
  }

  .capzo-category-menu-list li:hover > .sub-menu,
  .capzo-category-menu-list li:focus-within > .sub-menu,
  .capzo-category-menu-list li.is-open > .sub-menu {
    display: block;
  }

  .capzo-category-menu-list .sub-menu a {
    display: block;
    padding: 10px 16px;
    font-size: 11px;
    letter-spacing: .02em;
    text-transform: none;
  }

  .capzo-category-menu-list .sub-menu a:hover,
  .capzo-category-menu-list .sub-menu a:focus-visible {
    background: #f6f6f6;
  }

  .capzo-category-group {
    position: relative;
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
  }

  .capzo-category-parent {
    padding-block: 13px;
    white-space: nowrap;
  }

  .capzo-category-toggle {
    display: grid;
    width: 22px;
    height: 32px;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
  }

  .capzo-category-toggle svg {
    width: 9px;
    height: 7px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    transition: transform .2s ease;
  }

  .capzo-category-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
  }

  .capzo-category-menu {
    position: absolute;
    z-index: 100;
    top: 100%;
    left: -14px;
    min-width: 210px;
    padding: 9px 0;
    background: #fff;
    box-shadow: 0 14px 35px #0002;
  }

  .capzo-category-menu[hidden] {
    display: none !important;
  }

  .capzo-category-menu a {
    display: block;
    padding: 10px 16px;
    font-size: 11px;
    letter-spacing: .02em;
    text-transform: none;
  }

  .capzo-category-menu a:hover,
  .capzo-category-menu a:focus-visible {
    background: #f6f6f6;
  }

  .capzo-category-toggle:focus-visible,
  .capzo-category-parent:focus-visible,
  .capzo-main-links a:focus-visible {
    outline: 2px solid #111;
    outline-offset: 3px;
  }

  .capzo-hero {
    height: clamp(560px, calc(100svh - 192px), 900px);
  }

  body.admin-bar .capzo-hero {
    height: clamp(560px, calc(100svh - 224px), 900px);
  }
}

@media (max-width: 1100px) {
  .capzo-announcement-bar {
    min-height: 30px;
    font-size: 9px;
  }

  .capzo-primary-nav {
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 88px 28px 30px;
  }

  .capzo-main-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 17px;
    text-transform: uppercase;
    font-size: 12px;
  }

  .capzo-category-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 24px;
    padding-top: 12px;
    border-top: 1px solid #e8e8e8;
    font-size: 11px;
    letter-spacing: .04em;
  }

  .capzo-category-menu-list {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .capzo-category-menu-list > li {
    position: relative;
    display: block;
    width: 100%;
    border-bottom: 1px solid #eee;
  }

  .capzo-category-menu-list > li.menu-item-has-children {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    align-items: center;
  }

  .capzo-category-menu-list > li > a {
    display: block;
    min-width: 0;
    padding: 13px 0;
  }

  .capzo-category-menu-list > li.menu-item-has-children > a {
    grid-column: 1;
    grid-row: 1;
  }

  .capzo-category-menu-list > li.menu-item-has-children > .capzo-category-toggle {
    grid-column: 2;
    grid-row: 1;
  }

  .capzo-category-menu-list .sub-menu {
    position: static;
    grid-column: 1 / -1;
    display: none;
    min-width: 0;
    margin: 0;
    padding: 0 0 10px 12px;
    list-style: none;
    background: transparent;
    box-shadow: none;
  }

  .capzo-category-menu-list li.is-open > .sub-menu {
    display: block;
  }

  .capzo-category-menu-list .sub-menu a {
    display: block;
    padding: 10px 0;
    color: #555;
    font-size: 11px;
  }

  .capzo-category-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    align-items: center;
    width: 100%;
    border-bottom: 1px solid #eee;
  }

  .capzo-category-parent {
    min-width: 0;
    padding: 13px 0;
  }

  .capzo-category-toggle {
    display: grid;
    width: 34px;
    height: 42px;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
  }

  .capzo-category-toggle svg {
    width: 10px;
    height: 7px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    transition: transform .2s ease;
  }

  .capzo-category-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
  }

  .capzo-category-menu {
    grid-column: 1 / -1;
    position: static;
    min-width: 0;
    padding: 0 0 10px 12px;
    background: transparent;
    box-shadow: none;
  }

  .capzo-category-menu[hidden] {
    display: none !important;
  }

  .capzo-category-menu a {
    display: block;
    padding: 10px 0;
    color: #555;
    font-size: 11px;
  }
}

.capzo-hero-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transform: translateX(-50%);
  max-width: calc(100% - 28px);
}

.capzo-hero-slide[aria-hidden="true"] {
  pointer-events: none;
}

.capzo-hero-slide[aria-hidden="false"] {
  pointer-events: auto;
}

.capzo-hero-media-link {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  cursor: pointer;
}

.capzo-hero-slide > div {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.capzo-hero-slide > div a {
  pointer-events: auto;
}

.capzo-hero-controls > button {
  display: grid;
  flex: 0 0 34px;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #ffffffa8;
  border-radius: 50%;
  background: #1118;
  color: #fff;
  font: 26px/1 Arial, sans-serif;
  cursor: pointer;
}

.capzo-hero-controls > button:hover,
.capzo-hero-controls > button:focus-visible {
  background: #fff;
  color: #111;
}

.capzo-hero-controls > button:focus-visible,
.capzo-hero-dots button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.capzo-hero-dots {
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
  align-items: center;
  gap: 8px;
}

.capzo-hero-dots button {
  width: 30px;
  height: 16px;
  background: transparent;
  position: relative;
}

.capzo-hero-dots button::after {
  content: "";
  position: absolute;
  inset: 6px 0;
  background: #ffffff80;
}

.capzo-hero-dots button.is-active::after {
  background: #fff;
}

@media (max-width: 767px) {
  .capzo-announcement-bar {
    min-height: 28px;
    padding: 5px 10px;
    font-size: 8px;
    letter-spacing: .1em;
  }

  .capzo-hero {
    height: clamp(560px, calc(100svh - 92px), 780px);
    min-height: 0;
    width: 100%;
    max-width: 100%;
  }

  .capzo-hero-slide {
    align-items: stretch;
    background-image: linear-gradient(180deg, #0000 18%, #0002 48%, #000d 100%), var(--hero-mobile, var(--hero));
    background-position: 72% center;
    background-size: cover;
  }

  body.admin-bar .capzo-hero {
    height: clamp(560px, calc(100svh - 138px), 780px);
  }

  .capzo-hero-slide > div {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 112px 22px 91px;
    background: linear-gradient(180deg, #0000 0%, #0008 35%, #000e 100%);
  }

  .capzo-hero-slide span {
    font-size: 9px;
    letter-spacing: .2em;
  }

  .capzo-hero-slide h1,
  .capzo-hero-slide h2 {
    max-width: 14ch;
    margin: 12px 0 8px;
    font-size: clamp(36px, 9.5vw, 48px);
    line-height: .98;
  }

  .capzo-hero-slide p {
    max-width: 38ch;
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
  }

  .capzo-outline-button {
    margin-top: 16px;
    padding: 12px 18px;
  }

  .capzo-hero-controls {
    bottom: 15px;
    gap: 8px;
  }

  .capzo-hero-controls > button {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
  }

  .capzo-hero-dots {
    gap: 5px;
  }

  .capzo-hero-dots button {
    width: 26px;
  }

  .capzo-primary-nav {
    padding: 82px 24px 28px;
  }
}

@media (max-width: 767px) and (max-height: 540px) {
  .capzo-hero {
    height: calc(100svh - 92px);
    min-height: 420px;
  }

  .capzo-hero-slide > div {
    padding: 70px 18px 84px;
  }

  .capzo-hero-slide h1,
  .capzo-hero-slide h2 {
    font-size: 34px;
  }

  body.admin-bar .capzo-hero {
    height: calc(100svh - 138px);
    min-height: 420px;
  }
}
