/**
 * CB Nova Tech — Layout
 * ----------------------------------------------------------------------------
 * Containers, section rhythm, grids, the sticky header and the footer.
 *
 * @package cbnovatech
 */

/* ============================================================================
   1. CONTAINER
   ========================================================================== */

.cbnt-container {
  width: 100%;
  max-width: calc(var(--cbnt-container) + (var(--cbnt-gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--cbnt-gutter);
}

.cbnt-container--wide   { max-width: calc(var(--cbnt-container-wide) + (var(--cbnt-gutter) * 2)); }
.cbnt-container--narrow { max-width: calc(var(--cbnt-container-narrow) + (var(--cbnt-gutter) * 2)); }


/* ============================================================================
   2. SECTIONS
   Alternating surfaces are what stop a long page reading as one flat scroll.
   ========================================================================== */

.cbnt-section {
  position: relative;
  padding-block: var(--cbnt-section-y);
}

.cbnt-section--tight { padding-block: var(--cbnt-section-y-tight); }
.cbnt-section--loose { padding-block: var(--cbnt-section-y-loose); }
.cbnt-section--flush-top    { padding-top: 0; }
.cbnt-section--flush-bottom { padding-bottom: 0; }

/* Surface treatments */
.cbnt-section--light  { background: var(--cbnt-surface); }
.cbnt-section--subtle { background: var(--cbnt-surface-subtle); }
.cbnt-section--tint   { background: var(--cbnt-surface-tint); }
.cbnt-section--dark   { background: var(--cbnt-surface-dark); color: var(--cbnt-text-on-dark); }
.cbnt-section--gradient {
  background: var(--cbnt-gradient-dark);
  color: var(--cbnt-text-on-dark);
}

/* Hairline separator for two adjacent same-colour sections */
.cbnt-section--divided { border-top: 1px solid var(--cbnt-border); }

/* Subtle grid texture for dark sections. Pure CSS — no image request. */
.cbnt-section--grid-texture::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  /* Fade the grid out toward the edges so it reads as texture, not a table */
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 100%);
  pointer-events: none;
}

.cbnt-section > .cbnt-container { position: relative; z-index: var(--cbnt-z-base); }

/* Ambient glow behind dark hero content */
.cbnt-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.4;
  pointer-events: none;
}
.cbnt-glow--blue { background: var(--cbnt-blue-600); }
.cbnt-glow--accent { background: var(--cbnt-accent-500); opacity: 0.22; }


/* ============================================================================
   3. GRIDS
   `auto-fit` + `minmax` means these reflow with no media queries at all.
   ========================================================================== */

.cbnt-grid { display: grid; gap: var(--cbnt-grid-gap); }

.cbnt-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.cbnt-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.cbnt-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }

/* Fixed-column variants where reflow order matters */
@media (min-width: 768px) {
  .cbnt-grid--2-fixed { grid-template-columns: repeat(2, 1fr); }
  .cbnt-grid--3-fixed { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .cbnt-grid--4-fixed { grid-template-columns: repeat(4, 1fr); }
  .cbnt-grid--5-fixed { grid-template-columns: repeat(5, 1fr); }
}

/* Asymmetric content/media split used by the service feature blocks */
.cbnt-split { display: grid; gap: var(--cbnt-stack-gap); align-items: center; }
@media (min-width: 900px) {
  .cbnt-split { grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 1rem + 4vw, 5rem); }
  .cbnt-split--content-lead { grid-template-columns: 1.05fr 0.95fr; }
  .cbnt-split--media-lead   { grid-template-columns: 0.95fr 1.05fr; }
  /* Reverses visual order without changing DOM order, so the reading order
     stays correct for screen readers and on mobile. */
  .cbnt-split--reverse > :first-child { order: 2; }
}

.cbnt-stack { display: flex; flex-direction: column; gap: var(--cbnt-space-4); }
.cbnt-stack--lg { gap: var(--cbnt-space-8); }
.cbnt-cluster { display: flex; flex-wrap: wrap; gap: var(--cbnt-space-3); align-items: center; }


/* ============================================================================
   4. ANNOUNCEMENT BAR
   ========================================================================== */

.cbnt-announce {
  background: var(--cbnt-navy-950);
  color: var(--cbnt-text-on-dark-muted);
  font-size: var(--cbnt-text-xs);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.cbnt-announce__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--cbnt-space-4);
  min-height: var(--cbnt-announce-h);
  padding-block: var(--cbnt-space-2);
  text-align: center;
  flex-wrap: wrap;
}

