:where(.gm-publication-body, .post_contents, .gtutc-gm-solution__body) > .wp-block-columns {
  box-sizing: border-box;
  width: 100vw !important;
  max-width: none !important;
  margin-inline: calc(50% - 50vw) !important;
  padding-inline: max(
    var(--gm-gutter, clamp(20px, 4vw, 64px)),
    calc((100vw - var(--gm-content-max, 1440px)) / 2)
  ) !important;
}

/* The editor canvas is not the browser viewport, so keep its preview inside the canvas. */
.is-root-container > .wp-block-columns {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
  padding-inline: var(--gm-gutter, clamp(20px, 4vw, 64px)) !important;
}

:is(.gm-publication-body, .post_contents, .gtutc-gm-solution__body, .is-root-container) > .wp-block-columns {
  padding-block: 100px;
}

@media (max-width: 767px) {
  :is(.gm-publication-body, .post_contents, .gtutc-gm-solution__body, .is-root-container) > .wp-block-columns {
    padding-block: 16px;
  }
}

/* Column spacing in editable content. Block-specific styles can override the defaults. */
:where(.editor-styles-wrapper, .gm-publication-body, .post_contents, .gtutc-gm-solution__body) .wp-block-columns:where(:not(.gtutc-gm-related *)) {
  margin-bottom: 0;
  gap: calc(16px + 16px * var(--fluid-progress, 0));
}

/* Keep specificity low so a block's own spacing setting takes precedence. */
:where(.gm-publication-body, .post_contents, .gtutc-gm-solution__body, .is-root-container) > :where(.wp-block-columns) > .wp-block-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 40px;
}

/* Data-imported column widths are intentionally ignored on inner pages. */
@media (min-width: 768px) {
  :where(.gm-publication-body, .post_contents, .gtutc-gm-solution__body, .is-root-container) > .wp-block-columns > .wp-block-column {
    flex: 1 1 0 !important;
    width: auto !important;
    max-width: none !important;
  }
}

@media (max-width: 767px) {
  :where(.gm-publication-body, .post_contents, .gtutc-gm-solution__body, .is-root-container) > :where(.wp-block-columns) > .wp-block-column {
    gap: 32px;
  }
}

:where(.editor-styles-wrapper, .gm-publication-body, .post_contents, .gtutc-gm-solution__body) .wp-block-columns.is-style-equal-height > .wp-block-column:where(:not(.gtutc-gm-related *)) {
  padding: 15px;
}

/* Default typography in the article body and block editor. */
:is(.post_contents, .gm-publication .gm-publication-body, .gm-product--single .gm-product-detail-content, .is-root-container) {
  --gm-body-h1-size: 40px;
  --gm-body-h2-size: 32px;
  --gm-body-h3-size: 22px;
  --gm-body-h4-size: 18px;
  --gm-heading-line-margin: 2em 0 0;
  --gm-heading-bars-margin: 2em 0 1em;
}

:where(.post_contents, .gm-publication-body, .gm-product-detail-content, .is-root-container) h1 {
  --gm-current-body-font-size: var(--gm-body-h1-size);
}

:where(.post_contents, .gm-publication-body, .gm-product-detail-content, .is-root-container) h2 {
  --gm-current-body-font-size: var(--gm-body-h2-size);
}

:where(.post_contents, .gm-publication-body, .gm-product-detail-content, .is-root-container) h3 {
  --gm-current-body-font-size: var(--gm-body-h3-size);
}

:where(.post_contents, .gm-publication-body, .gm-product-detail-content, .is-root-container) h4 {
  --gm-current-body-font-size: var(--gm-body-h4-size);
}

:where(.post_contents, .gm-publication-body, .gm-product-detail-content, .is-root-container) p {
  --gm-current-body-font-size: 16px;
}

