/*
 * StructureCraft journal refresh.
 * All rules are scoped to the new .sc-blog-refresh markup so the existing
 * blog templates can remain in place during rollout.
 */
.sc-blog-refresh {
  --scb-ink: #3d3d3d;
  --scb-muted: #606060;
  --scb-line: #dbdbdb;
  --scb-soft: #f3f3f3;
  --scb-white: #fff;
  --scb-dark: #121212;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  overflow: clip;
  background: var(--scb-white);
  color: var(--scb-ink);
  font-family: inherit;
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
}

.sc-blog-refresh,
.sc-blog-refresh * {
  box-sizing: border-box;
}

/* Override legacy blog typography and spacing without affecting site chrome. */
.sc-blog-refresh :where(h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ol, ul) {
  margin: 0;
}

.sc-blog-refresh :where(a, button) {
  color: inherit;
}

.sc-blog-refresh a {
  overflow-wrap: anywhere;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.sc-blog-refresh button {
  border-radius: 0;
  font: inherit;
}

.sc-blog-refresh :where(a, button):focus-visible {
  outline: 2px solid #45584b;
  outline-offset: 3px;
}

.sc-blog-refresh img {
  display: block;
  max-width: 100%;
}

.sc-blog-refresh .scb-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  padding: 40px 72px;
  background: var(--scb-white);
}

.sc-blog-refresh .scb-head h1 {
  max-width: 1100px;
  color: var(--scb-ink);
  font-size: 40px;
  font-weight: 300;
  line-height: 44px;
  overflow-wrap: anywhere;
}

.sc-blog-refresh .scb-breadcrumbs {
  color: var(--scb-muted);
  font-size: 13px;
  line-height: 18px;
}

.sc-blog-refresh .scb-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  padding: 0;
  list-style: none;
}

.sc-blog-refresh .scb-breadcrumbs li {
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
  min-width: 0;
}

.sc-blog-refresh .scb-breadcrumbs li + li::before {
  color: #8b8b8b;
  content: "/";
}

.sc-blog-refresh .scb-breadcrumbs a {
  text-decoration: none;
}

.sc-blog-refresh .scb-meta {
  color: var(--scb-muted);
  font-size: 16px;
  line-height: 22px;
}

.sc-blog-refresh .scb-meta time {
  white-space: nowrap;
}

.sc-blog-refresh .scb-hero {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  min-height: 0;
  margin: 0 0 16px;
  overflow: hidden;
  background: var(--scb-soft);
}

.sc-blog-refresh .scb-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.sc-blog-refresh .scb-info {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 48px;
  padding: 40px 72px;
  background: var(--scb-soft);
}

.sc-blog-refresh .scb-info:empty,
.sc-blog-refresh .scb-info:not(:has(.scb-info-item)),
.sc-blog-refresh .scb-info-item:empty {
  display: none;
}

.sc-blog-refresh .scb-info-item {
  min-width: 0;
  color: var(--scb-ink);
  font-size: 16px;
  line-height: 23px;
  overflow-wrap: anywhere;
}