/* 24px is the WCAG 2.5.8 (AA) target minimum. The announcement bar is a thin
   utility strip, so the full 44px comfort target is not appropriate here —
   it would triple the bar's height. 24px clears the standard and still fits
   inside the 40px bar. */
.cbnt-announce a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: var(--cbnt-accent-300);
  font-weight: var(--cbnt-weight-semibold);
  text-decoration: none;
}
.cbnt-announce a:hover { color: var(--cbnt-white); text-decoration: underline; }

.cbnt-announce__contact {
  display: inline-flex;
  align-items: center;
  gap: var(--cbnt-space-2);
}
.cbnt-announce__sep { opacity: 0.3; }

@media (max-width: 640px) {
  /* Keep only the primary message on small screens */
  .cbnt-announce__sep,
  .cbnt-announce__contact--secondary { display: none; }
}


/* ============================================================================
   5. HEADER
   Transparent over dark heroes, solid once scrolled. The `.is-scrolled` class
   is toggled by cbnt.js on a passive, rAF-throttled scroll listener.
   ========================================================================== */

.cbnt-header {
  position: sticky;
  top: 0;
  z-index: var(--cbnt-z-header);
  background: var(--cbnt-white);
  border-bottom: 1px solid var(--cbnt-border);
  transition: background-color var(--cbnt-duration) var(--cbnt-ease),
              box-shadow var(--cbnt-duration) var(--cbnt-ease),
              border-color var(--cbnt-duration) var(--cbnt-ease);
}

.cbnt-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--cbnt-space-6);
  min-height: var(--cbnt-header-h);
  transition: min-height var(--cbnt-duration) var(--cbnt-ease);
}

.cbnt-header.is-scrolled {
  box-shadow: var(--cbnt-shadow-header);
  border-bottom-color: transparent;
}
.cbnt-header.is-scrolled .cbnt-header__inner { min-height: var(--cbnt-header-h-scrolled); }

/* Overlay mode — used on pages whose first section is a dark hero */
.cbnt-header--overlay {
  position: fixed;
  inset-inline: 0;
  background: transparent;
  border-bottom-color: transparent;
}
.cbnt-header--overlay .cbnt-nav__link,
.cbnt-header--overlay .cbnt-header__toggle { color: var(--cbnt-white); }
.cbnt-header--overlay .cbnt-nav__link:hover { color: var(--cbnt-accent-300); }

/* Once scrolled, the overlay header becomes a normal solid header */
.cbnt-header--overlay.is-scrolled {
  background: var(--cbnt-white);
  position: sticky;
}
.cbnt-header--overlay.is-scrolled .cbnt-nav__link,
.cbnt-header--overlay.is-scrolled .cbnt-header__toggle { color: var(--cbnt-navy-900); }
.cbnt-header--overlay.is-scrolled .cbnt-nav__link:hover { color: var(--cbnt-blue-600); }

/* Logo */
.cbnt-header__brand {
  display: inline-flex;
  align-items: center;
  /* The logo shrinks to 34px on small screens; min-height keeps the link
     itself a 44px tap target regardless. */
  min-height: 44px;
  gap: var(--cbnt-space-3);
  text-decoration: none;
  flex-shrink: 0;
}
.cbnt-header__logo { height: 48px; width: auto; }
@media (max-width: 480px) { .cbnt-header__logo { height: 40px; } }

/* Logo variant swap.
   Default (solid white header) shows the dark wordmark. In overlay mode over
   the navy hero the reversed variant is shown instead, and it swaps back once
   the header turns solid on scroll. Handled in CSS so the correct mark is
   painted on first render — a JS swap would flash the wrong one. */
.cbnt-header__logo--light { display: none; }

.cbnt-header--overlay:not(.is-scrolled) .cbnt-header__logo--dark  { display: none; }
.cbnt-header--overlay:not(.is-scrolled) .cbnt-header__logo--light { display: block; }

.cbnt-header__actions {
  display: flex;
  align-items: center;
  gap: var(--cbnt-space-3);
}


/* ============================================================================
   6. PRIMARY NAVIGATION (desktop)
   ========================================================================== */

.cbnt-nav { display: none; }