:is(.post_contents, .gm-publication .gm-publication-body, .gm-product--single .gm-product-detail-content, .is-root-container)
  :where(h1, h2, h3, h4, p):not(:where(.gtutc-gm-related *, .has-custom-font-size, [class*="-font-size"], [class^="size_"], [class*=" size_"])) {
  font-size: var(--gm-current-body-font-size);
}

@media (max-width: 768px) {
  :is(.post_contents, .gm-publication .gm-publication-body, .gm-product--single .gm-product-detail-content, .is-root-container) {
    --gm-body-h1-size: 24px;
    --gm-body-h2-size: 24px;
    --gm-body-h3-size: 18px;
    --gm-heading-line-margin: 1em 0;
    --gm-heading-bars-margin: 1em 0;
  }
}

/* Editorial decorations default to media/news only; other bodies opt in via block styles. */
:is(
  :is(.gm-media-preview--detail, .gm-publication--media-detail, .gm-publication--news-detail) .gm-publication-body h3:not(:where([class^="is-style-"], [class*=" is-style-"])),
  :is(.post_contents, .gm-publication .gm-publication-body, .gm-product--single .gm-product-detail-content, .is-root-container) .is-style-gtutc-heading-left-line
):where(:not(.gtutc-gm-related *)) {
  clear: both;
  position: relative;
  margin: var(--gm-heading-line-margin);
  padding-block: .5em;
  padding-left: 6%;
  line-height: 1.5;
}

:is(
  :is(.gm-media-preview--detail, .gm-publication--media-detail, .gm-publication--news-detail) .gm-publication-body h3:not(:where([class^="is-style-"], [class*=" is-style-"])),
  :is(.post_contents, .gm-publication .gm-publication-body, .gm-product--single .gm-product-detail-content, .is-root-container) .is-style-gtutc-heading-left-line
):where(:not(.gtutc-gm-related *))::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 5%;
  height: 2px;
  background: red;
  content: "";
  transform: translateY(-50%);
}

:is(
  :is(.gm-media-preview--detail, .gm-publication--media-detail, .gm-publication--news-detail) .gm-publication-body h4:not(:where([class^="is-style-"], [class*=" is-style-"])),
  :is(.post_contents, .gm-publication .gm-publication-body, .gm-product--single .gm-product-detail-content, .is-root-container) .is-style-gtutc-heading-top-bars
):where(:not(.gtutc-gm-related *)) {
  clear: both;
  position: relative;
  margin: var(--gm-heading-bars-margin);
  line-height: 1.5;
}

