/*
 * Canopy public stylesheet.
 *
 * Deliberately minimal: everything visual is authored in the builder and arrives as inline
 * styles or per-node rules. This file only establishes the grid and resets the handful of
 * browser defaults that would otherwise fight the builder's output.
 */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

/* A column layout so the platform bar sits at the foot of the viewport on short pages
   without being fixed over the content on long ones. */
body.cnp-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--canopy-font-body, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif);
  color: var(--canopy-color-text, #1c2321);
  background-color: var(--canopy-color-surface, #fff);
  -webkit-font-smoothing: antialiased;
}

/*
 * The page area is a named query container, so component breakpoints respond to how wide the
 * page actually is rather than how wide the browser window is.
 *
 * On a published page the two are the same: the body has no padding, so this element spans the
 * viewport and every @container below behaves exactly as the @media it replaced.
 *
 * In the builder they are not the same. The viewport buttons narrow this element to a device
 * width, and a media query would still be reading the desktop window — so a phone preview kept
 * the desktop layout and merely squashed it. A three-column blog index at 360px rendered as
 * three 67px columns instead of stacking.
 *
 * Only page CONTENT is queried this way. The platform bar sits outside this element and stays
 * on @media, because it is chrome and should follow the real window whatever the canvas is
 * pretending to be.
 */
#cnp-main {
  flex: 1 0 auto;
  container-type: inline-size;
  container-name: canopy;
}

img, video, iframe { max-width: 100%; }

.cnp-layer {
  position: relative;
  width: auto;
}

/* The 16-column grid every layer lays its containers out on. */
.cnp-grid {
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  align-items: stretch;
  width: 100%;
}

.cnp-container {
  min-width: 0; /* Without this a long word in a narrow container blows out the grid. */
  display: flex;
  flex-direction: column;
}

.cnp-component { min-width: 0; }

.cnp-heading { margin: 0; }

.cnp-text > :first-child { margin-top: 0; }
.cnp-text > :last-child { margin-bottom: 0; }

.cnp-quote-cite {
  display: block;
  margin-top: 8px;
  font-size: 0.8em;
  font-style: normal;
  opacity: 0.75;
}

.cnp-button { text-align: center; }
.cnp-button:hover { filter: brightness(0.94); }
.cnp-link:hover { filter: brightness(0.9); }

.cnp-list { padding-right: 0; }

.cnp-embed > :first-child { margin-top: 0; }
.cnp-embed > :last-child { margin-bottom: 0; }