@media (min-width: 1080px) {
  .cbnt-nav { display: block; margin-inline: auto; }
  .cbnt-nav__list {
    display: flex;
    align-items: center;
    gap: var(--cbnt-space-1);
    list-style: none;
    margin: 0; padding: 0;
  }
  .cbnt-nav__item { position: relative; }

  .cbnt-nav__link {
    display: inline-flex;
    align-items: center;
    gap: var(--cbnt-space-2);
    padding: var(--cbnt-space-2) var(--cbnt-space-3);
    font-size: var(--cbnt-text-sm);
    font-weight: var(--cbnt-weight-medium);
    color: var(--cbnt-navy-900);
    text-decoration: none;
    border-radius: var(--cbnt-radius-sm);
    white-space: nowrap;
    transition: var(--cbnt-transition-colors);
  }
  .cbnt-nav__link:hover { color: var(--cbnt-blue-600); }

  /* Current page gets an underline as well as a colour change, so the state
     is not communicated by colour alone. */
  .cbnt-nav__item.is-current > .cbnt-nav__link {
    color: var(--cbnt-blue-600);
    font-weight: var(--cbnt-weight-semibold);
  }
  .cbnt-nav__item.is-current > .cbnt-nav__link::after {
    content: "";
    position: absolute;
    left: var(--cbnt-space-3);
    right: var(--cbnt-space-3);
    bottom: 2px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
  }

  .cbnt-nav__caret {
    width: 10px; height: 10px;
    transition: transform var(--cbnt-duration-fast) var(--cbnt-ease);
  }
  .cbnt-nav__item:hover > .cbnt-nav__link .cbnt-nav__caret,
  .cbnt-nav__item:focus-within > .cbnt-nav__link .cbnt-nav__caret { transform: rotate(180deg); }

  /* Dropdown. Opens on hover AND focus-within, so it is fully keyboard
     operable without any JavaScript. */
  .cbnt-nav__dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    translate: -50% 0;
    min-width: 260px;
    background: var(--cbnt-white);
    border: 1px solid var(--cbnt-border);
    border-radius: var(--cbnt-radius-md);
    box-shadow: var(--cbnt-shadow-lg);
    padding: var(--cbnt-space-2);
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity var(--cbnt-duration-fast) var(--cbnt-ease),
                transform var(--cbnt-duration-fast) var(--cbnt-ease),
                visibility var(--cbnt-duration-fast);
  }
  /* Invisible bridge stops the menu closing as the pointer crosses the gap */
  .cbnt-nav__dropdown::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: -12px;
    height: 12px;
  }

  .cbnt-nav__item:hover > .cbnt-nav__dropdown,
  .cbnt-nav__item:focus-within > .cbnt-nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .cbnt-nav__dropdown a {
    display: block;
    padding: var(--cbnt-space-3) var(--cbnt-space-4);
    border-radius: var(--cbnt-radius-sm);
    font-size: var(--cbnt-text-sm);
    font-weight: var(--cbnt-weight-medium);
    color: var(--cbnt-navy-900);
    text-decoration: none;
  }
  .cbnt-nav__dropdown a:hover,
  .cbnt-nav__dropdown a:focus-visible {
    background: var(--cbnt-blue-50);
    color: var(--cbnt-blue-700);
  }
  .cbnt-nav__dropdown-desc {
    display: block;
    font-size: var(--cbnt-text-xs);
    font-weight: var(--cbnt-weight-regular);
    color: var(--cbnt-text-subtle);
    margin-top: 2px;
  }
}


/* ============================================================================
   7. MOBILE NAVIGATION
   ========================================================================== */

.cbnt-header__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  color: var(--cbnt-navy-900);
  border-radius: var(--cbnt-radius-sm);
}
@media (min-width: 1080px) { .cbnt-header__toggle { display: none; } }

/* Animated hamburger → close */
.cbnt-burger { position: relative; width: 22px; height: 16px; }
.cbnt-burger span {
  position: absolute;
  left: 0;
  width: 100%; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--cbnt-duration) var(--cbnt-ease-out),
              opacity var(--cbnt-duration-fast) var(--cbnt-ease);
}
.cbnt-burger span:nth-child(1) { top: 0; }
.cbnt-burger span:nth-child(2) { top: 7px; }
.cbnt-burger span:nth-child(3) { top: 14px; }

[aria-expanded="true"] .cbnt-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
[aria-expanded="true"] .cbnt-burger span:nth-child(2) { opacity: 0; }
[aria-expanded="true"] .cbnt-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.cbnt-mobile-nav {
  position: fixed;
  inset: 0;
  z-index: var(--cbnt-z-mobile-nav);
  background: var(--cbnt-white);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: env(safe-area-inset-bottom);
  /* `visibility` is animated too, so the panel is not focusable when closed */
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: transform var(--cbnt-duration-slow) var(--cbnt-ease-out),
              opacity var(--cbnt-duration) var(--cbnt-ease),
              visibility var(--cbnt-duration-slow);
}
.cbnt-mobile-nav.is-open { opacity: 1; visibility: visible; transform: translateX(0); }
@media (min-width: 1080px) { .cbnt-mobile-nav { display: none; } }

