/** Reading-first introductions on the approved service and directory hubs. */

/* The title block owns one outer rail; its content adds no second inset. */
html body:not(.page-node-type-service):not(.page-node-type-partners) #wrapper #main-content #content-wide-top .block-block-content:has(.hub-intro.cyb-editorial-hub) {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 2rem var(--cyb-editorial-gutter, 16px) 1rem !important;
  position: relative !important;
  top: auto !important;
}

html body:not(.page-node-type-service):not(.page-node-type-partners) #wrapper #main-content #content-wide-top .block-block-content:has(.hub-intro.cyb-editorial-hub) :is(.container-wrap, .block-content, .field.field-body) {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 68rem !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
}

html body:not(.page-node-type-service):not(.page-node-type-partners) #wrapper #main-content #content-wide-top .block-block-content .field-item > h1:has(+ .hub-intro.cyb-editorial-hub) {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 68rem !important;
  margin: 0 auto 1.25rem !important;
  padding: 0 !important;
  color: #0a2f1c !important;
  -webkit-text-fill-color: #0a2f1c !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  font-size: clamp(1.8rem, 3.8vw, 2.8rem) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  text-align: left !important;
  text-wrap: balance;
  top: auto !important;
}

/* Markers are written only to the selected service, partner and blog intros. */
html body:not(.page-node-type-service):not(.page-node-type-partners):not(.path-team) #wrapper #main-content .cyb-editorial-hub {
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  max-width: 68rem !important;
  margin: 0 auto 1.5rem !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #203b2d !important;
  -webkit-text-fill-color: #203b2d !important;
  text-align: left !important;
  opacity: 1 !important;
  filter: none !important;
}

html body:not(.page-node-type-service):not(.page-node-type-partners):not(.path-team) #wrapper #main-content .cyb-editorial-hub :is(p, ul, ol, li) {
  box-sizing: border-box !important;
  max-width: 68ch !important;
  margin: 0 0 1rem !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #203b2d !important;
  -webkit-text-fill-color: #203b2d !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;
  text-align: left !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
  text-wrap: pretty;
}

html body:not(.page-node-type-service):not(.page-node-type-partners):not(.path-team) #wrapper #main-content .cyb-editorial-hub :is(.cyb-editorial-hub__lead, .hub-intro__lead, .hub-intro__lead > p) {
  max-width: 62ch !important;
  color: #0a2f1c !important;
  -webkit-text-fill-color: #0a2f1c !important;
  font-size: clamp(1.1rem, 1.55vw, 1.25rem) !important;
  font-weight: 500 !important;
  line-height: 1.6 !important;
}

html body:not(.page-node-type-service):not(.page-node-type-partners):not(.path-team) #wrapper #main-content .cyb-editorial-hub :is(.hub-intro__links, .blog-listing-intro__actions, .blog-term-index-back) {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0.75rem !important;
  max-width: none !important;
  margin: 1.25rem 0 0 !important;
}

/* Measure the rendered content rail, including Views and nested title blocks. */
html body:not(.page-node-type-service):not(.page-node-type-partners) #wrapper #main-content .block-block-content:has(.hub-intro.cyb-editorial-hub),
html body:not(.page-node-type-service):not(.page-node-type-partners) #wrapper #main-content .view-header:has(.cyb-editorial-hub) {
  container-type: inline-size;
  container-name: cyb-editorial-hub;
}

/* Adjacent prose selects the artwork scale; the original animation stays intact. */
html body:not(.page-node-type-service):not(.page-node-type-partners):not(.path-team) #wrapper #main-content .hub-intro.cyb-editorial-hub:has(> .hub-lottie) {
  --cyb-art-desktop: 15rem;
  --cyb-art-mobile: 14rem;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0.75rem !important;
}

html body:not(.page-node-type-service):not(.page-node-type-partners):not(.path-team) #wrapper #main-content .hub-intro.cyb-editorial-hub:has(> .hub-lottie).cyb-art--micro { --cyb-art-desktop: 10rem; --cyb-art-mobile: 10rem; }
html body:not(.page-node-type-service):not(.page-node-type-partners):not(.path-team) #wrapper #main-content .hub-intro.cyb-editorial-hub:has(> .hub-lottie).cyb-art--brief { --cyb-art-desktop: 12rem; --cyb-art-mobile: 12rem; }
html body:not(.page-node-type-service):not(.page-node-type-partners):not(.path-team) #wrapper #main-content .hub-intro.cyb-editorial-hub:has(> .hub-lottie).cyb-art--compact { --cyb-art-desktop: 15rem; --cyb-art-mobile: 14rem; }
html body:not(.page-node-type-service):not(.page-node-type-partners):not(.path-team) #wrapper #main-content .hub-intro.cyb-editorial-hub:has(> .hub-lottie).cyb-art--standard { --cyb-art-desktop: 18rem; --cyb-art-mobile: 16rem; }

