/*
 * Gutenberg front-end styles for normal works posts only.
 * The required root class prevents these rules from affecting legacy works.
 */

.ipe-works.ipe-works--gutenberg {
      font-size: 16px;
      line-height: 1.7;
    }

    .single-works .article__content .ipe-works--gutenberg p {
      margin: 0 0 22px;
      color: #3c4c5c;
      font-size: 16px;
      font-weight: 400;
      line-height: 1.7;
      letter-spacing: normal;
    }

    .ipe-works.ipe-works--gutenberg a {
      color: #005bac;
      text-decoration: underline;
      text-underline-offset: .15em;
    }

    .single-works .article__content .ipe-works--gutenberg
    a:not(.wp-block-button__link) {
      color: #005bac;
      text-decoration: underline;
      text-underline-offset: .15em;
      box-shadow: none;
    }

    .single-works .article__content .ipe-works--gutenberg
    a:not(.wp-block-button__link):hover {
      box-shadow: none;
    }

    .ipe-works.ipe-works--gutenberg img {
      display: block;
      max-width: 100%;
      height: auto;
    }

    .ipe-works.ipe-works--gutenberg .wp-block-group__inner-container > :last-child {
      margin-bottom: 0;
    }

    .ipe-works.ipe-works--gutenberg h2 {
      margin: 56px 0 24px;
      color: #19334d;
      font-size: 28px;
      line-height: 1.45;
    }

    .ipe-works.ipe-works--gutenberg h3 {
      margin: 36px 0 16px;
      color: #19334d;
      font-size: 21px;
      line-height: 1.55;
    }

    .ipe-works.ipe-works--gutenberg ul,
    .ipe-works.ipe-works--gutenberg ol {
      margin: 0 0 22px;
      padding-left: 1.5em;
    }

    .ipe-works.ipe-works--gutenberg li + li {
      margin-top: 8px;
    }

    .ipe-works.ipe-works--gutenberg .wp-block-quote {
      margin: 32px 0;
      padding: 20px 24px;
      border-left: 4px solid #007bad;
      background: #f1f8fb;
    }

    .ipe-works.ipe-works--gutenberg .wp-block-table {
      overflow-x: auto;
      margin: 32px 0;
    }

    .ipe-works.ipe-works--gutenberg .wp-block-table table {
      width: 100%;
      border-collapse: collapse;
    }

    .ipe-works.ipe-works--gutenberg .wp-block-table th,
    .ipe-works.ipe-works--gutenberg .wp-block-table td {
      padding: 12px 16px;
      border: 1px solid #dfe4e8;
      text-align: left;
    }

    :is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg) h2.wp-block-heading {
      position: relative;
      margin: 0 0 34px;
      padding: 0 0 13px;
      border: 0;
      background: transparent;
      color: #24364b;
      font-size: 28px;
      font-weight: 700;
      letter-spacing: .03em;
      line-height: 1.45;
    }

    :is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg) h3.wp-block-heading {
      position: static;
      margin: 36px 0 16px;
      padding: 0;
      border: 0;
      background: none;
      color: #19334d;
      font-size: 21px;
      font-weight: 700;
      letter-spacing: normal;
      line-height: 1.55;
    }

    :is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg) h2.wp-block-heading:not(.case-interview-topic)::before,
    :is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg) h3.wp-block-heading:not(.case-section-title):not(.case-interview-topic):not(.ipe-works-summary__item h3)::before,
    :is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg) h3.wp-block-heading:not(.case-section-title):not(.case-interview-topic):not(.ipe-works-summary__item h3)::after {
      display: none;
      content: none;
    }

    :is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg) h2.wp-block-heading:not(.case-interview-topic):not(.ipe-works-summary__title)::after {
      display: block;
      content: "";
      position: absolute;
      left: 0;
      bottom: 0;
      width: 38px;
      height: 4px;
      border-radius: 2px;
      background: #007bad;
    }

    :is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg) ul.wp-block-list,
    :is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg) ol.wp-block-list {
      margin: 0 0 22px;
      padding-left: 1.5em;
    }

    :is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg) ul.wp-block-list {
      list-style: disc;
    }

    :is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg) ol.wp-block-list {
      list-style: decimal;
    }

    :is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg) .wp-block-list > li {
      position: static;
      margin: 0;
      padding-left: 0;
      font-size: 16px;
      line-height: 1.7;
      list-style: inherit;
    }

    :is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg) .wp-block-list > li + li {
      margin-top: 8px;
    }

    :is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg) .wp-block-list > li::before {
      display: none;
      content: none;
    }

    :is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg) .wp-block-quote {
      margin: 32px 0;
      padding: 20px 24px;
      border: 0;
      border-left: 4px solid #007bad;
      background: #f1f8fb;
      box-shadow: none;
    }

    :is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg) .wp-block-quote::before,
    :is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg) .wp-block-quote::after {
      display: none;
      content: none;
    }

    :is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg) .wp-block-quote > :last-child {
      margin-bottom: 0;
    }

    :is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg) figure,
    :is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg) .wp-block-image {
      width: auto;
      max-width: 100%;
      margin: 32px 0;
      overflow: visible;
    }

    :is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg) .wp-block-image img {
      display: block;
      max-width: 100%;
      height: auto;
      margin: 0 auto;
    }

    :is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg) figcaption {
      margin-top: 8px;
      color: #475569;
      font-size: 13px;
      line-height: 1.6;
      text-align: center;
    }

    :is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg) .wp-block-table {
      width: 100%;
      margin: 32px 0;
      overflow-x: auto;
    }

    :is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg) .wp-block-table table {
      width: 100%;
      margin: 0;
      table-layout: auto;
      border-collapse: collapse;
      background: transparent;
    }

    :is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg) .wp-block-table th,
    :is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg) .wp-block-table td {
      width: auto;
      padding: 12px 16px;
      border: 1px solid #dfe4e8;
      background: transparent;
      color: #24364b;
      font-size: 16px;
      font-weight: 400;
      line-height: 1.7;
      text-align: left;
      vertical-align: top;
    }

    :is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg) .wp-block-table th {
      background: #f1f8fb;
      font-weight: 700;
    }

    :is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg) .wp-block-buttons {
      gap: 10px;
      margin: 28px 0;
    }

    :is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg) .wp-block-button {
      margin: 0;
    }

    :is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg) .wp-block-button__link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: auto;
      max-width: 100%;
      min-height: 0;
      height: auto;
      margin: 0;
      padding: .667em 1.333em;
      border: 0;
      border-radius: 0 !important;
      background: transparent;
      box-shadow: none;
      color: #005bac !important;
      font-family: inherit;
      font-size: inherit;
      font-weight: 400;
      letter-spacing: normal;
      line-height: 1.5;
      text-decoration: underline;
      text-underline-offset: .15em;
    }

    /* =========================================================
       1. Hero
       ========================================================= */

    .ipe-works.ipe-works--gutenberg .case-hero {
      margin: 0 0 40px;
      padding-bottom: 28px;
      border-bottom: 1px solid #dfe4e8;
    }

    .ipe-works.ipe-works--gutenberg .case-category-tag {
      display: inline-block;
      margin: 0 0 44px;
      padding: 8px 13px;
      border-radius: 4px;
      background: #007bad;
      color: #fff;
      font-size: 15px;
      font-weight: 700;
      line-height: 1.4;
    }

    .ipe-works.ipe-works--gutenberg .case-main-title {
      margin: 0 0 18px;
      color: #19334d;
      font-size: 17px;
      font-weight: 700;
      line-height: 1.65;
    }

    .single-works .article__content .ipe-works--gutenberg .case-intro {
      margin: 0 0 40px;
      padding: 0 0 28px;
      border-bottom: 1px solid #dfe4e8;
    }

    .single-works .article__content .ipe-works--gutenberg
    p.case-category-label {
      display: inline-block;
      margin: 0 0 22px;
      padding: 8px 13px;
      border-radius: 4px;
      background: #007bad;
      color: #fff;
      font-size: 15px;
      font-weight: 700;
      line-height: 1.4;
    }

    .single-works .article__content .ipe-works--gutenberg
    p.case-intro-title {
      margin: 0 0 18px;
      color: #19334d;
      font-size: 17px;
      font-weight: 700;
      line-height: 1.65;
    }

    .single-works .article__content .ipe-works--gutenberg
    p.case-lead-text {
      margin: 0;
      color: #475569;
      font-size: 16px;
      line-height: 1.8;
    }

    /* =========================================================
       2. PROJECT SUMMARY
       ========================================================= */

    .ipe-works.ipe-works--gutenberg .ipe-works-summary {
      margin: 0 0 52px;
      overflow: hidden;
      border-left: 5px solid #007bad;
      border-radius: 0 10px 10px 0;
      background: #f1f8fb;
      box-shadow: 0 4px 12px rgb(0 0 0 / 3%);
    }

    .single-works .article__content .ipe-works--gutenberg
    h2.wp-block-heading.ipe-works-summary__title {
      position: static;
      margin: 0;
      padding: 19px 20px;
      border: 0;
      background: #2c2c2c;
      color: #007bad;
      font-size: 16px;
      font-weight: 700;
      line-height: 1.4;
      letter-spacing: .06em;
    }

    .single-works .article__content .ipe-works--gutenberg .ipe-works-summary__grid {
      padding: 0;
    }

    .single-works .article__content .ipe-works--gutenberg
    .ipe-works-summary__grid > .wp-block-group__inner-container {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      padding: 26px 28px 30px;
    }

    .ipe-works.ipe-works--gutenberg .ipe-works-summary__item {
      min-width: 0;
      padding: 0 28px;
      border-right: 1px solid #e2e8ec;
    }

    .ipe-works.ipe-works--gutenberg .ipe-works-summary__item:first-child {
      padding-left: 26px;
    }

    .ipe-works.ipe-works--gutenberg .ipe-works-summary__item:last-child {
      padding-right: 0;
      border-right: 0;
    }

    .single-works .article__content .ipe-works--gutenberg
    .ipe-works-summary__item h3.wp-block-heading {
      position: relative;
      margin: 0 0 14px;
      padding: 0 0 10px 28px;
      border-bottom: 2px solid #dce4e9;
      color: #24364b;
      font-size: 16px;
      font-weight: 700;
      line-height: 1.45;
      letter-spacing: .04em;
    }

    .single-works .article__content .ipe-works--gutenberg
    .ipe-works-summary__item h3.wp-block-heading::before,
    .single-works .article__content .ipe-works--gutenberg
    .ipe-works-summary__item h3.wp-block-heading::after {
      display: block;
      content: "";
      position: absolute;
      width: 10px;
      height: 10px;
      border: 1px solid #9cc6d4;
      background: transparent;
    }

    .single-works .article__content .ipe-works--gutenberg
    .ipe-works-summary__item h3.wp-block-heading::before {
      left: 3px;
      top: 3px;
    }

    .single-works .article__content .ipe-works--gutenberg
    .ipe-works-summary__item h3.wp-block-heading::after {
      left: 8px;
      top: 8px;
      background: #fff;
    }

    .ipe-works.ipe-works--gutenberg .ipe-works-summary__item ul {
      margin: 0;
      padding-left: 1.35em;
      color: #314459;
    }

    .ipe-works.ipe-works--gutenberg .ipe-works-summary__item li {
      padding-left: 2px;
      line-height: 1.55;
    }

    .ipe-works.ipe-works--gutenberg .ipe-works-summary__item li + li {
      margin-top: 10px;
    }

    .single-works .article__content .ipe-works--gutenberg
    .ipe-works-summary__item--highlight h3.wp-block-heading {
      border-bottom-color: #007bad;
      color: #007bad;
    }

    .single-works .article__content .ipe-works--gutenberg
    .ipe-works-summary__item--highlight h3.wp-block-heading::before,
    .single-works .article__content .ipe-works--gutenberg
    .ipe-works-summary__item--highlight h3.wp-block-heading::after {
      border-color: #8ac5dc;
    }

    .ipe-works.ipe-works--gutenberg .ipe-works-summary__item--highlight ul {
      color: #007bad;
      font-weight: 700;
    }

    /* =========================================================
       3. Common section heading
       ========================================================= */

    .ipe-works.ipe-works--gutenberg .case-section {
      margin: 52px 0;
    }

    .single-works .article__content .ipe-works--gutenberg
    h2.wp-block-heading.case-section-title {
      position: relative;
      margin: 0 0 34px;
      padding: 0 0 13px;
      border: 0;
      background: transparent;
      color: #24364b;
      font-size: 28px;
      font-weight: 700;
      letter-spacing: .03em;
      line-height: 1.45;
    }

    .single-works .article__content .ipe-works--gutenberg
    .case-section-body p {
      margin: 0 0 24px;
      line-height: 1.85;
    }

    /* =========================================================
       4. Client profile + background
       同一セクション内で、クライアント情報のみカード化
       ========================================================= */

    .ipe-works.ipe-works--gutenberg .case-client-profile {
      margin: 0 0 30px;
      overflow: hidden;
      border: 1px solid #dfe6e9;
      border-radius: 8px;
      background: #fff;
      box-shadow: 0 3px 10px rgb(0 0 0 / 3%);
    }

    .ipe-works.ipe-works--gutenberg .case-client-image {
      margin: 0;
      background: #fff;
    }

    .single-works .article__content .ipe-works--gutenberg
    figure.wp-block-image.case-client-image {
      margin-bottom: 0;
    }

    .single-works .article__content .ipe-works--gutenberg
    figure.wp-block-table.case-info-table {
      margin: 12px 0 0;
    }

    .ipe-works.ipe-works--gutenberg .case-client-image img {
      width: 100%;
      margin: 0 auto;
    }

    .ipe-works.ipe-works--gutenberg .case-client-info {
      padding: 20px 22px 22px;
    }

    .ipe-works.ipe-works--gutenberg .case-info-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 15px;
    }

    .ipe-works.ipe-works--gutenberg .case-info-table th,
    .ipe-works.ipe-works--gutenberg .case-info-table td {
      padding: 13px 15px;
      border: 1px solid #dfe5e8;
      vertical-align: top;
      text-align: left;
    }

    .ipe-works.ipe-works--gutenberg .case-info-table th {
      width: 22%;
      background: #f4f7f8;
      color: #24364b;
      font-weight: 700;
    }

    .ipe-works.ipe-works--gutenberg .case-client-background {
      margin-top: 26px;
    }

    .single-works .article__content .ipe-works--gutenberg
    .case-client-background p {
      margin: 0 0 24px;
      line-height: 1.85;
    }

    /* =========================================================
       5. Problem / Action lists
       ========================================================= */

    .ipe-works.ipe-works--gutenberg .case-point-list {
      margin: 0;
      padding-left: 1.5em;
      color: #3c4c5c;
    }

    .ipe-works.ipe-works--gutenberg .case-point-list li {
      line-height: 1.75;
    }

    .ipe-works.ipe-works--gutenberg .case-point-list li + li {
      margin-top: 12px;
    }

    /* =========================================================
       6. Results
       ========================================================= */

    .ipe-works.ipe-works--gutenberg .case-result-box {
      padding: 26px;
      border-radius: 8px;
      background: #f4f8f9;
    }

    .ipe-works.ipe-works--gutenberg .case-result-metrics,
    .ipe-works.ipe-works--gutenberg .case-result-metrics > .wp-block-group__inner-container {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 18px;
      margin-bottom: 22px;
    }

    .ipe-works.ipe-works--gutenberg .case-result-metrics:has(> .wp-block-group__inner-container) {
      display: block;
    }

    .ipe-works.ipe-works--gutenberg .case-result-metrics > .wp-block-group__inner-container {
      margin-bottom: 0;
    }

    .ipe-works.ipe-works--gutenberg .case-metric-item {
      padding: 18px;
      background: #fff;
      text-align: center;
    }

    .single-works .article__content .ipe-works--gutenberg
    p.case-metric-label {
      margin: 0 0 8px;
      color: #5e6b78;
      font-size: 13px;
    }

    .single-works .article__content .ipe-works--gutenberg
    p.case-metric-value {
      margin: 0;
      color: #00a997;
      font-size: 21px;
      font-weight: 700;
    }

    .single-works .article__content .ipe-works--gutenberg
    p.case-result-note {
      margin: 0;
      color: #4a5568;
      font-size: 14px;
      line-height: 1.8;
    }

    /* =========================================================
       7. Interview
       外枠は固定。中身はトピック + Q&Aを追加できる構造。
       ========================================================= */

    .ipe-works.ipe-works--gutenberg .case-interview {
      margin: 52px 0;
    }

    .single-works .article__content .ipe-works--gutenberg
    .case-interview-intro p {
      margin: 0 0 28px;
      line-height: 1.85;
    }

    .ipe-works.ipe-works--gutenberg .case-interview-image {
      margin: 28px 0 36px;
      text-align: center;
    }

    .ipe-works.ipe-works--gutenberg .case-interview-image img {
      width: 100%;
      margin: 0 auto;
    }

    .single-works .article__content .ipe-works--gutenberg
    h3.wp-block-heading.case-interview-topic {
      position: relative;
      margin: 42px 0 24px;
      padding: 0 0 15px;
      border: 0;
      border-bottom: 4px solid #ccc;
      background: transparent;
      color: #24364b;
      font-size: 24px;
      font-weight: 700;
      line-height: 1.5;
      letter-spacing: normal;
    }

    .single-works .article__content .ipe-works--gutenberg
    h3.wp-block-heading.case-interview-topic::before {
      display: block;
      content: "";
      position: absolute;
      left: 0;
      bottom: -4px;
      width: 70px;
      height: 4px;
      background: #007bad;
    }

    .single-works .article__content .ipe-works--gutenberg
    h3.wp-block-heading.case-interview-topic::after {
      display: block;
      content: "";
      position: absolute;
      left: 70px;
      bottom: -4px;
      width: 3px;
      height: 4px;
      background: #fff;
    }

    .ipe-works.ipe-works--gutenberg .case-interview-qa {
      margin-bottom: 30px;
    }

    .single-works .article__content .ipe-works--gutenberg
    p.case-interview-question {
      margin: 0 0 14px;
      color: #007bad;
      font-weight: 700;
      line-height: 1.75;
    }

    .single-works .article__content .ipe-works--gutenberg
    .case-interview-answer > p:last-child,
    .single-works .article__content .ipe-works--gutenberg
    .case-interview-answer > .wp-block-group__inner-container > p:last-child {
      margin-bottom: 0;
    }

    /* =========================================================
       8. Service CTA
       ========================================================= */

    .ipe-works.ipe-works--gutenberg .case-service {
      margin: 48px 0 0;
      padding: 26px;
      border: 1px solid #d8e6eb;
      background: #f7fafb;
      text-align: center;
    }

    .ipe-works.ipe-works--gutenberg .case-service p {
      margin-bottom: 18px;
      color: #3c4c5c;
    }

    .ipe-works.ipe-works--gutenberg .case-service a {
      display: inline-block;
      padding: 13px 30px;
      border-radius: 4px;
      background: #005bac;
      color: #fff;
      font-weight: 700;
      text-decoration: none;
    }

    /* =========================================================
       Responsive
       ========================================================= */

    @media (max-width: 767px) {
      .ipe-works.ipe-works--gutenberg {
        font-size: 14px;
      }

      .single-works .article__content .ipe-works--gutenberg p,
      :is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg) .wp-block-list > li,
      :is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg) .wp-block-table th,
      :is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg) .wp-block-table td {
        font-size: 14px;
      }

      .single-works .article__content .ipe-works--gutenberg
      p.case-metric-label {
        margin: 0 0 8px;
        color: #5e6b78;
        font-size: 13px;
      }

      .single-works .article__content .ipe-works--gutenberg
      p.case-metric-value {
        margin: 0;
        color: #00a997;
        font-size: 21px;
        font-weight: 700;
      }

      .single-works .article__content .ipe-works--gutenberg
      p.case-result-note {
        margin: 0;
        color: #4a5568;
        font-size: 14px;
        line-height: 1.8;
      }

      :is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg) h2.wp-block-heading {
        font-size: 23px;
      }

      :is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg) h3.wp-block-heading {
        font-size: 19px;
      }

      .single-works .article__content .ipe-works--gutenberg
      h2.wp-block-heading.ipe-works-summary__title {
        font-size: 16px;
      }

      .single-works .article__content .ipe-works--gutenberg
      .ipe-works-summary__item h3.wp-block-heading {
        font-size: 16px;
      }

      .single-works .article__content .ipe-works--gutenberg
      h2.wp-block-heading.case-section-title {
        font-size: 23px;
      }

      .single-works .article__content .ipe-works--gutenberg
      h3.wp-block-heading.case-interview-topic {
        font-size: 20px;
      }

      :is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg) .wp-block-table th,
      :is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg) .wp-block-table td {
        padding: 10px 12px;
      }

      :is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg) .wp-block-button__link {
        font-size: 14px;
      }

      .ipe-works.ipe-works--gutenberg h2 {
        margin-top: 40px;
        font-size: 23px;
      }

      .ipe-works.ipe-works--gutenberg h3 {
        font-size: 19px;
      }

      .ipe-works.ipe-works--gutenberg .case-category-tag {
        margin-bottom: 28px;
      }

      .ipe-works.ipe-works--gutenberg .case-main-title {
        font-size: 17px;
      }

      .single-works .article__content .ipe-works--gutenberg .case-intro {
        margin-bottom: 32px;
        padding-bottom: 22px;
      }

      .single-works .article__content .ipe-works--gutenberg
      p.case-intro-title {
        font-size: 16px;
        line-height: 1.65;
      }

      .single-works .article__content .ipe-works--gutenberg
      p.case-lead-text {
        font-size: 14px;
        line-height: 1.8;
      }

      .single-works .article__content .ipe-works--gutenberg .ipe-works-summary__grid {
        padding: 0;
      }

      .single-works .article__content .ipe-works--gutenberg
      .ipe-works-summary__grid > .wp-block-group__inner-container {
        grid-template-columns: 1fr;
        padding: 18px;
      }

      .ipe-works.ipe-works--gutenberg .ipe-works-summary__item,
      .ipe-works.ipe-works--gutenberg .ipe-works-summary__item:first-child,
      .ipe-works.ipe-works--gutenberg .ipe-works-summary__item:last-child {
        padding: 18px 0;
        border-right: 0;
        border-bottom: 1px solid #dfe7e9;
      }

      .ipe-works.ipe-works--gutenberg .ipe-works-summary__item:first-child {
        padding-top: 0;
      }

      .ipe-works.ipe-works--gutenberg .ipe-works-summary__item:last-child {
        padding-bottom: 0;
        border-bottom: 0;
      }

      .ipe-works.ipe-works--gutenberg .case-client-info {
        padding: 16px;
      }

      .ipe-works.ipe-works--gutenberg .case-info-table,
      .ipe-works.ipe-works--gutenberg .case-info-table tbody,
      .ipe-works.ipe-works--gutenberg .case-info-table tr,
      .ipe-works.ipe-works--gutenberg .case-info-table th,
      .ipe-works.ipe-works--gutenberg .case-info-table td {
        display: block;
        width: 100%;
      }

      .ipe-works.ipe-works--gutenberg .case-info-table th {
        border-bottom: 0;
      }

      .ipe-works.ipe-works--gutenberg .case-info-table tr + tr {
        margin-top: 10px;
      }

      .ipe-works.ipe-works--gutenberg .case-result-metrics {
        grid-template-columns: 1fr;
      }

      .ipe-works.ipe-works--gutenberg .case-result-metrics > .wp-block-group__inner-container {
        grid-template-columns: 1fr;
      }

      .ipe-works.ipe-works--gutenberg .case-service a {
        width: 100%;
    }
  }