.sc-blog-refresh .scb-info-item h2 {
  margin-bottom: 8px;
  color: var(--scb-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.sc-blog-refresh .scb-info-item :where(p, ul, ol) {
  padding: 0;
}

.sc-blog-refresh .scb-info-item :where(ul, ol) {
  list-style: none;
}

.sc-blog-refresh .scb-info-item a {
  display: inline;
}

.sc-blog-refresh .scb-info-item a + a::before {
  color: var(--scb-muted);
  content: ", ";
  text-decoration: none;
}

.sc-blog-refresh .scb-body {
  --scb-copy-gap: 24px;
  --scb-media-gap: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  width: 100%;
  padding: 72px;
  color: var(--scb-ink);
  font-size: 18px;
  line-height: 28px;
}

.sc-blog-refresh.scb-article .scb-body {
  float: none;
  max-width: none;
  margin: 0;
}

.sc-blog-refresh .scb-body :where(p, ul, ol) {
  max-width: 840px;
}

.sc-blog-refresh .scb-body :where(p, li) {
  font-size: inherit;
  line-height: inherit;
}

.sc-blog-refresh .scb-body > * {
  width: min(100%, 840px);
  min-width: 0;
  margin: 0;
}

.sc-blog-refresh .scb-body > :where(figure, img, video, iframe, table) {
  width: 100%;
  max-width: 100%;
}

/* Media and prose are separate blocks, including legacy mixed paragraphs. */
.sc-blog-refresh .scb-body > * + *,
.sc-blog-refresh .scb-body :where(blockquote, td, li, div) > * + * {
  margin-top: var(--scb-copy-gap);
}

.sc-blog-refresh .scb-body > * + :where(figure, img, video, iframe),
.sc-blog-refresh .scb-body > :where(figure, img, video, iframe) + *,
.sc-blog-refresh .scb-body :where(blockquote, td, li, div) > * + :where(figure, img, video, iframe),
.sc-blog-refresh .scb-body :where(blockquote, td, li, div) > :where(figure, img, video, iframe) + * {
  margin-top: var(--scb-media-gap);
}

.sc-blog-refresh .scb-body > :where(h2, h3, h4, h5, h6) {
  font-weight: 400;
}

.sc-blog-refresh .scb-body > * + :where(h2, h3, h4, h5, h6) {
  margin-top: 36px;
}

.sc-blog-refresh .scb-body > :where(h2, h3, h4, h5, h6) + :not(figure) {
  margin-top: 14px;
}

.sc-blog-refresh .scb-body > h2 {
  font-size: 32px;
  line-height: 40px;
}

.sc-blog-refresh .scb-body > h3 {
  font-size: 26px;
  line-height: 34px;
}

.sc-blog-refresh .scb-body > :where(h4, h5, h6) {
  font-size: 21px;
  line-height: 28px;
}

.sc-blog-refresh .scb-body :where(p:empty) {
  display: none;
}

.sc-blog-refresh .scb-body :where(ul, ol) {
  padding-left: 1.25em;
}

.sc-blog-refresh .scb-body li + li {
  margin-top: 6px;
}

.sc-blog-refresh .scb-body blockquote {
  padding: 12px 34px 8px;
  font-size: 26px;
  line-height: 34px;
}

.sc-blog-refresh .scb-body blockquote cite {
  display: block;
  margin-top: 16px;
  color: var(--scb-ink);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .09em;
  line-height: 18px;
  text-transform: uppercase;
}

.sc-blog-refresh .scb-body figure {
  min-width: 0;
  padding: 0;
  float: none;
  clear: both;
}

.sc-blog-refresh .scb-body figure img,
.sc-blog-refresh .scb-body figure video {
  width: 100%;
  height: auto;
}

.sc-blog-refresh .scb-body img {
  height: auto;
  float: none;
  margin: 0;
}

.sc-blog-refresh .scb-body figcaption {
  max-width: 840px;
  margin-top: 10px;
  color: var(--scb-muted);
  font-size: 14px;
  line-height: 20px;
}

.sc-blog-refresh .scb-body a:has(> img),
.sc-blog-refresh .scb-body a:has(> picture) {
  display: block;
}

.sc-blog-refresh .scb-body :where(video, iframe) {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: var(--scb-dark);
}

.sc-blog-refresh .scb-body video {
  height: auto;
}

.sc-blog-refresh .scb-body iframe {
  height: auto;
}

.sc-blog-refresh .scb-body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  -webkit-overflow-scrolling: touch;
}

.sc-blog-refresh .scb-body :where(th, td) {
  min-width: 120px;
  padding: 10px 12px;
  border: 1px solid var(--scb-line);
  text-align: left;
  vertical-align: top;
}

.sc-blog-refresh .scb-body th {
  background: var(--scb-soft);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.sc-blog-refresh .scb-body pre {
  max-width: 100%;
  padding: 18px;
  overflow: auto;
  background: var(--scb-soft);
  font-size: 14px;
  line-height: 21px;
  white-space: pre;
}

.sc-blog-refresh .scb-gallery,
.sc-blog-refresh .scb-recommendations {
  padding: 72px;
}

.sc-blog-refresh .scb-gallery > h2,
.sc-blog-refresh .scb-section-head h2 {
  font-size: 32px;
  font-weight: 400;
  line-height: 40px;
}

.sc-blog-refresh .scb-gallery > h2 {
  margin-bottom: 24px;
}

.sc-blog-refresh .scb-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.sc-blog-refresh .scb-gallery-grid figure {
  min-width: 0;
}

.sc-blog-refresh .scb-gallery-link {
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--scb-soft);
  cursor: zoom-in;
}

.sc-blog-refresh .scb-gallery-grid :where(.scb-gallery-link > img, figure > img, figure > video, figure > iframe) {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  object-fit: cover;
  background: var(--scb-soft);
}

.sc-blog-refresh .scb-gallery-grid figure > iframe {
  aspect-ratio: 16 / 9;
  background: var(--scb-dark);
}

.sc-blog-refresh .scb-gallery-grid figure > video {
  height: auto;
  background: var(--scb-dark);
}

.sc-blog-refresh .scb-gallery-grid figcaption {
  margin-top: 10px;
  color: var(--scb-muted);
  font-size: 14px;
  line-height: 20px;
}

.sc-blog-refresh .scb-recommendations {
  background: var(--scb-soft);
}

.sc-blog-refresh .scb-section-head {
  display: flex;
  gap: 24px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}

.sc-blog-refresh .scb-section-head > a {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
}

.sc-blog-refresh .scb-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 24px;
}

