/* JUYMO CSS
 * Clean frontend stylesheet.
 * Architecture: tokens, base, layout, typography, navigation, buttons, heroes,
 * cards, grids, lists, carousel, footer, legal content and responsive rules.
 */

/* ==========================================================================
   01. Tokens
   ========================================================================== */

:root {
  --juymo-black: #000000;
  --juymo-white: #ffffff;
  --juymo-red: #d71920;
  --juymo-gray-f2: #f2f2f2;
  --juymo-dark-gray: #2b2b2b;

  --juymo-font-base: Montserrat, Verdana, sans-serif;
  --juymo-font-quote: Georgia, "Times New Roman", Times, serif;

  --juymo-font-regular: 400;
  --juymo-font-medium: 500;
  --juymo-font-bold: 700;

  --juymo-text-xs: 0.78rem;
  --juymo-text-sm: 0.875rem;
  --juymo-text-base: 1rem;
  --juymo-text-card: 0.95rem;
  --juymo-text-lead: clamp(1.05rem, 1.2vw, 1.2rem);

  --juymo-h1-size: 50px;
  --juymo-h2-size: 28px;
  --juymo-h3-size: 24px;
  --juymo-h4-size: 22px;
  --juymo-h5-size: 20px;
  --juymo-h6-size: 18px;

  --juymo-line-body: 1.6;
  --juymo-line-heading: 1.28;
  --juymo-line-card: 1.5;
  --juymo-line-lead: 1.55;

  --juymo-tracking-eyebrow: 0.12em;

  --juymo-module-inner-width: 70vw;
  --juymo-mobile-inner-width: calc(100vw - 40px);
  --wp--style--global--content-size: var(--juymo-module-inner-width);
  --wp--style--global--wide-size: var(--juymo-module-inner-width);

  --juymo-module-padding-y: clamp(32px, 7vw, 50px);
  --juymo-content-flow-gap: clamp(16px, 1.8vw, 24px);
  --juymo-module-inner-gap: clamp(28px, 3vw, 44px);

  --juymo-card-padding: clamp(1.25rem, 2.4vw, 2rem);
  --juymo-card-image-padding: clamp(1rem, 2vw, 1.5rem);

  --juymo-button-radius: 8px;
  --juymo-button-padding-y: 0.82rem;
  --juymo-button-padding-x: 1.35rem;
}

/* ==========================================================================
   02. Base
   ========================================================================== */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body,
body button,
body input,
body textarea,
body select {
  font-family: var(--juymo-font-base);
  font-size: var(--juymo-text-base);
  font-weight: var(--juymo-font-regular);
  line-height: var(--juymo-line-body);
  letter-spacing: 0;
}

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

img,
picture,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   03. Page And Module Layout
   ========================================================================== */

body .wp-site-blocks,
body main,
body main .entry-content,
body main .wp-block-post-content {
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
  padding-right: 0;
  padding-left: 0;
}

body main :where(
  .juymo-module,
  .juymo-section,
  .juymo-page-section,
  .juymo-home-hero,
  .juymo-page-hero,
  .juymo-secondary-hero,
  .juymo-hero,
  .wp-block-group.alignfull,
  .wp-block-cover.alignfull
) {
  width: 100vw;
  max-width: 100vw;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  padding-top: var(--juymo-module-padding-y);
  padding-bottom: var(--juymo-module-padding-y);
}

body main :where(
  .juymo-module,
  .juymo-section,
  .juymo-page-section,
  .juymo-home-hero,
  .juymo-page-hero,
  .juymo-secondary-hero,
  .juymo-hero
) > :where(
  .alignwide,
  .wp-block-group,
  .wp-block-columns,
  .wp-block-media-text,
  .wp-block-cover__inner-container
) {
  width: var(--juymo-module-inner-width);
  max-width: var(--juymo-module-inner-width);
  margin-right: auto;
  margin-left: auto;
}

body main :where(
  .juymo-home-hero,
  .juymo-page-hero,
  .juymo-secondary-hero,
  .juymo-hero
) {
  margin-bottom: 0;
  padding-bottom: var(--juymo-module-padding-y);
  color: var(--juymo-white);
}

body main :where(
  .juymo-home-hero,
  .juymo-page-hero,
  .juymo-secondary-hero,
  .juymo-hero
) + :where(
  .juymo-module,
  .juymo-section,
  .juymo-page-section,
  .wp-block-group,
  .wp-block-cover
) {
  margin-top: 0;
  padding-top: var(--juymo-module-padding-y);
}

/* ==========================================================================
   04. Typography
   ========================================================================== */

body main h1,
body main h2,
body main h3,
body main h4,
body main h5,
body main h6 {
  margin-top: 0;
  margin-bottom: 0.75em;
  font-family: var(--juymo-font-base);
  font-weight: var(--juymo-font-regular);
  line-height: var(--juymo-line-heading);
  letter-spacing: 0;
}

