/**
 * Blog article pages — editorial layout, sticky sidebar, tabs, TOC.
 * Uses existing site tokens only; structure/layout focused changes.
 */

:root {
  --blog-sticky-top: 104px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.blog-article-page.what_we_do_page.blogs .blog-article-shell {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.25rem 3rem;
}

body.blog-article-page.what_we_do_page.blogs main.content.blog-article {
  margin-top: 100px;
  width: 100%;
  max-width: none;
  padding-bottom: 2rem;
}

@media screen and (max-width: 833px) {
  body.blog-article-page.what_we_do_page.blogs main.content.blog-article {
    margin-top: 35px;
  }
}

/* Override legacy inline blog image rules */
body.blog-article-page.what_we_do_page.blogs .blog-article__prose img,
body.blog-article-page.what_we_do_page.blogs .blog-hero__figure img {
  width: 100%;
  height: auto;
  max-height: none;
  margin: 0;
}

body.blog-article-page.what_we_do_page.blogs .blog-article__prose p {
  text-align: left;
}

/* ── Sticky scope: hero + main + sidebar (ends before footer) ── */
.blog-article-sticky-scope {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    'hero-title'
    'hero-meta'
    'hero-media'
    'sidebar'
    'main';
  gap: 0;
  background-color: color-mix(in srgb, var(--light-blue, #59b6b6) 9%, #fff);
  border-radius: 12px;
  padding: 1.5rem 1.25rem 1.75rem;
  margin-bottom: 1.75rem;
}

.blog-hero-title-block {
  grid-area: hero-title;
}

.blog-hero-meta-block {
  grid-area: hero-meta;
}

.blog-hero-media-block {
  grid-area: hero-media;
}

.blog-article-primary {
  grid-area: main;
  min-width: 0;
}

.blog-article-sidebar-column {
  grid-area: sidebar;
  min-width: 0;
}

@media (min-width: 1100px) {
  .blog-article-sticky-scope {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    grid-template-areas:
      'hero-title hero-title'
      'hero-meta sidebar'
      'hero-media sidebar'
      'main sidebar';
    column-gap: 2rem;
    row-gap: 0;
    align-items: start;
    padding: 1.75rem 1.75rem 2rem;
  }

  .blog-hero-title-block {
    grid-column: 1 / -1;
  }

  .blog-hero-meta-block,
  .blog-hero-media-block {
    min-width: 0;
  }

  .blog-article-sidebar-column {
    grid-row: 2 / -1;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    margin-top: 0;
  }
}

/* Sidebar form host (JS positions card like Scooplabs on desktop) */
.blog-sidebar-sticky-host {
  width: 100%;
  max-width: none;
  flex-shrink: 0;
  position: relative;
  box-sizing: border-box;
}

.blog-sidebar-sticky-inner {
  width: 100%;
}

@media (min-width: 1100px) {
  .blog-sidebar-sticky-host .blog-contact-card {
    width: 100%;
    box-sizing: border-box;
  }

  .blog-hero-title-block .blog-hero__breadcrumbs {
    margin-bottom: 1.5rem;
  }

  .blog-hero-title-block .blog-hero__title {
    font-size: clamp(2.125rem, 3.75vw, 3.35rem);
    line-height: 1.12;
    margin-bottom: 1.35rem;
    padding-right: 0;
  }

  .blog-hero-title-block .blog-hero__rule {
    margin-bottom: 1.35rem;
  }

  .blog-hero-meta-block .blog-hero__meta-row {
    margin-top: 0;
    margin-bottom: 1.75rem;
    padding-top: 1.65rem;
    min-height: 2.35rem;
    align-items: center;
  }

  .blog-hero-media-block .blog-hero__figure {
    margin-bottom: 1rem;
  }
}

/* ── Editorial hero (Scooplabs-style: full-width title, form aligns at meta row) ── */
.blog-hero-editorial {
  padding: 0;
  margin-bottom: 0;
}

.blog-hero-title-block .blog-hero__title {
  margin-bottom: 1rem;
}

.blog-hero-title-block .blog-hero__rule {
  width: 100%;
}

.blog-hero-meta-block .blog-hero__meta-row {
  margin-bottom: 1.25rem;
}

.blog-hero-media-block .blog-hero__figure {
  margin-bottom: 0.5rem;
}

.blog-hero__breadcrumbs {
  font-size: 0.8125rem;
  color: #828282;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.blog-hero__breadcrumbs a {
  color: #828282;
  text-decoration: none;
}

.blog-hero__breadcrumbs a:hover,
.blog-hero__breadcrumbs a:focus-visible {
  color: #262626;
  text-decoration: underline;
}

.blog-hero__bc-sep {
  margin: 0 0.35rem;
  color: #b0b0b0;
}

.blog-hero__bc-current {
  color: #4d4d4d;
}

.blog-hero__title {
  font-size: clamp(1.875rem, 4.2vw, 3.125rem);
  font-weight: 700;
  line-height: 1.14;
  color: var(--blue, #105b6e);
  margin: 0 0 1.15rem;
  letter-spacing: -0.025em;
  max-width: none;
  width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.blog-hero__rule {
  height: 1px;
  background: #e0e0e0;
  margin: 0 0 1.25rem;
  border: 0;
  width: 100%;
  display: block;
}

.blog-hero__meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.75rem;
}

.blog-hero__meta-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.blog-hero__meta-line {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #4d4d4d;
  margin: 0;
}

.blog-hero__meta-line time {
  font-weight: inherit;
  color: inherit;
}

.blog-hero__tags {
  margin-bottom: 0;
}

.blog-article__tag {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #4d4d4d;
  background: #f0f0f0;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
}

.blog-hero__share {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}

.blog-hero-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  min-width: 2.35rem;
  min-height: 2.35rem;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  flex: 0 0 2.35rem;
  border-radius: 50%;
  border: none;
  background: color-mix(in srgb, var(--blue, #105b6e) 82%, #3d7a8a);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1;
  vertical-align: middle;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

button.blog-hero-share__btn {
  font-family: inherit;
  font-weight: inherit;
  letter-spacing: normal;
  text-transform: none;
  text-align: center;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
}

button.blog-hero-share__btn::before {
  display: none !important;
}

.blog-hero-share__btn i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.875rem;
  height: 0.875rem;
  font-size: 0.875rem;
  line-height: 1;
  pointer-events: none;
}

.blog-hero-share__btn:hover,
.blog-hero-share__btn:focus-visible {
  opacity: 0.88;
  transform: translateY(-1px);
}

.blog-hero-share__btn:focus-visible {
  outline: 2px solid #262626;
  outline-offset: 2px;
}

.blog-hero__figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 4px 24px rgba(16, 91, 110, 0.08);
}

.blog-hero__figure img {
  width: 100%;
  height: auto;
  max-height: min(52vh, 440px);
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

/* Mobile: hero → article (no sidebar form); no sticky */
@media (max-width: 1099px) {
  .blog-article-sticky-scope {
    padding: 1.25rem 1rem 1.5rem;
    margin-left: 0;
    margin-right: 0;
    border-radius: 10px;
  }

  /* Mobile only: hide enquiry form / sidebar completely */
  .blog-article-sidebar-column {
    display: none !important;
  }

  /* Mobile only: hide Overview tab (article content unchanged) */
  .blog-article-tabs__btn[data-target='blog-section-overview'] {
    display: none !important;
  }

  /* When Overview is active but hidden, show active state on On This Page */
  .blog-article-tabs__btn[data-target='blog-section-overview'].is-active
    + .blog-article-tabs__btn {
    color: #262626;
    background: #f0f0f0;
  }

  .blog-sidebar-sticky-host {
    max-width: none;
  }

  .blog-sidebar-sticky-host .blog-contact-card {
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    min-height: 0;
  }

  .blog-sidebar-sticky-inner {
    position: static;
  }

  .blog-hero__title {
    max-width: none;
    font-size: clamp(1.75rem, 5vw, 2.35rem);
    line-height: 1.18;
  }

  .blog-hero-title-block .blog-hero__rule {
    margin-bottom: 1.15rem;
  }

  .blog-hero__share {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

/* Tablet: full-width hero, stacked form */
@media (min-width: 768px) and (max-width: 1099px) {
  .blog-hero__title {
    font-size: clamp(1.875rem, 4.5vw, 2.75rem);
    line-height: 1.14;
  }

  .blog-hero__breadcrumbs {
    margin-bottom: 1.25rem;
  }
}

/* ── Article nav tabs ── */
.blog-article-primary {
  background: transparent;
}

.blog-article-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 0;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid #e8e8e8;
}

.blog-article-tabs__btn {
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: #4d4d4d;
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.blog-article-tabs__btn:hover,
.blog-article-tabs__btn:focus-visible {
  color: #262626;
  background: #f5f5f5;
}

.blog-article-tabs__btn.is-active {
  color: #262626;
  background: #f0f0f0;
}

.blog-article-tabs__btn:focus-visible {
  outline: 2px solid #262626;
  outline-offset: 2px;
}

.blog-section-anchor {
  scroll-margin-top: var(--blog-sticky-top);
  height: 0;
  overflow: hidden;
}

/* ── Content + TOC layout ── */
.blog-article-content {
  scroll-margin-top: var(--blog-sticky-top);
}

.blog-article__layout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.blog-article__prose {
  order: 1;
  min-width: 0;
}

.blog-article__toc {
  order: 2;
}

@media (min-width: 1100px) {
  .blog-article__layout {
    display: grid;
    grid-template-columns: minmax(190px, 220px) minmax(0, 1fr);
    grid-template-areas: 'toc prose';
    gap: 1.5rem 2rem;
    align-items: start;
  }

  .blog-article__prose {
    grid-area: prose;
    order: unset;
  }

  .blog-article__toc {
    grid-area: toc;
    order: unset;
    align-self: start;
    max-height: calc(100vh - var(--blog-sticky-top) - 1.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .blog-toc-sticky-host {
    position: relative;
    width: 100%;
    min-width: 0;
  }
}

/* ── TOC ── */
.blog-article__toc {
  padding: 1rem 1rem 1.1rem;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  background: #fff;
}

.blog-article__toc-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #262626;
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}

.blog-article__toc nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-article__toc nav li {
  margin: 0;
}

.blog-toc__item--h1 a {
  font-weight: 600;
  color: #262626;
}

.blog-toc__item--h2 {
  padding-left: 0.5rem;
}

.blog-toc__item--h3 {
  padding-left: 0.85rem;
}

.blog-toc__item--h4 {
  padding-left: 1.2rem;
}

.blog-toc__item--h5 {
  padding-left: 1.55rem;
}

.blog-article__toc nav a {
  font-size: 0.8125rem;
  color: #4d4d4d;
  text-decoration: none;
  line-height: 1.4;
  display: block;
  padding: 0.35rem 0.4rem 0.35rem 0.65rem;
  margin: 0.05rem 0;
  border-left: 2px solid transparent;
  border-radius: 0 4px 4px 0;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  word-break: break-word;
}

.blog-article__toc nav a:hover {
  color: #262626;
  background: rgba(38, 38, 38, 0.04);
}

.blog-article__toc nav a.is-active,
.blog-article__toc nav a[aria-current='true'] {
  color: #262626;
  font-weight: 600;
  border-left-color: #105b6e;
  background: rgba(16, 91, 110, 0.06);
}

.blog-article__toc nav a:focus-visible {
  outline: 2px solid #262626;
  outline-offset: 1px;
}

.blog-article__toc[hidden],
.blog-article__toc.is-empty {
  display: none !important;
}

/* ── Prose ── */
.blog-article__prose p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #262626;
  margin-bottom: 1rem;
}

.blog-article__prose h1,
.blog-article__prose h2,
.blog-article__prose h3,
.blog-article__prose h4,
.blog-article__prose h5 {
  font-family: 'Montserrat', sans-serif;
  color: #262626;
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
  line-height: 1.3;
  scroll-margin-top: calc(var(--blog-sticky-top) + 1rem);
}

.blog-article__prose h1 {
  font-size: 1.65rem;
  font-weight: 700;
}

.blog-article__prose h2 {
  font-size: 1.4rem;
  font-weight: 700;
}

.blog-article__prose h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.blog-article__prose h4 {
  font-size: 1.1rem;
  font-weight: 700;
}

.blog-article__prose h5 {
  font-size: 1rem;
  font-weight: 600;
}

.blog-article__prose ul {
  margin: 0 0 1.1rem 1.25rem;
  padding: 0;
  list-style: disc;
}

.blog-article__prose ul li {
  font-size: 1.0625rem;
  line-height: 1.65;
  margin-bottom: 0.35rem;
}

.blog-article__prose img {
  margin: 1.25rem 0;
  border-radius: 8px;
}

/* ── Sidebar form (ScoopLabs-style card + underline fields) ── */
.blog-article__sidebar .contact-right,
.blog-sidebar-sticky-inner .contact-right {
  padding: 1.65rem 1.5rem 1.85rem;
  margin: 0;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(16, 91, 110, 0.06);
  box-shadow: 0 8px 28px rgba(16, 91, 110, 0.1);
  contain: layout style paint;
}

.blog-sidebar__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--blue, #105b6e);
  margin: 0 0 1.5rem;
  line-height: 1.25;
}

.blog-sidebar-form .frm_field {
  margin-bottom: 1.35rem;
}

.blog-sidebar-form input[type='text'],
.blog-sidebar-form input[type='email'],
.blog-sidebar-form input[type='tel'],
.blog-sidebar-form textarea {
  border: none !important;
  border-bottom: 1px solid rgba(94, 103, 131, 0.35) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0.65rem 0 0.75rem !important;
  background: transparent !important;
  font-size: 0.9375rem !important;
}

.blog-sidebar-form input::placeholder,
.blog-sidebar-form textarea::placeholder {
  color: #9a9a9a;
  font-weight: 400;
}

.blog-sidebar-form input:focus,
.blog-sidebar-form textarea:focus {
  border-bottom-color: var(--blue, #105b6e) !important;
  outline: none !important;
}

.blog-sidebar-form textarea {
  min-height: 4.5rem;
  resize: vertical;
}

.blog-sidebar-form button[type='submit'] {
  width: auto;
  min-width: 7rem;
  margin-top: 0.25rem;
  padding: 0.85rem 1.75rem !important;
  font-size: 0.8125rem !important;
}

.blog-sidebar-form .frm_field.agree-terms {
  margin-bottom: 1rem;
  margin-top: 0.25rem;
}

.blog-sidebar-form .frm_field.agree-terms span {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
}

.blog-sidebar-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.blog-sidebar-phone {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  border: none;
  border-bottom: 1px solid rgba(94, 103, 131, 0.35);
  padding-bottom: 0.1rem;
  background: transparent;
}

.blog-sidebar-phone__select {
  flex: 0 0 auto;
  border: none !important;
  border-bottom: none !important;
  background: transparent !important;
  padding: 0.65rem 0.35rem 0.75rem 0 !important;
  font-size: 0.875rem !important;
  font-weight: 600;
  color: #4d4d4d;
  cursor: pointer;
  max-width: 4.5rem;
  appearance: auto;
}

.blog-sidebar-phone__select:focus {
  outline: none !important;
}

.blog-sidebar-phone input {
  flex: 1;
  min-width: 0;
  border: none !important;
  border-bottom: none !important;
  padding-left: 0 !important;
}

.blog-sidebar-form .frm_field.agree-terms input[type='checkbox'] {
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.blog-sidebar-form .error {
  display: block;
  font-size: 0.8125rem;
  margin-top: 0.35rem;
}

/* ── Prev / next, related, share panel ── */
.blog-article-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 2.5rem 0 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e8e8e8;
}

@media (min-width: 600px) {
  .blog-article-nav {
    grid-template-columns: 1fr 1fr;
  }
}

.blog-article-nav a {
  display: block;
  padding: 1rem 1.1rem;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  text-decoration: none;
  color: #262626;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-article-nav a:hover,
.blog-article-nav a:focus-visible {
  border-color: #cfcfcf;
  box-shadow: 0 4px 14px rgba(38, 38, 38, 0.06);
}

.blog-article-nav__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #828282;
  margin-bottom: 0.35rem;
}

.blog-article-nav__title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
}

.blog-article-nav a[hidden] {
  display: none !important;
}

.blog-related {
  margin: 2.5rem 0 0;
  padding: 2rem 1.25rem 2.25rem;
  scroll-margin-top: var(--blog-sticky-top);
}

.blog-related--carousel {
  background: #e8f6f8;
  border-top: none;
  border-radius: 12px;
  margin-left: 0;
  margin-right: 0;
}

.blog-related__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.blog-related__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e4d6b;
  margin: 0;
  letter-spacing: -0.02em;
}

.blog-related__nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.blog-related__arrow {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid #7ec8d4;
  border-radius: 50%;
  background: #fff;
  color: #1e4d6b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.blog-related__arrow:hover:not(:disabled) {
  background: #dff0f3;
  border-color: #4ab8c4;
}

.blog-related__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.blog-related-carousel {
  overflow: hidden;
  margin: 0 -0.25rem;
}

.blog-related__track,
.blog-related__grid {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0.25rem 0.5rem;
  display: flex;
  flex-wrap: nowrap;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #7ec8d4 transparent;
}

.blog-related__track::-webkit-scrollbar {
  height: 6px;
}

.blog-related__track::-webkit-scrollbar-thumb {
  background: #7ec8d4;
  border-radius: 3px;
}

.blog-related__card {
  flex: 0 0 17.5rem;
  max-width: 17.5rem;
  scroll-snap-align: start;
}

.blog-related__card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(30, 77, 107, 0.1);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-related__card > a:hover {
  box-shadow: 0 8px 24px rgba(30, 77, 107, 0.16);
  transform: translateY(-2px);
}

.blog-related__thumb {
  aspect-ratio: 16 / 10;
  background: #f0f4f6;
  overflow: hidden;
}

.blog-related__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  display: block;
}

.blog-related__meta {
  padding: 0.85rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.blog-related__date {
  font-size: 0.8125rem;
  color: #6b7c86;
  font-weight: 400;
}

.blog-related__card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  color: #1e4d6b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-related__empty {
  flex: 1 1 100%;
  text-align: center;
  color: #6b7c86;
  font-size: 0.9375rem;
  padding: 2rem 1rem;
  margin: 0;
}

.blog-related.is-loading .blog-related__track {
  min-height: 12rem;
  opacity: 0.5;
}

@media (min-width: 768px) {
  .blog-related--carousel {
    padding: 2.25rem 1.75rem 2.5rem;
  }

  .blog-related__card {
    flex: 0 0 19rem;
    max-width: 19rem;
  }
}

.blog-section-share-panel {
  margin: 2rem 0 3rem;
  padding: 1.5rem 1.25rem;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  background: #fafafa;
  scroll-margin-top: var(--blog-sticky-top);
  text-align: left;
}

/* Match hero meta-row share icons exactly (override legacy .blog-share a i rules in articles) */
.blog-section-share-panel .blog-hero__share {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-top: 0.75rem;
  width: auto;
}

.blog-section-share-panel .blog-related__title {
  margin: 0 0 0;
}

.blog-section-share-panel .blog-hero-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  min-width: 2.35rem;
  min-height: 2.35rem;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  flex: 0 0 2.35rem;
  border-radius: 50%;
  border: none;
  background: color-mix(in srgb, var(--blue, #105b6e) 82%, #3d7a8a);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1;
  vertical-align: middle;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.blog-section-share-panel button.blog-hero-share__btn {
  font-family: inherit;
  font-weight: inherit;
  letter-spacing: normal;
  text-transform: none;
  text-align: center;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
}

.blog-section-share-panel button.blog-hero-share__btn::before {
  display: none !important;
}

.blog-section-share-panel .blog-hero-share__btn i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.875rem;
  height: 0.875rem;
  font-size: 0.875rem;
  line-height: 1;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.blog-section-share-panel .blog-hero-share__btn:hover,
.blog-section-share-panel .blog-hero-share__btn:focus-visible {
  opacity: 0.88;
  transform: translateY(-1px);
}

.blog-section-share-panel .blog-hero-share__btn:focus-visible {
  outline: 2px solid #262626;
  outline-offset: 2px;
}

/* Hide legacy hero block remnants */
.blog-article__hero:not(.blog-hero-editorial) {
  display: none;
}

/* Mobile: stop content cut-off (beats legacy inline .blogs .content { width: 80% }) */
@media (max-width: 833px) {
  body.blog-article-page.what_we_do_page.blogs main.content.blog-article {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: block !important;
    box-sizing: border-box;
  }

  body.blog-article-page.what_we_do_page.blogs .blog-article-shell {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  body.blog-article-page.what_we_do_page.blogs .blog-article-sticky-scope,
  body.blog-article-page.what_we_do_page.blogs .blog-article-primary,
  body.blog-article-page.what_we_do_page.blogs .blog-article-content,
  body.blog-article-page.what_we_do_page.blogs .blog-article__layout,
  body.blog-article-page.what_we_do_page.blogs .blog-article__prose {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  body.blog-article-page.what_we_do_page.blogs .blog-article__prose p,
  body.blog-article-page.what_we_do_page.blogs .blog-article__prose h1,
  body.blog-article-page.what_we_do_page.blogs .blog-article__prose h2,
  body.blog-article-page.what_we_do_page.blogs .blog-article__prose h3,
  body.blog-article-page.what_we_do_page.blogs .blog-article__prose h4,
  body.blog-article-page.what_we_do_page.blogs .blog-article__prose h5,
  body.blog-article-page.what_we_do_page.blogs .blog-article__prose li {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  body.blog-article-page.what_we_do_page.blogs .blog-article__prose img,
  body.blog-article-page.what_we_do_page.blogs .blog-article__prose table,
  body.blog-article-page.what_we_do_page.blogs .blog-article__prose pre,
  body.blog-article-page.what_we_do_page.blogs .blog-article__prose iframe {
    max-width: 100%;
  }
}