/* Below the tablet breakpoint containers fall back to full width unless a span was set. */
@container canopy (max-width: 1024px) {
  .cnp-container { grid-column: span 16; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/*
 * The permanent platform bar.
 *
 * Not part of any site's content: it is rendered by the server outside the editable tree, so
 * the builder has no way to move or delete it. Kept as short as it can be while staying
 * legible and tappable. A three-column grid so the credit stays optically centred no matter
 * how wide the account link on the right becomes.
 */
.cnp-platform-bar {
  flex: none;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  padding: 6px 14px;
  background: #000;
  color: #fff;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 12px;
  line-height: 1.4;
}

.cnp-platform-bar__credit {
  grid-column: 2;
  margin: 0;
  text-align: center;
  color: #fff;
}

.cnp-platform-bar__account {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
}

/* One rule for the anchors and for the logout button, so the POST form is visually a link. */
.cnp-platform-bar a,
.cnp-platform-bar button {
  color: #fff;
  text-decoration: none;
  font: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.cnp-platform-bar a:hover,
.cnp-platform-bar button:hover { opacity: 0.75; }

.cnp-platform-bar a:focus-visible,
.cnp-platform-bar button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Offline development mode. Amber against the black bar: not an error, but it must not be
   possible to forget which instance you are looking at. */
.cnp-platform-bar__offline {
  /* Column 1, which is otherwise empty. Column 3 already holds Login/Logout. */
  grid-column: 1;
  justify-self: start;
  padding: 1px 8px;
  border-radius: 3px;
  background: #f0b429;
  color: #241a02;
  font-size: 11px;
  white-space: nowrap;
}

/* The whole bar is one weight — the credit used to bold the two product names. */
.cnp-platform-bar,
.cnp-platform-bar a,
.cnp-platform-bar button,
.cnp-platform-bar strong { font-weight: 400; }

.cnp-platform-bar form { display: contents; }

/* Stays @media: the platform bar is chrome outside the page container, so it follows the real
   window rather than whatever width the builder is simulating. */
@media (max-width: 560px) {
  .cnp-platform-bar {
    grid-template-columns: 1fr auto;
    font-size: 11px;
  }

  .cnp-platform-bar__credit { grid-column: 1; text-align: left; }
  .cnp-platform-bar__account { grid-column: 2; }
}

.cnp-notfound {
  padding: 80px 24px;
  text-align: center;
}

.cnp-notfound h1 { margin: 0; font-size: 56px; letter-spacing: -0.02em; }
.cnp-notfound p { color: var(--canopy-color-text-muted, #5c6b64); }

.cnp-builder-missing {
  margin: 0;
  padding: 12px 16px;
  background: #fdf6e6;
  color: #8a6100;
  font-size: 13px;
}

/* Sign-in page. Kept in the public stylesheet so it needs no bundle of its own. */
.cnp-signin__main { flex: 1 0 auto; display: grid; place-items: center; padding: 40px 20px; }

.cnp-signin__card {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
  border: 1px solid var(--canopy-color-border, #dfe4e0);
  border-radius: 12px;
  background: var(--canopy-color-surface, #fff);
}

.cnp-signin__card h1 { margin: 0; font-size: 20px; }
.cnp-signin__sub { margin: -10px 0 4px; font-size: 13px; color: var(--canopy-color-text-muted, #5c6b64); }
.cnp-signin__card label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; }

.cnp-signin__card input {
  padding: 9px 10px;
  font: inherit;
  font-size: 14px;
  border: 1px solid var(--canopy-color-border, #dfe4e0);
  border-radius: 6px;
}

.cnp-signin__card button {
  padding: 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--canopy-color-primary-contrast, #fff);
  background: var(--canopy-color-primary, #1f6f43);
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.cnp-signin__error {
  margin: 0;
  padding: 8px 10px;
  font-size: 13px;
  color: #8a2c28;
  background: #fdeceb;
  border-radius: 6px;
}

.cnp-signin__foot { margin: 0; font-size: 12px; text-align: center; }
.cnp-signin__foot a { color: var(--canopy-color-primary, #1f6f43); }

/* ---------- tables ---------- */

/* The wrapper is what keeps a wide table from forcing the whole page sideways on a phone. */
.cnp-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cnp-table { border-collapse: collapse; }
.cnp-table__caption { text-align: left; padding-bottom: 8px; font-weight: 600; }

/* ---------- accordion ---------- */

.cnp-accordion details { overflow: hidden; }

.cnp-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

/* Safari draws its own triangle through the shadow DOM; ours is the span. */
.cnp-accordion summary::-webkit-details-marker { display: none; }

.cnp-accordion__marker {
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 150ms ease;
}

.cnp-accordion details[open] .cnp-accordion__marker {
  transform: rotate(225deg) translate(-2px, -2px);
}

.cnp-accordion__body > *:first-child { margin-top: 0; }
.cnp-accordion__body > *:last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  .cnp-accordion__marker { transition: none; }
}

/* ---------- tabs ---------- */

.cnp-tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

/*
 * The radio holds the selection. It stays focusable — hidden with opacity rather than
 * display:none — so the group keeps its native arrow-key navigation and single tab stop.
 */
.cnp-tabs__radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.cnp-tabs__tab {
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  user-select: none;
}

.cnp-tabs__tab:hover { opacity: 0.75; }

/* The focus ring belongs on the label, since the radio itself is invisible. */
.cnp-tabs__radio:focus-visible + .cnp-tabs__tab {
  outline: 2px solid currentColor;
  outline-offset: -2px;
}

/*
 * Panels are revealed by a per-instance :has() rule from the renderer.
 *
 * Hiding them is gated behind support for :has() so that a browser without it shows every
 * panel stacked instead of showing none. Degraded, but every word is still on the page — which
 * is the right way round for a failure nobody will be watching for.
 */
.cnp-tabs__panel { display: block; }

@supports selector(:has(*)) {
  .cnp-tabs__panel { display: none; }
}

.cnp-tabs__panel > *:first-child { margin-top: 0; }
.cnp-tabs__panel > *:last-child { margin-bottom: 0; }

/* ---------- hero ---------- */

.cnp-hero__inner { z-index: 1; }

.cnp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.cnp-hero__btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.cnp-hero__btn:hover { opacity: 0.9; }

/* ---------- blog ---------- */

.cnp-blog.is-empty { color: #6b7280; }

.cnp-blog__card { min-width: 0; }

.cnp-blog__title a { color: inherit; text-decoration: none; }
.cnp-blog__title a:hover { text-decoration: underline; }

.cnp-blog__meta,
.cnp-post__meta { font-size: 0.85em; margin: 8px 0 0; }

.cnp-blog__excerpt { margin: 10px 0 0; }

.cnp-blog__more { display: inline-block; margin-top: 12px; font-weight: 600; }

.cnp-post__body > *:first-child { margin-top: 0; }

.cnp-post__body img { max-width: 100%; height: auto; }

/* ---------- sliders: carousel and testimonials ---------- */

.cnp-slider { position: relative; overflow: hidden; }

/*
 * The track is a scroll-snap strip. That is deliberate: with the script blocked or still
 * loading it is a swipeable, scrollable row of slides rather than a single frozen frame, so no
 * content is ever unreachable. The script adds arrows, dots and autoplay on top.
 */
.cnp-slider__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.cnp-slider__track::-webkit-scrollbar { display: none; }

.cnp-slider__slide {
  flex: 0 0 100%;
  min-width: 100%;
  scroll-snap-align: start;
  margin: 0;
}

.cnp-slider__caption {
  padding: 8px 12px;
  font-size: 0.9em;
  text-align: center;
}

.cnp-slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-size: 26px;
  line-height: 1;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  cursor: pointer;
}

.cnp-slider__btn:hover { background: rgba(0, 0, 0, 0.55); }
.cnp-slider__btn--prev { left: 10px; }
.cnp-slider__btn--next { right: 10px; }

.cnp-slider__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.cnp-slider__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.4;
  cursor: pointer;
}

.cnp-slider__dot.is-active { opacity: 1; }

.cnp-quote {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.cnp-quote__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 14px;
}

.cnp-quote__text { margin: 0; }
.cnp-quote__by { margin-top: 14px; font-size: 0.85em; }

/* ---------- image marquee ---------- */

.cnp-marquee { overflow: hidden; }

.cnp-marquee--faded {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.cnp-marquee__strip {
  display: flex;
  width: max-content;
  animation-name: cnp-marquee-scroll;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/*
 * Each group is one full copy of the images; two of them make the loop seamless.
 *
 * The spacing is a trailing margin on every item rather than a gap on the strip. With a gap the
 * two groups are separated by one gap while the strip is 2G + gap wide, so translating by -50%
 * lands half a gap out and the loop visibly jumps. Giving each item its own trailing margin
 * makes each group exactly G wide, so -50% is precisely one group and the seam is invisible.
 */
.cnp-marquee__group {
  display: flex;
  align-items: center;
  flex: none;
}

.cnp-marquee__group img { display: block; object-fit: contain; }

.cnp-marquee--pausable:hover .cnp-marquee__strip { animation-play-state: paused; }

.cnp-marquee--grey img {
  filter: grayscale(1);
  opacity: 0.7;
  transition: filter 200ms ease, opacity 200ms ease;
}

.cnp-marquee--grey img:hover { filter: none; opacity: 1; }

@keyframes cnp-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/*
 * Continuous motion is exactly what a reduced-motion request is about, so the strip simply
 * stops and becomes a scrollable row.
 */
@media (prefers-reduced-motion: reduce) {
  .cnp-marquee__strip { animation: none; }
  .cnp-marquee { overflow-x: auto; }
  .cnp-slider__track { scroll-behavior: auto; }
}

/* ---------- map ---------- */

.cnp-map.is-empty { min-height: 4px; }

.cnp-map__link { display: inline-block; margin-top: 8px; font-size: 0.9em; }

/* ---------- video ---------- */

.cnp-video__frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
}

.cnp-video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* No usable URL yet. Keeps the component's footprint in the builder without putting an error
   message on the live page. */
.cnp-video.is-empty { min-height: 4px; }

/* ---------- social bar ---------- */

.cnp-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.cnp-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: opacity 120ms ease, color 120ms ease, background-color 120ms ease;
}

.cnp-social__link:hover { opacity: 0.82; }

/* The icon inherits the link's colour so one rule can recolour a whole bar, and so the brand
   colour set per link in the markup lands on the glyph. */
.cnp-social__link svg { display: block; fill: currentColor; }

/* ---------- navigation ---------- */

.cnp-nav__list,
.cnp-nav__menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cnp-nav__list { display: flex; flex-wrap: wrap; align-items: center; }

.cnp-nav--vertical .cnp-nav__list { flex-direction: column; align-items: stretch; }

.cnp-nav__item { position: relative; }

.cnp-nav__link {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: color 120ms ease, background-color 120ms ease;
}

.cnp-nav__caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  flex: none;
}

/*
 * Dropdowns are CSS-only.
 *
 * :focus-within is what makes them reachable from the keyboard — an item with no link of its
 * own is rendered with tabindex so it can receive that focus. There is no JavaScript involved,
 * so a menu keeps working on a page whose scripts failed, which is more than can be said for
 * most nav bars.
 */
.cnp-nav__menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 50;
  display: none;
  padding: 6px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}

.cnp-nav__item:hover > .cnp-nav__menu,
.cnp-nav__item:focus-within > .cnp-nav__menu { display: block; }

/* Third level opens to the side rather than stacking on top of its parent. */
.cnp-nav__menu .cnp-nav__menu { top: 0; left: 100%; }

.cnp-nav__menu .cnp-nav__link { white-space: normal; }

/* A submenu's caret points the way that submenu will open. */
.cnp-nav__menu .cnp-nav__caret {
  margin-left: auto;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid currentColor;
  border-right: 0;
}

/*
 * The hamburger.
 *
 * Above the mobile breakpoint neither the checkbox nor the label exists as far as the layout is
 * concerned, and the menu is the ordinary horizontal bar.
 */
.cnp-nav__toggle,
.cnp-nav__burger { display: none; }

/*
 * On a phone there is no hover and no room for a flyout. The bar collapses behind a hamburger,
 * and opening it gives a stacked list with the submenus already open and indented — a phone has
 * no way to hover a parent to reveal its children, so they are simply shown. Nothing is
 * unreachable at any width.
 */
@container canopy (max-width: 640px) {
  .cnp-nav { position: relative; }

  /*
   * Off-screen rather than display:none, so it keeps its place in the tab order: the menu can
   * be opened with the keyboard and is announced as a checkbox named "Menu".
   */
  .cnp-nav__toggle {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
  }

  .cnp-nav__burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;   /* 44px is the smallest comfortable touch target. */
    height: 44px;
    padding: 10px;
    box-sizing: border-box;
    cursor: pointer;
    color: inherit;
  }

  .cnp-nav__burger > span {
    display: block;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  /* Open: the bars become a cross, so the control says what it will do next. */
  .cnp-nav__toggle:checked ~ .cnp-nav__burger > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .cnp-nav__toggle:checked ~ .cnp-nav__burger > span:nth-child(2) { opacity: 0; }
  .cnp-nav__toggle:checked ~ .cnp-nav__burger > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Focusing the hidden checkbox has to show on the thing the user can actually see. */
  .cnp-nav__toggle:focus-visible ~ .cnp-nav__burger {
    outline: 2px solid var(--canopy-color-primary, #1f6f43);
    outline-offset: 2px;
  }

  .cnp-nav__list {
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  .cnp-nav__toggle:checked ~ .cnp-nav__list { display: flex; }

  /* A tapped link needs to be a comfortable size, not a 13px word. */
  .cnp-nav__link {
    padding-top: 12px;
    padding-bottom: 12px;
    white-space: normal;
  }

  .cnp-nav__menu {
    position: static;
    display: block;
    box-shadow: none;
    padding: 0 0 0 16px;
    min-width: 0;
    background: transparent !important;
  }

  .cnp-nav__menu .cnp-nav__caret { display: none; }
}

/* ---------- forms ---------- */

.cnp-field {
  display: block;
  border: none;
  margin: 0 0 16px;
  padding: 0;
  min-width: 0; /* A fieldset defaults to min-content, which breaks it inside a grid column. */
}

.cnp-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  padding: 0;
}

.cnp-required { color: #b3261e; margin-left: 3px; }

.cnp-input {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 15px;
  box-sizing: border-box;
}

.cnp-input:focus-visible {
  outline: 2px solid var(--canopy-color-primary, #1f6f43);
  outline-offset: 1px;
}

.cnp-help {
  display: block;
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--canopy-color-text-muted, #5c6b64);
}

.cnp-choices { display: flex; flex-direction: column; gap: 7px; }
.cnp-choices--inline { flex-direction: row; flex-wrap: wrap; gap: 16px; }

.cnp-choice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 15px;
  line-height: 1.45;
  cursor: pointer;
}

.cnp-choice input { margin-top: 3px; flex: none; }

.cnp-form__actions { margin-top: 4px; }
.cnp-form__submit:hover { filter: brightness(0.94); }
.cnp-form__submit[disabled] { opacity: 0.6; cursor: progress; }

.cnp-form__message {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14.5px;
}

.cnp-form__message--ok { background: #e8f3ec; color: #14532d; }
.cnp-form__message--error { background: #fdeceb; color: #8a2c28; }
.cnp-form__message ul { margin: 6px 0 0; padding-left: 18px; }

/* Builder-only note on the form component; never emitted on a published page. */
.cnp-form__note {
  margin: 8px 0 0;
  font-size: 12px;
  font-style: italic;
  color: var(--canopy-color-text-muted, #5c6b64);
}

/*
 * The honeypot. Kept in the DOM and in the accessibility tree's "hidden" state rather than
 * display:none, because some bots skip anything display:none. No sighted or screen-reader user
 * encounters it; a script that fills every input does.
 */
.cnp-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cnp-captcha {
  margin: 4px 0 14px;
  min-height: 24px;
  font-size: 13px;
  color: var(--canopy-color-text-muted, #5c6b64);
}

.cnp-captcha__state { display: inline-flex; align-items: center; gap: 7px; }

.cnp-captcha__state::before {
  content: '';
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: cnp-spin 0.8s linear infinite;
}

.cnp-captcha.is-ready .cnp-captcha__state::before {
  animation: none;
  border: none;
  content: '\2713';
  width: auto;
  height: auto;
  color: var(--canopy-color-primary, #1f6f43);
  font-weight: 700;
}

.cnp-captcha.is-failed .cnp-captcha__state::before { animation: none; border: none; content: '\26A0'; }

@keyframes cnp-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .cnp-captcha__state::before { animation: none; }
}

/* Screen-reader-only utility, used by generated navigation. */
.cnp-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Small screens
   ==========================================================================

   A site built here has to work on a phone whoever built it, so these are a floor rather than
   an opt-in: an admin who never opens the device preview still gets a page that reads on a
   360px screen.

   @container throughout, never @media. #cnp-main is the named query container: on a published
   page it spans the viewport so the two are identical, but the builder narrows it to a device
   width, and a media query would keep reading the desktop window behind the preview — a phone
   preview would show the desktop layout merely squashed. The platform bar, which is chrome
   outside the page container, correctly stays on @media.
*/

@container canopy (max-width: 640px) {
  /*
   * Anything laid out in fixed columns becomes one column. Two 300px cards side by side on a
   * 360px screen are two 170px cards, which is not a smaller version of the design — it is a
   * different and much worse one. The blog index emits its own stacking rule per instance; this
   * is the floor for anything that does not.
   */
  .cnp-blog { grid-template-columns: 1fr !important; }

  /* The marquee scrolls horizontally by design, so it is left alone — but it must not drag the
     page width with it. */
  .cnp-marquee { max-width: 100%; overflow: hidden; }

  .cnp-hero { min-height: 0; }
  .cnp-hero__inner { width: 100%; }

  /*
   * Touch targets. 44px is the smallest comfortable one; buttons were landing at 41px, which is
   * a miss often enough to be annoying. Width is left alone deliberately: forcing every button
   * to full width is a house style, not a correctness fix, and it is not this stylesheet's
   * decision to make on a customer's design.
   */
  .cnp-button,
  .cnp-hero__btn,
  .cnp-form__submit {
    min-height: 44px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .cnp-slider__btn { min-width: 44px; min-height: 44px; }
  .cnp-social__link { min-width: 40px; min-height: 40px; }

  /* A wide table scrolls inside its own box rather than widening the page. */
  .cnp-table-wrap { overflow-x: auto; }

  /* Tab strips wrap rather than overflowing, and each tab is tappable. */
  .cnp-tabs__tab {
    flex: 1 1 auto;
    text-align: center;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  /*
   * Form controls at 16px or larger. iOS zooms the page in when a field with smaller text is
   * focused and never zooms back out, which strands the visitor mid-form. Every control the
   * form components render carries .cnp-input, including the select and the textarea.
   */
  .cnp-input { font-size: 16px; }
}