html body:not(.page-node-type-service):not(.page-node-type-partners):not(.path-team) #wrapper #main-content .hub-intro.cyb-editorial-hub:has(> .hub-lottie) > .hub-lottie {
  box-sizing: border-box !important;
  align-self: center !important;
  width: min(100%, var(--cyb-art-mobile)) !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}

html body:not(.page-node-type-service):not(.page-node-type-partners):not(.path-team) #wrapper #main-content .hub-intro.cyb-editorial-hub:has(> .hub-lottie) > .hub-lottie .service-lottie--hub {
  width: 100% !important;
  margin: 0 !important;
}

html body:not(.page-node-type-service):not(.page-node-type-partners):not(.path-team) #wrapper #main-content .hub-intro.cyb-editorial-hub:has(> .hub-lottie) > :is(.hub-intro__lead, .hub-intro__remainder) {
  box-sizing: border-box !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

@container cyb-editorial-hub (min-width: 48rem) {
  html body:not(.page-node-type-service):not(.page-node-type-partners):not(.path-team) #wrapper #main-content .hub-intro.cyb-editorial-hub:has(> .hub-lottie) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) var(--cyb-art-desktop) !important;
    column-gap: clamp(1.5rem, 3vw, 3rem) !important;
    row-gap: 0.75rem !important;
    align-items: start !important;
  }

  html body:not(.page-node-type-service):not(.page-node-type-partners):not(.path-team) #wrapper #main-content .hub-intro.cyb-editorial-hub:has(> .hub-lottie) > .hub-intro__lead {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  html body:not(.page-node-type-service):not(.page-node-type-partners):not(.path-team) #wrapper #main-content .hub-intro.cyb-editorial-hub:has(> .hub-lottie) > .hub-lottie {
    grid-column: 2 !important;
    grid-row: 1 / span 3 !important;
    align-self: start !important;
    justify-self: end !important;
    width: var(--cyb-art-desktop) !important;
  }

  html body:not(.page-node-type-service):not(.page-node-type-partners):not(.path-team) #wrapper #main-content .hub-intro.cyb-editorial-hub:has(> .hub-lottie) > .hub-intro__links {
    grid-column: 1 !important;
    grid-row: 2 !important;
    margin: 0.25rem 0 0.5rem !important;
  }

  html body:not(.page-node-type-service):not(.page-node-type-partners):not(.path-team) #wrapper #main-content .hub-intro.cyb-editorial-hub:has(> .hub-lottie) > .hub-intro__remainder {
    grid-column: 1 !important;
    grid-row: 3 !important;
  }
}

@media (max-width: 767.98px) {
  html body:not(.page-node-type-service):not(.page-node-type-partners) #wrapper #main-content #content-wide-top .block-block-content:has(.hub-intro.cyb-editorial-hub) {
    padding: 1.5rem var(--cyb-editorial-gutter, 16px) 1rem !important;
  }

  html body:is(.path-partners, .page-service-market-partners) #wrapper #main-content .view-partners,
  html body.path-blog #wrapper #main-content .view-blog > .view-header,
  html body.page-blog-term-index #wrapper #main-content .view-blog-taxonomy > .view-header {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
    padding-inline: 0 !important;
  }

  html body:not(.page-node-type-service):not(.page-node-type-partners):not(.path-team) #wrapper #main-content .cyb-editorial-hub :is(.hub-intro__links, .blog-listing-intro__actions, .blog-term-index-back) {
    flex-direction: column !important;
    align-items: stretch !important;
  }
}

