:root {
  --soab-paper: #f8f6f0;
  --soab-white: #fff;
  --soab-evergreen: #33534e;
  --soab-evergreen-deep: #1f2f2c;
  --soab-rust: #8b4a3d;
  --soab-muted: #5f625f;
  --soab-rule: rgba(51, 83, 78, 0.18);
  --soab-ad-bg: #f1eee5;
  --soab-header-offset: 148px;
}

/* Keep Privacy Policy section links clear of the persistent ad rail. */
body.page-id-3 :is(
  #who-we-are,
  #information-we-collect,
  #cookies-advertising,
  #how-we-share,
  #retention-security,
  #children,
  #privacy-choices,
  #other-websites,
  #changes,
  #contact
) {
  scroll-margin-top: 112px;
}

.soab-editorial-article {
  background: var(--soab-white);
  color: var(--soab-evergreen-deep);
  font-family: "Source Sans Pro", Arial, sans-serif;
  padding: clamp(1.5rem, 3vw, 3rem) 0 clamp(2rem, 4vw, 4rem);
}

.soab-article-header,
.soab-reading-grid,
.soab-mobile-utilities {
  margin-inline: auto;
  width: min(90%, 1160px);
}

.soab-article-header {
  border-bottom: 1px solid var(--soab-rule);
  margin-bottom: clamp(2.75rem, 5vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.soab-article-context,
.soab-article-meta {
  align-items: center;
  color: var(--soab-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.84rem;
  font-weight: 700;
  gap: 0.65rem 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.soab-article-context {
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

/* A disclosure label, not a category link or interactive control. */
.soab-article-header .soab-sponsored-label {
  margin: 0 0 0.75rem;
}

.soab-article-header .soab-sponsored-badge {
  display: inline-block;
  max-width: 100%;
  padding: 3px 8px;
  border: 1px solid #33534e;
  border-radius: 3px;
  background: linear-gradient(180deg, #496c65, #24453f);
  color: #fff;
  font-family: "Source Sans Pro", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.soab-article-context a,
.soab-article-meta a,
.soab-article-meta .soab-share-link {
  color: var(--soab-rust);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.soab-article-header h1 {
  color: var(--soab-evergreen);
  font-family: "Source Serif Pro", Georgia, serif;
  font-size: clamp(2.35rem, 5vw, 4.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.01;
  margin: 0;
  max-width: 980px;
}

.soab-article-dek {
  color: #39413f;
  font-size: clamp(1.15rem, 2vw, 1.38rem);
  line-height: 1.55;
  margin: 1.5rem 0 0;
  max-width: 780px;
}

.soab-article-meta {
  font-size: 0.75rem;
  margin-top: 1.6rem;
}

.et_pb_blog .post-meta {
  font-size: 0.75rem !important;
}

.soab-article-meta .soab-share-link {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 2px solid var(--soab-evergreen);
  border-radius: 999px;
  color: var(--soab-evergreen);
  cursor: pointer;
  display: inline-flex;
  font-family: "Source Sans Pro", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  gap: 0.7rem;
  justify-content: center;
  line-height: 1;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

body:not(#soab-letter-spacing-override):not(#soab-letter-spacing-override-2):not(#soab-letter-spacing-override-3):not(#soab-share-tracking-override) .soab-share-link {
  letter-spacing: 2px !important;
}

.soab-article-meta .soab-share-link:hover {
  background: var(--soab-evergreen);
  color: var(--soab-white);
}

.soab-share-link__icon {
  fill: none;
  flex: 0 0 auto;
  height: 16px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 16px;
}

.soab-featured-image {
  margin: clamp(2.25rem, 5vw, 4.25rem) 0 0;
}

.soab-featured-image img {
  aspect-ratio: 16 / 9;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.soab-photo-metadata {
  color: var(--soab-muted);
  font-size: 0.78rem;
  line-height: 1.45;
  margin-top: 0.65rem;
}

.soab-photo-metadata span {
  display: block;
}

.soab-photo-metadata span + span {
  margin-top: 0.15rem;
}

.soab-reading-grid {
  align-items: start;
  display: grid;
  gap: 72px;
  grid-template-columns: 272px minmax(0, 760px);
  justify-content: center;
}

.soab-reading-rail {
  align-self: start;
  max-height: calc(100vh - var(--soab-header-offset) - 32px);
  overflow: auto;
  overscroll-behavior: contain;
  position: sticky;
  scrollbar-width: thin;
  top: var(--soab-header-offset);
}

.soab-rail-eyebrow {
  color: var(--soab-rust);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.soab-article-toc {
  border-top: 2px solid var(--soab-evergreen);
  padding-top: 1rem;
}

.soab-article-toc > .soab-rail-eyebrow {
  font-size: 11px;
  margin-bottom: 0.65rem;
}

.soab-article-toc ol,
.soab-related-content ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.soab-article-toc li + li {
  border-top: 1px solid var(--soab-rule);
}

.soab-article-toc a {
  align-items: baseline;
  color: var(--soab-evergreen-deep);
  display: grid;
  font-size: 13px;
  font-weight: 650;
  gap: 0.55rem;
  grid-template-columns: 1.5rem 1fr;
  line-height: 1.35;
  padding: 0.5rem 0;
  text-decoration: none;
}

.soab-article-toc a span {
  color: var(--soab-rust);
  font-variant-numeric: tabular-nums;
}

.soab-related-content {
  border-top: 1px solid var(--soab-rule);
  margin-top: 2rem;
  padding-top: 1.5rem;
}

.soab-related-content .soab-rail-eyebrow {
  text-transform: none;
}

.soab-related-content li + li {
  margin-top: 1.1rem;
}

.soab-related-content a {
  color: var(--soab-evergreen-deep);
  display: grid;
  font-family: "Source Serif Pro", Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  gap: 0.75rem;
  grid-template-columns: 72px minmax(0, 1fr);
  line-height: 1.28;
  text-decoration: none;
}

.soab-related-image {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  display: block;
  height: 54px;
  object-fit: cover;
  width: 72px;
}

.soab-related-image--fallback {
  background:
    linear-gradient(145deg, rgba(139, 74, 61, 0.34), transparent 54%),
    linear-gradient(35deg, var(--soab-evergreen), #55726d);
}

.soab-article-content {
  font-size: 1.125rem;
  line-height: 1.72;
  min-width: 0;
}

.soab-article-content :where(p, ul, ol, blockquote, figure, table) {
  margin-bottom: 1.5rem;
}

.soab-article-content h2 {
  color: var(--soab-evergreen);
  font-family: "Source Serif Pro", Georgia, serif;
  font-size: clamp(1.65rem, 2.7vw, 2.45rem);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: clamp(3.5rem, 7vw, 4.5rem) 0 1.1rem;
  scroll-margin-top: calc(var(--soab-header-offset) + 24px);
}

.soab-article-content h3 {
  color: var(--soab-evergreen-deep);
  font-family: "Source Serif Pro", Georgia, serif;
  font-size: clamp(1.25rem, 1.7vw, 1.55rem);
  line-height: 1.25;
  margin: 2rem 0 0.85rem;
}

.soab-article-content :where(img, video, iframe, table) {
  max-width: 100%;
}

.soab-article-content a {
  overflow-wrap: anywhere;
}

.soab-article-figure {
  margin: 1.25rem 0 1.75rem;
  overflow: hidden;
}

.soab-article-figure img {
  border-radius: 12px;
  display: block;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  width: auto;
}

.soab-article-figure figcaption {
  color: var(--soab-muted);
}

.soab-discover-more {
  border-top: 1px solid var(--soab-rule);
  margin: clamp(3rem, 6vw, 5rem) auto 0;
  padding-top: clamp(2rem, 4vw, 3rem);
  width: min(90%, 1160px);
}

.soab-discover-more h2 {
  color: var(--soab-evergreen);
  font-family: "Source Serif Pro", Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.12;
  margin: 0 0 1.5rem;
}

.soab-discover-more ul {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.soab-discover-more a {
  color: var(--soab-evergreen-deep);
  display: block;
  font-family: "Source Serif Pro", Georgia, serif;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.28;
  text-decoration: none;
}

.soab-discover-more .soab-related-image {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  height: auto;
  margin-bottom: 0.75rem;
  object-fit: cover;
  width: 100%;
}

.soab-article-content table {
  display: block;
  overflow-x: auto;
}

.soab-mobile-utilities {
  display: none;
}

.soab-ad-slot {
  align-items: center;
  background: var(--soab-ad-bg);
  border: 1px solid var(--soab-rule);
  color: var(--soab-evergreen);
  display: flex;
  font-size: 0.7rem;
  font-weight: 800;
  justify-content: center;
  letter-spacing: 0.11em;
  min-height: 120px;
  padding: 1rem;
  text-align: center;
  text-transform: uppercase;
  width: 100%;
}

.home .soab-ad-slot--home-inline-1,
.home .soab-ad-slot--home-inline-2 {
  background: #f1eee5;
  border-color: rgba(51, 83, 78, 0.16);
  color: #33534e;
  margin-inline: auto;
  max-width: 970px;
  min-height: 160px;
}

/* Divi's cached numbered selectors shift when sections are inserted. The slot
   markup supplies a stable, page-scoped selector for these two ad placements. */
.home #main-content .et_pb_section:has(.soab-ad-slot--home-inline-1),
.home #main-content .et_pb_section:has(.soab-ad-slot--home-inline-2) {
  background: #fff !important;
  padding: 36px 0 44px !important;
}

.home #main-content .et_pb_section:has(.soab-ad-slot--home-inline-1) .et_pb_row,
.home #main-content .et_pb_section:has(.soab-ad-slot--home-inline-2) .et_pb_row {
  max-width: 1240px !important;
  padding: 0 !important;
  width: 88% !important;
}

@media (max-width: 767px) {
  .home #main-content .et_pb_section:has(.soab-ad-slot--home-inline-1),
  .home #main-content .et_pb_section:has(.soab-ad-slot--home-inline-2) {
    padding: 26px 0 34px !important;
  }

  .home #main-content .et_pb_section:has(.soab-ad-slot--home-inline-1) .et_pb_row,
  .home #main-content .et_pb_section:has(.soab-ad-slot--home-inline-2) .et_pb_row {
    width: calc(100% - 40px) !important;
  }

  .home .soab-ad-slot--home-inline-1,
  .home .soab-ad-slot--home-inline-2 {
    min-height: 140px;
    padding: 1.25rem;
  }
}

.soab-article-content > .soab-ad-slot,
.soab-article-content .soab-ad-slot {
  margin: 3rem 0;
}

.soab-global-ad {
  left: 0;
  right: 0;
  z-index: 99999;
}

.soab-global-ad .soab-ad-slot {
  border-left: 0;
  border-radius: 0;
  border-right: 0;
  min-height: 0;
}

.soab-global-ad--top {
  position: sticky;
  top: 0;
}

.admin-bar .soab-global-ad--top {
  top: 32px;
}

.soab-global-ad--top .soab-ad-slot {
  height: 90px;
}

.soab-global-ad--bottom {
  bottom: 0;
  padding-bottom: env(safe-area-inset-bottom, 0);
  position: fixed;
}

.soab-global-ad--bottom .soab-ad-slot {
  height: 84px;
}

.soab-bottom-ad-visible .et-l--footer {
  padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
}

.soab-ad-dismiss {
  align-items: center;
  background: var(--soab-evergreen);
  border: 2px solid var(--soab-white);
  border-radius: 999px;
  color: var(--soab-white);
  cursor: pointer;
  display: flex;
  font-size: 1.2rem;
  height: 34px;
  justify-content: center;
  position: absolute;
  right: max(12px, env(safe-area-inset-right, 0));
  top: 8px;
  width: 34px;
}

.soab-editorial-article :where(a, button, summary):focus-visible,
.soab-global-ad button:focus-visible {
  outline: 3px solid var(--soab-rust);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  :root {
    --soab-header-offset: 112px;
  }

  .soab-article-header,
  .soab-reading-grid,
  .soab-mobile-utilities {
    max-width: 760px;
    width: 88%;
  }

  .soab-reading-grid {
    display: block;
  }

  .soab-reading-rail {
    display: none;
  }

  .soab-mobile-utilities {
    display: block;
    margin-bottom: 2rem;
  }

  .soab-mobile-toc {
    border-bottom: 1px solid var(--soab-rule);
    border-top: 2px solid var(--soab-evergreen);
    padding: 0.9rem 0;
  }

  .soab-mobile-toc summary {
    color: var(--soab-evergreen);
    cursor: pointer;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .soab-mobile-toc .soab-rail-eyebrow {
    display: none;
  }

  .soab-mobile-toc .soab-article-toc {
    border: 0;
    margin-top: 0.75rem;
    padding: 0;
  }

  .soab-related-content {
    background: var(--soab-paper);
    border: 1px solid var(--soab-rule);
    margin: 3rem 0;
    padding: 1.5rem;
  }

  .soab-related-content ul {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .soab-related-content li + li {
    margin: 0;
  }

  .soab-related-content a {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .soab-related-image {
    height: 72px;
    width: 96px;
  }

  .soab-global-ad--top .soab-ad-slot {
    height: 72px;
  }

  .soab-global-ad--bottom .soab-ad-slot {
    height: 76px;
  }

  .soab-bottom-ad-visible .et-l--footer {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }

  .soab-discover-more ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .soab-article-header,
  .soab-reading-grid,
  .soab-mobile-utilities {
    width: 90%;
  }

  .soab-article-context {
    align-items: flex-start;
    flex-direction: column;
  }

  .soab-article-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .soab-article-content {
    font-size: 1.05rem;
  }

  .soab-related-content ul {
    grid-template-columns: 1fr;
  }

  .soab-discover-more ul {
    grid-template-columns: 1fr;
  }

  .soab-ad-slot {
    min-height: 112px;
  }

  .soab-global-ad--top .soab-ad-slot {
    height: 64px;
    min-height: 64px;
  }

  .soab-global-ad--bottom .soab-ad-slot {
    height: 68px;
    min-height: 68px;
    padding-right: 3.5rem;
  }

  .soab-bottom-ad-visible .et-l--footer {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  }

  .admin-bar .soab-global-ad--top {
    top: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .soab-editorial-article *,
  .soab-global-ad * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