/* =========================================================
   v3 structure overrides: summary, dialogue, and client info
   ========================================================= */

:is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg) .ipe-works-summary {
  margin: 28px 0 52px;
  overflow: visible;
  border: 1px solid #d6e5ec;
  border-left: 4px solid #007bad;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.single-works .article__content .ipe-works--gutenberg
h2.wp-block-heading.ipe-works-summary__title {
  position: static;
  margin: 0 0 20px;
  padding: 12px 15px 12px 18px;
  border: 0;
  border-left: 6px solid #2aa0d0;
  background: #fff;
  color: #30373d;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: normal;
}

:is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg) .ipe-works-summary__sections {
  padding: 0 24px 24px;
}

:is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg)
.ipe-works-summary__sections > .wp-block-group__inner-container {
  padding: 0;
}

:is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg) .ipe-works-summary__section {
  min-width: 0;
  padding: 24px 0;
  border-right: 0;
  border-bottom: 1px solid #d6e5ec;
}

:is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg) .ipe-works-summary__section:first-child {
  padding-top: 0;
}

:is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg) .ipe-works-summary__section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

:is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg)
.ipe-works-summary__section > .wp-block-group__inner-container {
  display: block;
}

.single-works .article__content .ipe-works--gutenberg
h3.wp-block-heading.ipe-works-summary__section-title {
  position: static;
  margin: 0 0 14px;
  padding: 0 0 0 12px;
  border: 0;
  border-left: 4px solid #2aa0d0;
  background: transparent;
  color: #30373d;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: normal;
}