body main h1 {
  font-size: var(--juymo-h1-size);
  font-weight: var(--juymo-font-medium);
}

body main h2 {
  font-size: var(--juymo-h2-size);
  font-weight: var(--juymo-font-bold);
}

body main h3 {
  font-size: var(--juymo-h3-size);
  font-weight: var(--juymo-font-regular);
}

body main h4 {
  font-size: var(--juymo-h4-size);
}

body main h5 {
  font-size: var(--juymo-h5-size);
}

body main h6 {
  font-size: var(--juymo-h6-size);
}

body main p,
body main li {
  font-size: var(--juymo-text-base);
  line-height: var(--juymo-line-body);
}

body main :where(.juymo-home-hero, .juymo-page-hero, .juymo-secondary-hero, .juymo-hero) :where(p, li) {
  font-size: var(--juymo-text-lead);
  line-height: var(--juymo-line-lead);
}

body main :where(.juymo-eyebrow, .juymo-case-label) {
  font-size: var(--juymo-text-xs);
  font-weight: var(--juymo-font-bold);
  line-height: 1.3;
  letter-spacing: var(--juymo-tracking-eyebrow);
  text-transform: uppercase;
}

/* ==========================================================================
   05. Navigation
   ========================================================================== */

body header .wp-block-navigation .wp-block-navigation-item__content,
body .juymo-site-header .wp-block-navigation .wp-block-navigation-item__content,
body header .juymo-primary-navigation .wp-block-navigation-item__content,
body .juymo-site-header .juymo-primary-navigation .wp-block-navigation-item__content {
  color: var(--juymo-black);
  font-weight: var(--juymo-font-regular);
  text-decoration-line: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.32em;
}

body header .wp-block-navigation .wp-block-navigation-item__content:hover,
body header .wp-block-navigation .wp-block-navigation-item__content:focus-visible,
body .juymo-site-header .wp-block-navigation .wp-block-navigation-item__content:hover,
body .juymo-site-header .wp-block-navigation .wp-block-navigation-item__content:focus-visible,
body header .wp-block-navigation .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content,
body header .wp-block-navigation .wp-block-navigation-item.current-menu-parent > .wp-block-navigation-item__content,
body header .wp-block-navigation .wp-block-navigation-item.current-menu-ancestor > .wp-block-navigation-item__content,
body header .wp-block-navigation .wp-block-navigation-item__content[aria-current="page"],
body header .wp-block-navigation .wp-block-navigation-item__content[aria-current="true"],
body .juymo-site-header .wp-block-navigation .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content,
body .juymo-site-header .wp-block-navigation .wp-block-navigation-item.current-menu-parent > .wp-block-navigation-item__content,
body .juymo-site-header .wp-block-navigation .wp-block-navigation-item.current-menu-ancestor > .wp-block-navigation-item__content,
body .juymo-site-header .wp-block-navigation .wp-block-navigation-item__content[aria-current="page"],
body .juymo-site-header .wp-block-navigation .wp-block-navigation-item__content[aria-current="true"] {
  color: var(--juymo-red);
  font-weight: var(--juymo-font-regular);
  text-decoration-line: underline;
  text-decoration-color: var(--juymo-red);
}

/* ==========================================================================
   06. Buttons And CTAs
   ========================================================================== */

body main .wp-block-buttons,
body footer .wp-block-buttons,
body .wp-block-template-part:has(footer) .wp-block-buttons {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  text-align: right;
  
}

body main .wp-block-button,
body footer .wp-block-button,
body .wp-block-template-part:has(footer) .wp-block-button {
  margin-right: 0;
  margin-left: auto;
}

body main a.wp-block-button__link.wp-element-button,
body footer a.wp-block-button__link.wp-element-button,
body .wp-block-template-part:has(footer) a.wp-block-button__link.wp-element-button,
body main .juymo-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--juymo-button-radius);
  padding: var(--juymo-button-padding-y) var(--juymo-button-padding-x);
  font-family: var(--juymo-font-base);
  font-size: var(--juymo-text-xs);
  font-weight: var(--juymo-font-bold);
  line-height: 1.2;
  letter-spacing: var(--juymo-tracking-eyebrow);
  text-transform: uppercase;
  text-decoration: none;
}

/* ==========================================================================
   07. Cards
   ========================================================================== */

.juymo-card-block {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  padding: var(--juymo-card-padding);
  border-top: 1px solid var(--juymo-black);
  background: var(--juymo-gray-f2);
  color: var(--juymo-black);
}

.juymo-card-block.juymo-card--gray {
  border-top-color: var(--juymo-black);
  background: var(--juymo-gray-f2);
  color: var(--juymo-black);
}

.juymo-card-block.juymo-card--white {
  border-top-color: var(--juymo-black);
  background: inherit;
  color: var(--juymo-black);
}