.cbnt-mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--cbnt-header-h);
  padding-inline: var(--cbnt-gutter);
  border-bottom: 1px solid var(--cbnt-border);
  flex-shrink: 0;
}

.cbnt-mobile-nav__body { padding: var(--cbnt-space-4) var(--cbnt-gutter) var(--cbnt-space-8); flex: 1; }
.cbnt-mobile-nav__list { list-style: none; margin: 0; padding: 0; }
.cbnt-mobile-nav__list li { border-bottom: 1px solid var(--cbnt-border); }

.cbnt-mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--cbnt-space-3);
  width: 100%;
  min-height: 56px;
  padding-block: var(--cbnt-space-3);
  font-family: var(--cbnt-font-heading);
  font-size: 1.0625rem;
  font-weight: var(--cbnt-weight-semibold);
  color: var(--cbnt-navy-900);
  text-decoration: none;
  text-align: left;
}
.cbnt-mobile-nav__link .cbnt-nav__caret { transition: transform var(--cbnt-duration) var(--cbnt-ease); }
.cbnt-mobile-nav__link[aria-expanded="true"] .cbnt-nav__caret { transform: rotate(180deg); }

/* Submenu uses grid-template-rows so it animates without a hard-coded height */
.cbnt-mobile-nav__sub {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--cbnt-duration-slow) var(--cbnt-ease-out);
}
.cbnt-mobile-nav__sub.is-open { grid-template-rows: 1fr; }
.cbnt-mobile-nav__sub > ul {
  overflow: hidden;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cbnt-mobile-nav__sub li { border: 0; }
.cbnt-mobile-nav__sub a {
  display: block;
  padding: var(--cbnt-space-3) 0 var(--cbnt-space-3) var(--cbnt-space-4);
  font-size: var(--cbnt-text-sm);
  font-weight: var(--cbnt-weight-medium);
  color: var(--cbnt-text-muted);
  text-decoration: none;
  border-left: 2px solid var(--cbnt-border);
  min-height: 44px;
}
.cbnt-mobile-nav__sub a:hover { color: var(--cbnt-blue-600); border-left-color: var(--cbnt-blue-600); }

.cbnt-mobile-nav__footer {
  margin-top: var(--cbnt-space-8);
  padding-top: var(--cbnt-space-6);
  border-top: 1px solid var(--cbnt-border);
}

/* Locks background scroll while the panel is open */
body.cbnt-nav-open { overflow: hidden; }


/* ============================================================================
   8. FOOTER
   ========================================================================== */

.cbnt-footer {
  background: var(--cbnt-navy-950);
  color: var(--cbnt-text-on-dark-muted);
  padding-top: var(--cbnt-section-y-tight);
  font-size: var(--cbnt-text-sm);
}

.cbnt-footer__grid {
  display: grid;
  gap: var(--cbnt-space-10);
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .cbnt-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cbnt-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: var(--cbnt-space-12); } }

.cbnt-footer__logo { height: 52px; width: auto; margin-bottom: var(--cbnt-space-5); }
.cbnt-footer__about { max-width: 34ch; line-height: var(--cbnt-leading-relaxed); }

.cbnt-footer__heading {
  font-family: var(--cbnt-font-heading);
  font-size: var(--cbnt-text-xs);
  font-weight: var(--cbnt-weight-bold);
  letter-spacing: var(--cbnt-tracking-eyebrow);
  text-transform: uppercase;
  color: var(--cbnt-white);
  margin-bottom: var(--cbnt-space-5);
}

.cbnt-footer__list { list-style: none; margin: 0; padding: 0; }
.cbnt-footer__list li + li { margin-top: var(--cbnt-space-2); }

/* Footer links are laid out as flex boxes with a minimum height rather than
   bare inline text. A bare inline link is only ~20px tall, which fails the
   WCAG 2.5.8 target-size minimum and is genuinely fiddly to tap. */
.cbnt-footer__list a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--cbnt-text-on-dark-muted);
  text-decoration: none;
  transition: var(--cbnt-transition-colors);
}
.cbnt-footer__list a:hover { color: var(--cbnt-white); text-decoration: underline; }