.single-works .article__content .ipe-works--gutenberg
h3.wp-block-heading.ipe-works-summary__section-title::before,
.single-works .article__content .ipe-works--gutenberg
h3.wp-block-heading.ipe-works-summary__section-title::after {
  display: none;
  content: none;
}

:is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg)
.ipe-works-summary__list {
  margin: 0 0 20px;
  padding-left: 1.4em;
  color: #333b42;
}

:is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg)
.ipe-works-summary__list > li {
  padding-left: 0;
  line-height: 1.8;
}

:is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg)
.ipe-works-summary__list > li + li {
  margin-top: 0;
}

.single-works .article__content .ipe-works--gutenberg
.ipe-works-summary__section.ipe-works-summary__item--highlight h3.wp-block-heading.ipe-works-summary__section-title {
  border-left-color: #007bad;
  border-bottom-color: transparent;
  color: #30373d;
}

:is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg)
.ipe-works-summary__section.ipe-works-summary__item--highlight .ipe-works-summary__list {
  color: #333b42;
  font-weight: 400;
}

:is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg) .case-interview-dialogue {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid #d6e5ec;
}

:is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg)
.case-interview-dialogue > .wp-block-group__inner-container {
  display: contents;
}

:is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg)
.case-interview-speaker {
  margin: 0;
  color: #00648f;
  font-weight: 700;
  line-height: 1.8;
}