:is(
  :is(.gm-media-preview--detail, .gm-publication--media-detail, .gm-publication--news-detail) .gm-publication-body h4:not(:where([class^="is-style-"], [class*=" is-style-"])),
  :is(.post_contents, .gm-publication .gm-publication-body, .gm-product--single .gm-product-detail-content, .is-root-container) .is-style-gtutc-heading-top-bars
):where(:not(.gtutc-gm-related *))::before {
  position: absolute;
  top: -18px;
  left: 0;
  width: 40px;
  height: 5px;
  background: linear-gradient(to right, #333 0 50%, #999 50% 100%);
  content: "";
}

/* Legacy link cards carried over as HTML in migrated articles. */
:where(.post_contents, .gm-publication-body, .gtutc-gm-solution__body) .sitecard2:not(.gtut-content-card) {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-block: 24px;
  padding: 20px 30px;
  border-block: 1px solid rgb(0 0 0 / 10%);
  transition: opacity .3s;
}

:where(.post_contents, .gm-publication-body, .gtutc-gm-solution__body) .sitecard2:not(.gtut-content-card):hover {
  opacity: .7;
}

:where(.post_contents, .gm-publication-body, .gtutc-gm-solution__body) .sitecard2:not(.gtut-content-card) > a.sitecard2Link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

:where(.post_contents, .gm-publication-body, .gtutc-gm-solution__body) .sitecard2:not(.gtut-content-card) > a.sitecard2Link:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

:where(.post_contents, .gm-publication-body, .gtutc-gm-solution__body) .sitecard2:not(.gtut-content-card) .sitecard__contents2 {
  width: 80%;
  min-width: 0;
  max-width: calc(100% - 75px);
  font-size: 18px;
  overflow-wrap: anywhere;
}

:where(.post_contents, .gm-publication-body, .gtutc-gm-solution__body) .sitecard2:not(.gtut-content-card) .sitecard__subtitle2 {
  float: left;
  margin-bottom: 6px;
  padding: 3px 8px;
  font-size: 13px;
  color: #fff;
  background: #000;
}

:where(.post_contents, .gm-publication-body, .gtutc-gm-solution__body) .post_related_list .sitecard2:not(.gtut-content-card) .sitecard__subtitle2 {
  padding: 0;
  color: #000;
  background: none;
}

:where(.post_contents, .gm-publication-body, .gtutc-gm-solution__body) .sitecard2:not(.gtut-content-card) .sitecard__contents2 .heading {
  clear: both;
  color: #0688ce;
  font-weight: 400;
  line-height: 1.6;
}

:where(.post_contents, .gm-publication-body, .gtutc-gm-solution__body) .sitecard2:not(.gtut-content-card) .sitecard__contents2 .phrase {
  margin-bottom: 0;
  font-weight: 400;
}

:where(.post_contents, .gm-publication-body, .gtutc-gm-solution__body) .sitecard2:not(.gtut-content-card) .sitecard_eyecatch {
  width: calc(18% - 15px);
  min-width: 60px;
  margin-bottom: 0;
}

:where(.post_contents, .gm-publication-body, .gtutc-gm-solution__body) .sitecard2:not(.gtut-content-card) .sitecard_eyecatch img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0;
}

:where(.post_contents, .gm-publication-body, .gtutc-gm-solution__body) .sitecard2:not(.gtut-content-card) a.sitecard_btn {
  position: relative;
  z-index: 2;
  display: block;
  width: 10em;
  max-width: 100%;
  margin: 10px 0;
  padding: .5em;
  border: 3px solid #ddd;
  color: #0688ce;
  font-size: 16px;
  text-align: center;
}

:where(.post_contents, .gm-publication-body, .gtutc-gm-solution__body) .sitecard2:not(.gtut-content-card) a.sitecard_btn:hover {
  border-color: #f1f1f1;
  color: #ddd;
}

@media (max-width: 768px) {
  :where(.post_contents, .gm-publication-body, .gtutc-gm-solution__body) .sitecard2:not(.gtut-content-card) {
    margin-block: 30px;
    padding-inline: 0;
  }

  :where(.post_contents, .gm-publication-body, .gtutc-gm-solution__body) .sitecard2:not(.gtut-content-card) .sitecard__contents2 {
    width: 50%;
    max-width: calc(100% - 135px);
    font-size: 16px;
  }

  :where(.post_contents, .gm-publication-body, .gtutc-gm-solution__body) .sitecard2:not(.gtut-content-card) .sitecard__subtitle2 {
    margin-bottom: 3px;
    font-size: 12px;
  }

  :where(.post_contents, .gm-publication-body, .gtutc-gm-solution__body) .sitecard2:not(.gtut-content-card) :is(.phrase, a.sitecard_btn) {
    display: none;
  }

  :where(.post_contents, .gm-publication-body, .gtutc-gm-solution__body) .sitecard2:not(.gtut-content-card) .sitecard_eyecatch {
    width: calc(48% - 15px);
    min-width: 120px;
  }
}

:where(.post_contents, .gm-publication-body, .gtutc-gm-solution__body) .sitecard2:not(.gtut-content-card):not(:has(.sitecard_eyecatch img)) .sitecard_eyecatch {
  display: none;
}

:where(.post_contents, .gm-publication-body, .gtutc-gm-solution__body) .sitecard2:not(.gtut-content-card):not(:has(.sitecard_eyecatch img)) .sitecard__contents2 {
  width: 100%;
  max-width: none;
}