.juymo-card-block.juymo-card--black {
  border-top-color: var(--juymo-red);
  background: var(--juymo-black);
  color: var(--juymo-white);
}

.juymo-card-block.juymo-card--gray :where(.juymo-card-block__content, .juymo-card-block__eyebrow, .juymo-card-block__title, .juymo-card-block__text, .juymo-card-block__quote, .juymo-card-block__quote-signature, p, li, span, strong, em, cite, blockquote, a:not(.wp-block-button__link)),
.juymo-card-block.juymo-card--white :where(.juymo-card-block__content, .juymo-card-block__eyebrow, .juymo-card-block__title, .juymo-card-block__text, .juymo-card-block__quote, .juymo-card-block__quote-signature, p, li, span, strong, em, cite, blockquote, a:not(.wp-block-button__link)) {
  color: var(--juymo-black);
}

.juymo-card-block.juymo-card--black :where(.juymo-card-block__content, .juymo-card-block__eyebrow, .juymo-card-block__title, .juymo-card-block__text, .juymo-card-block__quote, .juymo-card-block__quote-signature, p, li, span, strong, em, cite, blockquote, a:not(.wp-block-button__link)) {
  color: var(--juymo-white);
}

.juymo-card-block .juymo-card-block__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.9rem;
  min-width: 0;
}

.juymo-card-block .juymo-card-block__content > :first-child,
.juymo-card-block .juymo-card-block__text > :first-child {
  margin-top: 0;
}

.juymo-card-block .juymo-card-block__content > :last-child,
.juymo-card-block .juymo-card-block__text > :last-child {
  margin-bottom: 0;
}

.juymo-card-block .juymo-card-block__eyebrow,
.juymo-card-block .juymo-card-block__title,
.juymo-card-block .juymo-card-block__text {
  margin: 0;
}

.juymo-card-block .juymo-card-block__image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: var(--juymo-card-image-margin, 0 0 1rem);
  padding: var(--juymo-card-image-padding);
background: inherit;
}

.juymo-card-block .juymo-card-block__image img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 180px;
  margin: 0 auto;
  object-fit: contain;
}

.juymo-card-block .juymo-card-block__quote {
  margin: 0;
  padding: 1rem 0;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  color: inherit;
  font-family: var(--juymo-font-quote);
  font-size: var(--juymo-text-base);
  font-style: italic;
  line-height: var(--juymo-line-body);
}

.juymo-card-block .juymo-card-block__quote p {
  margin: 0;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-style: inherit;
  line-height: inherit;
}

.juymo-card-block .juymo-card-block__quote-signature,
.juymo-card-block .juymo-card-block__quote-signature a {
  margin: 0;
  color: inherit;
  font-family: var(--juymo-font-base);
  font-size: var(--juymo-text-xs);
  font-style: normal;
  font-weight: var(--juymo-font-bold);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: var(--juymo-tracking-eyebrow);
}

.juymo-card-block .juymo-card-block__quote-signature a {
  text-decoration: none;
}

.juymo-card-block .juymo-card-block__quote-signature a:hover,
.juymo-card-block .juymo-card-block__quote-signature a:focus-visible {
  color: var(--juymo-red);
}

.juymo-card-block .juymo-card-block__cta {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin-top: auto;
}