.sc-blog-refresh .scb-card {
  min-width: 0;
}

.sc-blog-refresh .scb-card > a {
  display: block;
  min-width: 0;
  text-decoration: none;
}

.sc-blog-refresh .scb-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 16px;
  overflow: hidden;
  background: #e9e9e6;
}

.sc-blog-refresh .scb-card-image:empty {
  display: none;
}

.sc-blog-refresh .scb-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.sc-blog-refresh .scb-card > a:hover .scb-card-image img,
.sc-blog-refresh .scb-card > a:focus-visible .scb-card-image img {
  transform: scale(1.015);
}

.sc-blog-refresh .scb-card time,
.sc-blog-refresh .scb-card-type {
  display: block;
  margin-bottom: 6px;
  color: var(--scb-muted);
  font-size: 14px;
  line-height: 20px;
}

.sc-blog-refresh .scb-card h3 {
  margin-bottom: 8px;
  font-size: 21px;
  font-weight: 600;
  line-height: 26px;
  overflow-wrap: anywhere;
}

.sc-blog-refresh .scb-card p {
  color: var(--scb-muted);
  font-size: 16px;
  line-height: 23px;
}

.sc-blog-refresh .scb-list {
  padding: 32px 72px 72px;
}

.sc-blog-refresh .scb-empty {
  padding-block: 32px;
}

.sc-blog-refresh .scb-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--scb-line);
}

.sc-blog-refresh .scb-pagination > :where(a, span) {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: auto;
  min-width: 42px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--scb-line);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
}

.sc-blog-refresh .scb-pagination > :where([aria-current="page"], .current) {
  border-color: var(--scb-ink);
  background: var(--scb-ink);
  color: var(--scb-white);
}

.sc-blog-refresh .scb-arrow {
  display: inline-block;
  font-size: clamp(10px, .6em, 12px);
  font-weight: 400;
  line-height: 1;
  vertical-align: .04em;
}

.sc-blog-refresh .scb-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 24px;
  overflow: hidden;
  border: 0;
  background: var(--scb-dark);
  color: var(--scb-white);
}

.sc-blog-refresh .scb-lightbox:not([open]) {
  display: none;
}