@media (max-width: 767px) {
  .cbnt-footer__list a { min-height: 44px; }
  .cbnt-footer__list li + li { margin-top: 0; }
}

.cbnt-footer__contact { list-style: none; margin: 0; padding: 0; }
.cbnt-footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: var(--cbnt-space-3);
}
.cbnt-footer__contact li + li { margin-top: var(--cbnt-space-4); }
.cbnt-footer__contact svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--cbnt-accent-400);
}
.cbnt-footer__contact a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--cbnt-white);
  text-decoration: none;
  font-weight: var(--cbnt-weight-medium);
}
.cbnt-footer__contact a:hover { text-decoration: underline; }
@media (max-width: 767px) { .cbnt-footer__contact a { min-height: 44px; } }

.cbnt-footer__social { display: flex; gap: var(--cbnt-space-2); margin-top: var(--cbnt-space-6); }
.cbnt-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--cbnt-border-on-dark);
  border-radius: var(--cbnt-radius-sm);
  color: var(--cbnt-text-on-dark-muted);
  transition: var(--cbnt-transition-colors);
}
.cbnt-footer__social a:hover {
  background: var(--cbnt-blue-600);
  border-color: var(--cbnt-blue-600);
  color: var(--cbnt-white);
}
.cbnt-footer__social svg { width: 18px; height: 18px; }

.cbnt-footer__bottom {
  margin-top: var(--cbnt-section-y-tight);
  border-top: 1px solid var(--cbnt-border-on-dark);
  padding-block: var(--cbnt-space-6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--cbnt-space-4);
  font-size: var(--cbnt-text-xs);
}
.cbnt-footer__legal { display: flex; flex-wrap: wrap; gap: var(--cbnt-space-5); list-style: none; margin: 0; padding: 0; }
.cbnt-footer__legal a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--cbnt-text-on-dark-muted);
  text-decoration: none;
}
.cbnt-footer__legal a:hover { color: var(--cbnt-white); text-decoration: underline; }
@media (max-width: 767px) { .cbnt-footer__legal a { min-height: 44px; } }


/* ============================================================================
   9. MOBILE STICKY CTA
   Deliberately restrained: appears only after the user has scrolled past the
   hero, sits above the safe area, and never covers content permanently.
   ========================================================================== */

.cbnt-mobile-cta {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: var(--cbnt-z-sticky);
  display: flex;
  gap: var(--cbnt-space-3);
  padding: var(--cbnt-space-3) var(--cbnt-gutter);
  padding-bottom: calc(var(--cbnt-space-3) + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--cbnt-border);
  transform: translateY(110%);
  transition: transform var(--cbnt-duration-slow) var(--cbnt-ease-out);
}
.cbnt-mobile-cta.is-visible { transform: translateY(0); }

/* Overrides the --sm button height: this bar is touch-only, so 44px is the
   floor regardless of the small visual size. */
.cbnt-mobile-cta .cbnt-btn { flex: 1; min-height: 46px; }

@media (min-width: 768px) { .cbnt-mobile-cta { display: none; } }

/* Stops the sticky bar covering the last few lines of the footer */
@media (max-width: 767px) {
  body.cbnt-has-mobile-cta .cbnt-footer__bottom { padding-bottom: calc(var(--cbnt-space-6) + 68px); }
}


/* ============================================================================
   10. UTILITIES
   ========================================================================== */

.cbnt-text-center  { text-align: center; }
.cbnt-mx-auto      { margin-inline: auto; }
.cbnt-measure      { max-width: var(--cbnt-measure); }
.cbnt-measure-tight{ max-width: var(--cbnt-measure-tight); }
.cbnt-full-bleed   { width: 100vw; margin-inline: calc(50% - 50vw); }
.cbnt-relative     { position: relative; }
/* Responsive visibility.
   Written as two mutually exclusive media queries rather than a base rule plus
   a `display: revert` override. Two reasons:
     1. `revert` returns the element to its user-agent display value, which
        would turn a `.cbnt-btn` back into `display: inline` and break the
        button layout entirely.
     2. A plain `.cbnt-hide-mobile { display: none }` ties on specificity with
        `.cbnt-btn { display: inline-flex }` and loses on source order, so the
        utility silently did nothing on buttons.
   This pattern leaves the element's natural display untouched outside the
   range where it is hidden. */
@media (max-width: 767px)  { .cbnt-hide-mobile  { display: none !important; } }
@media (min-width: 768px)  { .cbnt-hide-desktop { display: none !important; } }