.juymo-card-block .juymo-card-block__cta .wp-block-button {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.juymo-card-block .juymo-card-block__cta .wp-block-button__link {
  border-radius: var(--juymo-button-radius);
  font-family: var(--juymo-font-base);
  font-size: var(--juymo-text-xs);
  font-weight: var(--juymo-font-bold);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: var(--juymo-tracking-eyebrow);
}

/* ==========================================================================
   08. Card Grid
   ========================================================================== */

body main .wp-block-juymo-card-grid.juymo-card-grid-block,
body main .juymo-card-grid {
  display: grid;
  width: 100%;
  gap: var(--juymo-module-inner-gap);
  align-items: stretch;
}

body main .wp-block-juymo-card-grid.juymo-card-grid-block > .juymo-card-block,
body main .juymo-card-grid > .juymo-card-block {
  min-width: 0;
  height: 100%;
}

/* ==========================================================================
   09. Links And Lists
   ========================================================================== */

body main :where(.juymo-module__inner, .entry-content, .wp-block-post-content) a:not(.wp-block-button__link):not(.custom-logo-link) {
  color: var(--juymo-black);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

body main :where(.juymo-home-hero, .juymo-page-hero, .juymo-secondary-hero, .juymo-hero) a:not(.wp-block-button__link) {
  color: var(--juymo-white);
}

body main :where(ul, ol):not(.wp-block-navigation__container):not(.juymo-hero-points):not(.juymo-footer-nav):not(.juymo-social-links) > li:has(a) {
  position: relative;
  padding-left: 1.35em;
  list-style: none;
}

body main :where(ul, ol):not(.wp-block-navigation__container):not(.juymo-hero-points):not(.juymo-footer-nav):not(.juymo-social-links) > li:has(a)::marker {
  content: "";
}

body main :where(ul, ol):not(.wp-block-navigation__container):not(.juymo-hero-points):not(.juymo-footer-nav):not(.juymo-social-links) > li:has(a)::before {
  position: absolute;
  top: 0.02em;
  left: 0;
  color: currentColor;
  content: "\2197";
}

body main :where(ul, ol):not(.wp-block-navigation__container):not(.juymo-hero-points):not(.juymo-footer-nav):not(.juymo-social-links) > li:has(a) a {
  color: var(--juymo-black);
  font-weight: var(--juymo-font-bold);
  text-decoration: none;
}

body main :where(ul, ol):not(.wp-block-navigation__container):not(.juymo-hero-points):not(.juymo-footer-nav):not(.juymo-social-links) > li:has(a):hover::before,
body main :where(ul, ol):not(.wp-block-navigation__container):not(.juymo-hero-points):not(.juymo-footer-nav):not(.juymo-social-links) > li:has(a) a:hover,
body main :where(ul, ol):not(.wp-block-navigation__container):not(.juymo-hero-points):not(.juymo-footer-nav):not(.juymo-social-links) > li:has(a) a:focus-visible {
  color: var(--juymo-red);
}

/* ==========================================================================
   10. Home Expertise Carousel
   ========================================================================== */

body.home .juymo-expertise-carousel {
  width: 100vw;
  max-width: 100vw;
  margin: clamp(1rem, 2.4vw, 2rem) calc(50% - 50vw) 0;
  overflow: hidden;
}

body.home .juymo-expertise-carousel__inner {
  width: var(--juymo-module-inner-width);
  max-width: var(--juymo-module-inner-width);
  margin-right: auto;
  margin-left: auto;
}

body.home .juymo-expertise-carousel__title {
  margin: 0 0 clamp(1.25rem, 2.4vw, 2rem);
  font-size: var(--juymo-text-xs);
  font-weight: var(--juymo-font-bold);
  line-height: 1.3;
  letter-spacing: var(--juymo-tracking-eyebrow);
  text-transform: uppercase;
}

body.home .juymo-expertise-carousel__viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
}

body.home .juymo-expertise-carousel__track {
  display: flex;
  width: max-content;
  animation: juymoExpertiseCarousel 34s linear infinite;
}

body.home .juymo-expertise-carousel:hover .juymo-expertise-carousel__track {
  animation-play-state: paused;
}

body.home .juymo-expertise-carousel__group {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  padding-right: clamp(2rem, 4vw, 4rem);
}

body.home .juymo-expertise-carousel__item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

body.home .juymo-expertise-carousel__item img {
  display: block;
  width: auto;
  max-width: 160px;
  max-height: 74px;
  object-fit: contain;
}

@keyframes juymoExpertiseCarousel {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* ==========================================================================
   11. Footer
   ========================================================================== */

body footer,
body .wp-site-blocks > footer,
body .wp-block-template-part:has(footer) {
  width: 100vw;
  max-width: 100vw;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  padding: 0;
  color: var(--juymo-white);
  background: var(--juymo-black);
}

body footer .juymo-site-footer,
body .wp-block-template-part:has(footer) .juymo-site-footer {
  width: 100%;
  max-width: none;
}

body footer .juymo-site-footer__inner,
body .wp-block-template-part:has(footer) .juymo-site-footer__inner {
  width: var(--juymo-module-inner-width);
  max-width: var(--juymo-module-inner-width);
  margin-right: auto;
  margin-left: auto;
}

body footer :where(h1, h2, h3, h4, h5, h6, p, li, a, span, strong, em),
body .wp-block-template-part:has(footer) :where(h1, h2, h3, h4, h5, h6, p, li, a, span, strong, em) {
  color: var(--juymo-white);
}

body footer :where(p, li, a) {
  font-size: var(--juymo-text-sm);
  line-height: var(--juymo-line-body);
}
body footer .juymo-footer-navigation .wp-block-navigation__container {
  gap: 14px !important;
}

/* ==========================================================================
   12. Legal Content
   ========================================================================== */

body main .juymo-legal-small,
body main .juymo-legal-small :where(p, li) {
  font-size: 0.88rem;
  line-height: 1.72;
}

body main .juymo-legal-small h2 {
  margin-top: 2.2em;
}

body main .juymo-legal-small h3 {
  margin-top: 1.8em;
}

/* ==========================================================================
   13. Responsive
   ========================================================================== */


body main .wp-block-juymo-card-grid .juymo-card-grid-block__items {
  grid-template-columns: repeat(var(--juymo-card-grid-columns, 3), minmax(0, 1fr));
}
@media (max-width: 782px) {
  :root {
    --juymo-module-inner-width: var(--juymo-mobile-inner-width);
    --wp--style--global--content-size: var(--juymo-mobile-inner-width);
    --wp--style--global--wide-size: var(--juymo-mobile-inner-width);
    --juymo-module-padding-y: clamp(48px, 10vw, 64px);
    --juymo-module-inner-gap: 28px;
    --juymo-content-flow-gap: 18px;
    --juymo-text-lead: clamp(1.05rem, 4vw, 1.25rem);

    --juymo-h1-size: 34px;
    --juymo-h2-size: 24px;
    --juymo-h3-size: 22px;
    --juymo-h4-size: 20px;
    --juymo-h5-size: 18px;
    --juymo-h6-size: 16px;
  }

  html,
  body {
    overflow-x: hidden;
  }

  body main,
  body main .entry-content,
  body main .wp-block-post-content,
  body main .alignwide,
  body main .alignfull,
  body main .wp-block-group,
  body main .wp-block-columns,
  body main .wp-block-column {
    max-width: 100%;
    min-width: 0;
  }

  body main img,
  body main picture,
  body main figure,
  body main .wp-block-image,
  body main .wp-block-media-text__media,
  body main .juymo-card-block__image,
  body main [class*="image"] {
    display: none;
  }

  body main .juymo-home-hero,
  body main .juymo-page-hero,
  body main .juymo-secondary-hero,
  body main .juymo-hero {
    overflow: hidden;
    background: var(--juymo-black);
    background-color: var(--juymo-black);
background-image: none;
  }

  body main .juymo-home-hero::before,
  body main .juymo-home-hero::after,
  body main .juymo-page-hero::before,
  body main .juymo-page-hero::after,
  body main .juymo-secondary-hero::before,
  body main .juymo-secondary-hero::after,
  body main .juymo-hero::before,
  body main .juymo-hero::after {
    display: none;
    background: none;
    background-image: none;
  }

  body main .juymo-home-hero > *,
  body main .juymo-page-hero > *,
  body main .juymo-secondary-hero > *,
  body main .juymo-hero > * {
    background: transparent;
    background-image: none;
  }

  body main .wp-block-columns {
    flex-direction: column;
  }

  body main .wp-block-column {
    flex-basis: 100%;
    width: 100%;
  }

  body main .wp-block-juymo-card-grid.juymo-card-grid-block,
  body main .juymo-card-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    width: 100%;
    max-width: 100%;
  }

  body main .wp-block-juymo-card-grid.juymo-card-grid-block > *,
  body main .juymo-card-grid > * {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  body.home .juymo-expertise-carousel__inner {
    width: var(--juymo-mobile-inner-width);
    max-width: var(--juymo-mobile-inner-width);
  }

  body.home .juymo-expertise-carousel__track {
    animation: none;
  }

  body.home .juymo-expertise-carousel__group {
    flex-wrap: wrap;
  }

  body.home .juymo-expertise-carousel__group[aria-hidden="true"] {
    display: none;
  }

  body.home main .juymo-home-hero__content,
  body.home main .juymo-home-hero__content > * {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: normal;
  }

  body main .wp-block-juymo-card-grid .juymo-card-grid-block__items {
    grid-template-columns: 1fr;
  }
}

/* JUYMO mobile hero: hide desktop background image */
@media screen and (max-width: 782px) {
  html body main [class*="juymo-"][class*="hero"] {
    background: #000 !important;
    background-image: none !important;
    background-color: #000 !important;
  }
}
/* BEGIN JUYMO RESPONSIVE FINAL V2 */
:root {
  --juymo-shell-width: min(1200px, calc(100vw - 40px));
}

body .juymo-site-header__inner,
body footer .juymo-site-footer__inner,
body .wp-block-template-part:has(footer) .juymo-site-footer__inner {
  box-sizing: border-box;
  width: var(--juymo-shell-width) !important;
  max-width: 1200px !important;
  margin-inline: auto !important;
}

body main a.wp-block-button__link.wp-element-button {
  background-color: var(--juymo-red, #d71920) !important;
  border-color: var(--juymo-red, #d71920) !important;
  color: #fff !important;
}

body main .wp-block-button.is-style-outline a.wp-block-button__link.wp-element-button {
  background-color: transparent !important;
  border: 1px solid #000 !important;
  color: #000 !important;
}

body main :is(.juymo-home-hero, .juymo-page-hero, .juymo-secondary-hero, .juymo-hero, .juymo-card--black, .has-black-background-color)
  .wp-block-button.is-style-outline a.wp-block-button__link.wp-element-button {
  background-color: transparent !important;
  border-color: #fff !important;
  color: #fff !important;
}

body main .juymo-card-grid-block,
body main .juymo-card-grid-block__items,
body main .wp-block-juymo-card-grid,
body main .wp-block-juymo-card {
  box-sizing: border-box;
  min-width: 0 !important;
  max-width: 100% !important;
}

@media (max-width: 900px) {
  body main .juymo-card-grid-block__items {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 782px) {
  body img,
  body picture,
  body figure,
  body .wp-block-image,
  body .wp-block-media-text__media,
  body [class*="image"],
  body [class*="Image"] {
    display: revert !important;
    visibility: visible !important;
  }

  body main :is(.wp-block-group.juymo-home-hero, .wp-block-group.juymo-page-hero, .wp-block-group.juymo-secondary-hero, .wp-block-group.juymo-hero, .wp-block-cover[class*="hero"]) {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
    background: #000 !important;
    background-image: none !important;
    background-color: #000 !important;
  }

  body main :is(.wp-block-group.juymo-home-hero, .wp-block-group.juymo-page-hero, .wp-block-group.juymo-secondary-hero, .wp-block-group.juymo-hero, .wp-block-cover[class*="hero"])
    :is(.wp-block-cover__image-background, .wp-block-cover__video-background) {
    display: none !important;
    visibility: hidden !important;
  }

  body main :is(.juymo-home-hero__content, .juymo-hero__inner) {
    background: transparent !important;
    background-image: none !important;
  }

  body main .juymo-module,
  body main .juymo-page-section,
  body main .juymo-section {
    max-width: 100% !important;
  }

  body main .juymo-card-grid-block__items {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body main :is(.wp-block-juymo-card, .juymo-card, [class*="card"]) {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-wrap: anywhere;
  }

  body .juymo-site-header__inner,
  body footer .juymo-site-footer__inner,
  body .wp-block-template-part:has(footer) .juymo-site-footer__inner {
    width: calc(100vw - 40px) !important;
    max-width: calc(100vw - 40px) !important;
  }
}
/* END JUYMO RESPONSIVE FINAL V2 */

/* BEGIN JUYMO RESPONSIVE FINAL V3
 * Narrow overrides based on the live mobile audit.
 * Does not alter Gutenberg block serialization.
 */

/* Header and footer share the same desktop shell. */
body .juymo-site-header__inner,
body footer .juymo-site-footer__inner {
  box-sizing: border-box !important;
  width: min(1200px, calc(100% - 40px)) !important;
  max-width: 1200px !important;
  margin-inline: auto !important;
}

/* The footer submenu must never be white text on a white panel. */
body footer .juymo-footer-navigation .wp-block-navigation__submenu-container {
  background: #000 !important;
  border: 1px solid rgba(255, 255, 255, .28) !important;
  box-shadow: none !important;
}
body footer .juymo-footer-navigation .wp-block-navigation__submenu-container a,
body footer .juymo-footer-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content,
body footer .juymo-footer-navigation .wp-block-navigation-submenu__toggle {
  color: #fff !important;
}
body footer .juymo-footer-navigation .wp-block-navigation-submenu__toggle svg,
body footer .juymo-footer-navigation .wp-block-navigation-submenu__toggle svg path {
  color: #fff !important;
  fill: none !important;
  stroke: #fff !important;
}

@media (max-width: 782px) {
  /* Use the content width, not 100vw: 100vw included the scrollbar and shifted modules. */
  body .juymo-site-header,
  body footer .juymo-site-footer,
  body main :is(.juymo-module, .juymo-page-section, .juymo-section),
  body main :is(.wp-block-group.juymo-home-hero, .wp-block-group.juymo-page-hero,
    .wp-block-group.juymo-secondary-hero, .wp-block-group.juymo-hero,
    .wp-block-group.juymo-hero-banner, .wp-block-group.juymo-herobanner) {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body main :is(.wp-block-group.juymo-home-hero, .wp-block-group.juymo-page-hero,
    .wp-block-group.juymo-secondary-hero, .wp-block-group.juymo-hero,
    .wp-block-group.juymo-hero-banner, .wp-block-group.juymo-herobanner),
  body footer .juymo-site-footer {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body .juymo-site-header__inner,
  body footer .juymo-site-footer__inner,
  body main :is(.juymo-home-hero__content, .juymo-page-hero__inner,
    .juymo-secondary-hero__inner, .juymo-hero__inner, .juymo-hero-banner__inner) {
    box-sizing: border-box !important;
    width: calc(100% - 40px) !important;
    max-width: calc(100% - 40px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Hero images remain available on desktop and are removed only on mobile. */
  body main :is(.wp-block-group.juymo-home-hero, .wp-block-group.juymo-page-hero,
    .wp-block-group.juymo-secondary-hero, .wp-block-group.juymo-hero,
    .wp-block-group.juymo-hero-banner, .wp-block-group.juymo-herobanner,
    .wp-block-cover.juymo-home-hero, .wp-block-cover.juymo-page-hero,
    .wp-block-cover.juymo-secondary-hero, .wp-block-cover.juymo-hero) {
    background: #000 !important;
    background-color: #000 !important;
    background-image: none !important;
  }
  body main :is(.wp-block-cover.juymo-home-hero, .wp-block-cover.juymo-page-hero,
    .wp-block-cover.juymo-secondary-hero, .wp-block-cover.juymo-hero)
    :is(.wp-block-cover__image-background, .wp-block-cover__video-background) {
    display: none !important;
  }

  /* This actions row was incorrectly caught by an old [class*=hero] selector. */
  html body main .wp-block-buttons.juymo-page-hero__actions {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
  }

  /* Every mobile button is centered and uses one predictable maximum width. */
  body main .wp-block-buttons,
  body main .wp-block-buttons.is-content-justification-left,
  body main .wp-block-buttons.is-content-justification-right,
  body main .wp-block-buttons.is-content-justification-space-between {
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  body main .wp-block-buttons > .wp-block-button {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: auto !important;
  }
  body main .wp-block-buttons > .wp-block-button > .wp-block-button__link {
    box-sizing: border-box !important;
    display: block !important;
    width: min(100%, 22rem) !important;
    max-width: 22rem !important;
    margin-inline: auto !important;
    text-align: center !important;
  }

  /* Stable contrast: filled buttons are red/white; outlines follow their section. */
  body main .wp-block-button:not(.is-style-outline) > .wp-block-button__link {
    background: #d71920 !important;
    border-color: #d71920 !important;
    color: #fff !important;
  }
  body main .wp-block-button.is-style-outline > .wp-block-button__link {
    background: transparent !important;
    border-color: #000 !important;
    color: #000 !important;
  }
  body main :is(.juymo-home-hero, .juymo-page-hero, .juymo-secondary-hero,
    .juymo-hero, .juymo-hero-banner, .juymo-herobanner,
    .juymo-card--black, .has-black-background-color)
    .wp-block-button.is-style-outline > .wp-block-button__link {
    background: transparent !important;
    border-color: #fff !important;
    color: #fff !important;
  }

  /* Cards and grids cannot retain a minimum width or create a second mobile column. */
  body main :is(.wp-block-columns, .wp-block-column, .juymo-card-grid-block,
    .juymo-card-grid-block__items, .wp-block-juymo-card-grid,
    .wp-block-juymo-card, .juymo-card) {
    box-sizing: border-box !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  body main .juymo-card-grid-block__items {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body main :is(.wp-block-juymo-card, .juymo-card) {
    overflow-wrap: anywhere;
  }

  /* Footer About Us expands in the document flow and remains readable. */
  body footer .juymo-footer-navigation .wp-block-navigation-submenu {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    flex-wrap: wrap !important;
  }
  body footer .juymo-footer-navigation .wp-block-navigation-submenu > .wp-block-navigation__submenu-container {
    position: static !important;
    inset: auto !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: .5rem 0 0 !important;
    padding: 0 0 0 1rem !important;
    background: transparent !important;
    border: 0 !important;
  }
  body footer .juymo-footer-navigation .wp-block-navigation-submenu > .wp-block-navigation-submenu__toggle[aria-expanded="false"] ~ .wp-block-navigation__submenu-container {
    display: none !important;
  }
  body footer .juymo-footer-navigation .wp-block-navigation-submenu > .wp-block-navigation-submenu__toggle[aria-expanded="true"] ~ .wp-block-navigation__submenu-container {
    display: flex !important;
    flex-direction: column !important;
  }
  body footer .juymo-footer-navigation .wp-block-navigation-submenu > .wp-block-navigation__submenu-container,
  body footer .juymo-footer-navigation .wp-block-navigation-submenu > .wp-block-navigation__submenu-container * {
    color: #fff !important;
  }
  body footer .juymo-footer-navigation .wp-block-navigation-submenu > .wp-block-navigation__submenu-container .wp-block-navigation-item,
  body footer .juymo-footer-navigation .wp-block-navigation-submenu > .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
  }
  body footer .juymo-footer-navigation .wp-block-navigation-submenu > .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    display: block !important;
    padding: .45rem 0 !important;
  }
}
/* END JUYMO RESPONSIVE FINAL V3 */

/* BEGIN JUYMO MOBILE FINAL V4
 * Fixes verified against the rendered mobile site.
 * Tables stay inside the viewport, the footer CTA is centered,
 * and card image wells inherit the visual variant of each card.
 */
@media (max-width: 782px) {
  /* Gutenberg tables: contain the block and wrap cell content. */
  html body main :is(.wp-block-table, figure.wp-block-table) {
    box-sizing: border-box !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow-x: hidden !important;
  }

  html body main :is(.wp-block-table, figure.wp-block-table) table,
  html body main table {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  html body main table :is(thead, tbody, tfoot, tr, th, td) {
    box-sizing: border-box !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  html body main table :is(th, td) {
    padding: clamp(.4rem, 2vw, .7rem) !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    hyphens: auto;
    vertical-align: top !important;
  }

  html body main table :is(img, picture, figure, video, iframe) {
    box-sizing: border-box !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
  }

  /* Footer CTA: its Gutenberg row was explicitly aligned to flex-end. */
  html body footer .juymo-site-footer__network,
  html body footer .juymo-site-footer__network > .wp-block-buttons {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  html body footer .juymo-site-footer__network > .wp-block-buttons {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  html body footer .wp-block-button.juymo-footer-network-access {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  html body footer .wp-block-button.juymo-footer-network-access > .wp-block-button__link {
    display: inline-flex !important;
    width: auto !important;
    max-width: min(100%, 22rem) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* Card image wells use exactly the background of their card variant. */
  html body main .juymo-card-block.juymo-card--gray > .juymo-card-block__image,
  html body main .juymo-card.juymo-card--gray .juymo-card-block__image {
    background: #f2f2f2 !important;
    background-color: #f2f2f2 !important;
  }

  html body main .juymo-card-block.juymo-card--white > .juymo-card-block__image,
  html body main .juymo-card.juymo-card--white .juymo-card-block__image {
    background: #fff !important;
    background-color: #fff !important;
  }

  html body main .juymo-card-block.juymo-card--black > .juymo-card-block__image,
  html body main .juymo-card.juymo-card--black .juymo-card-block__image {
    background: #000 !important;
    background-color: #000 !important;
  }

  html body main .juymo-card .juymo-card-block__image {
    box-sizing: border-box !important;
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    overflow: hidden !important;
  }

  html body main .juymo-card .juymo-card-block__image > img {
    box-sizing: border-box !important;
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
  }
}
/* END JUYMO MOBILE FINAL V4 */

/* BEGIN JUYMO MOBILE OVERFLOW V5
 * Live audit: alignwide inner groups were 350px wide inside modules
 * whose 38px side padding left only about 299px of usable space.
 */
@media (max-width: 782px) {
  html body main :is(.juymo-module, .juymo-page-section, .juymo-section) {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  html body main :is(.juymo-module, .juymo-page-section, .juymo-section)
    :is(.juymo-module__inner, .alignwide) {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  html body main :is(.juymo-module, .juymo-page-section, .juymo-section)
    :is(.wp-block-columns, .wp-block-column,
      .juymo-card-grid-block, .juymo-card-grid-block__items,
      .wp-block-juymo-card-grid, .wp-block-juymo-card,
      .juymo-card, .wp-block-table, table) {
    box-sizing: border-box !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  html body main :is(.juymo-module, .juymo-page-section, .juymo-section)
    .juymo-card-grid-block__items {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html body main :is(.juymo-module, .juymo-page-section, .juymo-section)
    :is(p, h1, h2, h3, h4, h5, h6, li, a, span, strong) {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-wrap: anywhere;
  }
}
/* END JUYMO MOBILE OVERFLOW V5 */

/* BEGIN JUYMO MOBILE SPACING V6
 * Live audit at 390px viewport:
 * - alternating Case Studies sections used 38px or 0px horizontal padding;
 * - the Home founders/execution columns used the complete 375px content width.
 * Keep section backgrounds full-width and give their content a consistent gutter.
 */
@media (max-width: 782px) {
  /* All standard content modules receive the same mobile gutter. */
  html body main .entry-content > :is(.juymo-page-section, .juymo-section, .juymo-module) {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Inner Gutenberg groups must use the padded content box, not alignwide/viewport width. */
  html body main .entry-content > :is(.juymo-page-section, .juymo-section, .juymo-module)
    > :is(.juymo-module__inner, .alignwide, .wp-block-group, .wp-block-columns) {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Home: Built by Executives / Built for Complex Execution Environments. */
  html body.home main .juymo-combined-execution-founders__columns,
  html body main .juymo-home .juymo-combined-execution-founders__columns {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  html body main .juymo-combined-execution-founders__columns > .wp-block-column {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Case Studies and other card modules stay inside the new content gutter. */
  html body main .entry-content > :is(.juymo-page-section, .juymo-section, .juymo-module)
    :is(.juymo-card-grid-block, .juymo-card-grid-block__items,
      .wp-block-juymo-card-grid, .wp-block-juymo-card,
      .juymo-card, .wp-block-columns, .wp-block-column) {
    box-sizing: border-box !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  html body main .entry-content > :is(.juymo-page-section, .juymo-section, .juymo-module)
    .juymo-card-grid-block__items {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  /* Text and controls may wrap, but can never enlarge their parent. */
  html body main :is(.juymo-combined-execution-founders__columns,
    .juymo-page-section, .juymo-section, .juymo-module)
    :is(h1, h2, h3, h4, h5, h6, p, ul, ol, li, a, strong,
      .wp-block-buttons, .wp-block-button, .wp-block-button__link) {
    box-sizing: border-box !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-wrap: anywhere;
  }
}
/* END JUYMO MOBILE SPACING V6 */