.sc-blog-refresh .scb-lightbox[open] {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.sc-blog-refresh .scb-lightbox::backdrop {
  background: rgb(18 18 18 / 96%);
}

.sc-blog-refresh .scb-lightbox-close {
  grid-row: 1;
  justify-self: end;
  min-width: 88px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid rgb(255 255 255 / 45%);
  background: transparent;
  color: var(--scb-white);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  line-height: 42px;
  white-space: nowrap;
}

.sc-blog-refresh .scb-lightbox > img {
  grid-row: 2;
  align-self: center;
  justify-self: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
}

.sc-blog-refresh .scb-lightbox-caption {
  grid-row: 3;
  max-height: 60px;
  margin: 0;
  overflow: auto;
  color: rgb(255 255 255 / 80%);
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}

.sc-blog-refresh .scb-lightbox :where(button, [href], [tabindex]):focus-visible {
  outline: 3px solid var(--scb-white);
  outline-offset: 3px;
}

@media (max-width: 1040px) {
  .sc-blog-refresh .scb-head,
  .sc-blog-refresh .scb-info,
  .sc-blog-refresh .scb-body,
  .sc-blog-refresh .scb-gallery,
  .sc-blog-refresh .scb-recommendations {
    padding-right: 40px;
    padding-left: 40px;
  }


  .sc-blog-refresh .scb-head {
    padding-top: 32px;
    padding-bottom: 32px;
    gap: 18px;
  }

  .sc-blog-refresh .scb-head h1 {
    font-size: 34px;
    line-height: 38px;
  }

  .sc-blog-refresh .scb-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sc-blog-refresh .scb-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sc-blog-refresh .scb-list {
    padding: 32px 40px 64px;
  }
}

@media (max-width: 700px) {
  .sc-blog-refresh {
    overflow: visible;
  }

  .sc-blog-refresh .scb-head,
  .sc-blog-refresh .scb-info,
  .sc-blog-refresh .scb-body,
  .sc-blog-refresh .scb-gallery,
  .sc-blog-refresh .scb-recommendations {
    padding-right: 24px;
    padding-left: 24px;
  }

  .sc-blog-refresh .scb-head {
    gap: 16px;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .sc-blog-refresh .scb-head h1 {
    font-size: 28px;
    line-height: 31px;
  }

  .sc-blog-refresh .scb-breadcrumbs {
    font-size: 12px;
    line-height: 16px;
  }

  .sc-blog-refresh .scb-meta {
    font-size: 14px;
    line-height: 20px;
  }


  .sc-blog-refresh .scb-info {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .sc-blog-refresh .scb-body,
  .sc-blog-refresh .scb-gallery,
  .sc-blog-refresh .scb-recommendations {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .sc-blog-refresh .scb-body {
    font-size: 16px;
    line-height: 25px;
  }

  .sc-blog-refresh .scb-body > h2,
  .sc-blog-refresh .scb-gallery > h2,
  .sc-blog-refresh .scb-section-head h2 {
    font-size: 28px;
    line-height: 35px;
  }

  .sc-blog-refresh .scb-body > h3 {
    font-size: 24px;
    line-height: 31px;
  }

  .sc-blog-refresh .scb-body blockquote {
    padding-right: 20px;
    padding-left: 20px;
    font-size: 22px;
    line-height: 30px;
  }

  .sc-blog-refresh .scb-gallery-grid,
  .sc-blog-refresh .scb-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .sc-blog-refresh .scb-section-head {
    align-items: flex-end;
  }

  .sc-blog-refresh .scb-list {
    padding: 24px 24px 52px;
  }

  .sc-blog-refresh .scb-pagination {
    margin-top: 40px;
    padding-top: 24px;
  }

  .sc-blog-refresh .scb-lightbox {
    padding: 16px;
  }

  .sc-blog-refresh .scb-lightbox-caption {
    max-height: 40px;
  }
}

@media (max-width: 360px) {
  .sc-blog-refresh .scb-head h1 {
    font-size: 26px;
    line-height: 29px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .sc-blog-refresh *,
  .sc-blog-refresh *::before,
  .sc-blog-refresh *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

.sc-blog-refresh .scb-author-image img {width:64px;height:64px;object-fit:cover;border-radius:50%;margin-bottom:12px;}

.sc-blog-refresh .scb-info-item .scb-author-link {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Preserve the full headshot within the same landscape recommendation card. */
.sc-blog-refresh .scb-card[data-content-type="team"] .scb-card-image img {
  object-fit: contain;
  object-position: center;
}