/* Directory titles share the intro rail instead of a second framed panel. */
html body.path-blog.page-blog #wrapper #main-content #block-martis-blogh1title {
  width: calc(100% - 2 * var(--cyb-editorial-gutter, 16px)) !important;
  max-width: 68rem !important;
  margin: 1.5rem auto !important;
  padding: 0 !important;
}
html body.path-blog.page-blog #wrapper #main-content #block-martis-blogh1title :is(.container-wrap, .block-content, .field-body) {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
html body.path-taxonomy:is(.page-blog-tag, .page-blog-category) #wrapper #main-content .block-system-main-block:has(.blog-tag-intro.cyb-editorial-hub) {
  margin-top: 0 !important;
  padding-top: 1.5rem !important;
}
html body.path-taxonomy:is(.page-blog-tag, .page-blog-category) #wrapper #main-content .block-system-main-block:has(.blog-tag-intro.cyb-editorial-hub) > .container-wrap,
html body.path-taxonomy:is(.page-blog-tag, .page-blog-category) #wrapper #main-content .block-system-main-block:has(.blog-tag-intro.cyb-editorial-hub) > .container-wrap > .block-content,
html body.path-taxonomy:is(.page-blog-tag, .page-blog-category) #wrapper #main-content .block-system-main-block:has(.blog-tag-intro.cyb-editorial-hub) > .container-wrap > .block-content > .views-element-container {
  padding-top: 0 !important;
}
html body.path-taxonomy:is(.page-blog-tag, .page-blog-category) #wrapper #main-content .blog-tag-h1-wrap {
  display: block !important;
  width: 100% !important;
  margin: 0 0 1rem !important;
  padding: 0 !important;
  text-align: left !important;
}
html body.path-taxonomy:is(.page-blog-tag, .page-blog-category) #wrapper #main-content .blog-tag-h1-wrap::after {
  display: none !important;
}
html body:not(.page-node-type-blog) #wrapper #main-content .view-header:has(.cyb-editorial-hub) :is(.blog-term-index-hero, .partners-listing-hero) {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
html body:not(.page-node-type-blog) #wrapper #main-content .view-header:has(.cyb-editorial-hub) h1,
html body.path-blog:not(.page-node-type-blog):not(.page-blog-search) #wrapper #main-content :is(#page-wrapper, #content-wide-top) h1,
html body.path-taxonomy:is(.page-blog-tag, .page-blog-category) #wrapper #main-content .blog-tag-h1-wrap h1 {
  margin: 0 0 1rem !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #0a2f1c !important;
  -webkit-text-fill-color: #0a2f1c !important;
  text-shadow: none !important;
  font-size: clamp(1.8rem, 3.8vw, 2.8rem) !important;
  line-height: 1.2 !important;
  text-align: left !important;
  text-wrap: balance;
}
html body #wrapper #main-content .cyb-editorial-hub a:focus-visible {
  outline: 3px solid #4fa36f;
  outline-offset: 4px;
}
@media (min-width: 768px) {
  html body:not(.page-node-type-service):not(.page-node-type-partners):not(.path-team) #wrapper #main-content .cyb-editorial-hub :is(p, ul, ol, li) {
    font-size: 1.0625rem !important;
  }
}

/* Beat the original three-ID title/intro width and padding rules. */
html body:not(.page-node-type-service):not(.page-node-type-partners) #wrapper #main-content #content-wide-top .block-block-content .field-item > .hub-intro.cyb-editorial-hub {
  width: 100% !important;
  max-width: 68rem !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Primary consultation is directly after the lead; artwork remains supporting. */
html body:not(.page-node-type-service):not(.page-node-type-partners):not(.path-team) #wrapper #main-content .cyb-editorial-hub .hub-intro__links {
  margin: 1rem 0 0 !important;
}
html body:not(.page-node-type-service):not(.page-node-type-partners):not(.path-team) #wrapper #main-content .cyb-editorial-hub :is(.hub-intro__btn--primary, .hub-intro__btn--consult, .blog-listing-intro__btn--primary) {
  border: 1px solid #138450 !important;
  border-radius: 8px !important;
  background: #138450 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  box-shadow: none !important;
  transform: none !important;
  min-height: 48px;
}
html body:not(.page-node-type-service):not(.page-node-type-partners):not(.path-team) #wrapper #main-content .cyb-editorial-hub :is(.hub-intro__btn--ghost, .blog-listing-intro__btn--ghost) {
  border: 0 !important;
  border-radius: 4px !important;
  padding-inline: 0 !important;
  background: transparent !important;
  color: #0e6c3e !important;
  -webkit-text-fill-color: #0e6c3e !important;
  box-shadow: none !important;
  text-decoration: underline !important;
  text-underline-offset: 0.2em;
  transform: none !important;
  min-height: 44px;
}
html body.path-blog.page-blog #wrapper #main-content #content-wide-top #block-martis-blogh1title {
  width: calc(100% - 2 * var(--cyb-editorial-gutter, 16px)) !important;
  max-width: 68rem !important;
  margin: 1.5rem auto 1rem !important;
  padding: 0 !important;
}
html body.path-blog.page-blog #wrapper #main-content #block-martis-blogh1title :is(.container-wrap, .block-content, .field-body, .field-item) {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
html body.path-blog.page-blog #wrapper #main-content #content-wide-top #block-martis-blogh1title h1 {
  width: 100% !important;
  max-width: none !important;
}

/* The authored service hubs name their primary action --consult. */
html body:not(.page-node-type-service):not(.page-node-type-partners) #wrapper #main-content #content-wide-top .cyb-editorial-hub a.hub-intro__btn--consult {
  min-height: 48px !important;
  padding: 0.75rem 1.25rem !important;
  border: 1px solid #138450 !important;
  border-radius: 8px !important;
  background: #138450 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  box-shadow: none !important;
  transform: none !important;
  font-size: 1rem !important;
  line-height: 1.4 !important;
}
html body:not(.page-node-type-service):not(.page-node-type-partners) #wrapper #main-content #content-wide-top .cyb-editorial-hub a.hub-intro__btn--consult:is(:hover, :focus-visible) {
  background: #0e6c3e !important;
  border-color: #0e6c3e !important;
}