:is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg)
.case-interview-speech {
  min-width: 0;
}

:is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg)
.case-interview-speech > .wp-block-group__inner-container {
  display: block;
}

:is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg)
.case-interview-speech-text {
  margin: 0 0 20px;
  color: #3c4c5c;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
}

:is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg)
.case-interview-speech-text:last-child {
  margin-bottom: 0;
}

:is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg)
.case-interview-speech .case-interview-question {
  color: #3c4c5c;
  font-weight: 400;
}

:is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg)
.case-client-info .case-info-table,
:is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg)
.case-client-info .case-info-table table {
  background: #f3f8fb;
}

:is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg)
.case-client-info .case-info-table th,
:is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg)
.case-client-info .case-info-table td {
  background: #f3f8fb;
}

:is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg)
.case-client-info .case-info-table th {
  background: #e8f2f6;
}

@media (max-width: 767px) {
  :is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg) .ipe-works-summary__sections {
    padding: 0 18px 18px;
  }

  .single-works .article__content .ipe-works--gutenberg
  h2.wp-block-heading.ipe-works-summary__title {
    font-size: 20px;
  }

  .single-works .article__content .ipe-works--gutenberg
  h3.wp-block-heading.ipe-works-summary__section-title {
    font-size: 16px;
  }

  :is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg) .case-interview-dialogue {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 16px 0;
  }

  :is(.ipe-works.ipe-works--gutenberg, .article__container .article__content .ipe-works.ipe-works--gutenberg)
  .case-interview-speaker {
    line-height: 1.6;
  }
}
