:root {
  --sag-primary: #a7f970;
  --sag-secondary: #031032;
  --sag-tertiary: #f9aa1a;
  --sag-white: #ffffff;
  --sag-support: #183034;
  --sag-ink: #07112b;
  --sag-muted: #667085;
  --sag-soft: #f4f7f5;
  --sag-line: #e4eae7;
  --sag-radius-sm: 14px;
  --sag-radius: 22px;
  --sag-radius-lg: 34px;
  --sag-shadow: 0 22px 60px rgba(3, 16, 50, 0.1);
}

.sag-blog-root,
.sag-blog-root * {
  box-sizing: border-box;
}

.sag-blog-root {
  width: 100%;
  max-width: none;
  margin: 0;
  overflow: clip;
  color: var(--sag-ink);
  background: var(--sag-white);
  font-family: Poppins, Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Remove only the 8px outer page gutter visible around the archive. */
.sag-blog-root.sag-blog-archive {
  width: calc(100% + 16px);
  max-width: none !important;
  margin: -8px !important;
}

.sag-blog-root a {
  color: inherit;
  text-decoration: none;
}

.sag-blog-root img {
  display: block;
  width: 100%;
  height: auto;
}

.sag-blog-root h1,
.sag-blog-root h2,
.sag-blog-root h3,
.sag-blog-root p {
  margin-top: 0;
}

.sag-shell {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.sag-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--sag-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.sag-eyebrow i {
  display: inline-block;
  width: 22px;
  height: 2px;
  border-radius: 99px;
  background: var(--sag-tertiary);
}

.sag-eyebrow--dark {
  color: var(--sag-support);
}

.sag-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.sag-button:hover {
  transform: translateY(-3px);
}

.sag-button--dark {
  color: var(--sag-white) !important;
  background: var(--sag-secondary);
  box-shadow: 0 14px 28px rgba(3, 16, 50, 0.18);
}

.sag-button--dark:hover {
  box-shadow: 0 18px 32px rgba(3, 16, 50, 0.26);
}

.sag-button--lime {
  color: var(--sag-secondary) !important;
  background: var(--sag-primary);
  box-shadow: 0 16px 34px rgba(167, 249, 112, 0.24);
}

.sag-button--lime:hover {
  background: #b8ff86;
  box-shadow: 0 18px 40px rgba(167, 249, 112, 0.35);
}

.sag-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sag-support) !important;
  font-size: 13px;
  font-weight: 800;
}

.sag-text-link span {
  color: var(--sag-tertiary);
  transition: transform 0.2s ease;
}

.sag-text-link:hover span {
  transform: translateX(4px);
}

/* Archive hero */
.sag-blog-hero,
.sag-single-hero {
  position: relative;
  overflow: hidden;
  color: var(--sag-white);
  background:
    radial-gradient(circle at 76% 48%, rgba(167, 249, 112, 0.12), transparent 25%),
    linear-gradient(118deg, var(--sag-secondary) 0%, #06183e 58%, var(--sag-support) 100%);
}

.sag-blog-hero {
  min-height: 520px;
  display: grid;
  align-items: center;
  padding: 78px 0;
}

.sag-blog-hero::before,
.sag-single-hero::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  content: "";
  mask-image: linear-gradient(to right, transparent, #000 30%, #000);
}

.sag-blog-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  align-items: center;
  gap: 72px;
}

.sag-blog-hero__copy h1 {
  max-width: 720px;
  margin-bottom: 22px;
  color: var(--sag-white);
  font-size: clamp(42px, 5.7vw, 78px);
  font-weight: 800;
  letter-spacing: -0.058em;
  line-height: 0.98;
}

.sag-blog-hero__copy h1::first-line {
  color: var(--sag-white);
}

.sag-blog-hero__copy p {
  max-width: 650px;
  margin-bottom: 0;
  color: rgba(255,255,255,0.72);
  font-size: 17px;
}

.sag-orbit {
  position: absolute;
  border: 1px solid rgba(167, 249, 112, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.sag-orbit--one {
  top: -260px;
  right: -170px;
  width: 640px;
  height: 640px;
}

.sag-orbit--two {
  bottom: -300px;
  left: 35%;
  width: 500px;
  height: 500px;
}

.sag-blog-hero__signal {
  position: relative;
  width: min(390px, 100%);
  aspect-ratio: 1;
  margin-left: auto;
}

.sag-signal-ring {
  position: absolute;
  inset: 50%;
  border: 1px solid rgba(167, 249, 112, 0.22);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.sag-signal-ring::before,
.sag-signal-ring::after {
  display: none;
  position: absolute;
  border-radius: 50%;
  background: var(--sag-primary);
  box-shadow: 0 0 24px rgba(167, 249, 112, 0.7);
  content: "";
}

.sag-signal-ring::before {
  top: 18%;
  left: 4%;
  width: 7px;
  height: 7px;
}

.sag-signal-ring::after {
  right: 7%;
  bottom: 20%;
  width: 5px;
  height: 5px;
}

.sag-signal-ring--outer {
  width: 100%;
  height: 100%;
  animation: sag-spin 28s linear infinite;
}

.sag-signal-ring--middle {
  width: 72%;
  height: 72%;
  animation: sag-spin-reverse 18s linear infinite;
}

.sag-orbit-flags {
  position: absolute;
  z-index: 4;
  inset: 2%;
  border-radius: 50%;
  pointer-events: none;
  animation: sag-flag-orbit 30s linear infinite;
}

.sag-orbit-flag {
  position: absolute;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.92);
  border-radius: 50%;
  background: var(--sag-white);
  box-shadow: 0 13px 30px rgba(0,0,0,0.28), 0 0 0 5px rgba(167,249,112,0.1);
}

.sag-orbit-flag b {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 50%;
  font-weight: 400;
  line-height: 1;
  transform: scale(1.42);
  animation: sag-flag-counter-orbit 30s linear infinite;
}

.sag-orbit-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sag-orbit-flag--uk { top: 0; left: 44%; }
.sag-orbit-flag--ca { top: 19%; right: 2%; }
.sag-orbit-flag--eu { right: 4%; bottom: 17%; }
.sag-orbit-flag--nz { bottom: -1%; left: 44%; }
.sag-orbit-flag--ie { bottom: 18%; left: 2%; }
.sag-orbit-flag--fi { top: 19%; left: 2%; }

.sag-signal-core {
  position: absolute;
  inset: 50%;
  display: flex;
  width: 46%;
  height: 46%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px solid rgba(167, 249, 112, 0.45);
  border-radius: 50%;
  color: var(--sag-primary);
  background: rgba(3, 16, 50, 0.76);
  box-shadow: inset 0 0 44px rgba(167, 249, 112, 0.11), 0 0 70px rgba(167, 249, 112, 0.1);
  transform: translate(-50%, -50%);
}

.sag-signal-core strong {
  font-size: 46px;
  letter-spacing: -0.08em;
  line-height: 1;
}

.sag-signal-core span {
  margin-top: 8px;
  color: rgba(255,255,255,0.65);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.sag-signal-tag {
  position: absolute;
  min-width: 92px;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.07);
  box-shadow: 0 14px 34px rgba(0,0,0,0.15);
  backdrop-filter: blur(14px);
  font-size: 11px;
  font-weight: 700;
}

.sag-signal-tag--top {
  top: 16%;
  left: -2%;
}

.sag-signal-tag--bottom {
  right: -1%;
  bottom: 18%;
}

@keyframes sag-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes sag-spin-reverse {
  to { transform: translate(-50%, -50%) rotate(-360deg); }
}

@keyframes sag-flag-orbit {
  to { transform: rotate(360deg); }
}

@keyframes sag-flag-counter-orbit {
  to { transform: scale(1.42) rotate(-360deg); }
}

/* Featured story */
.sag-featured-section {
  padding: 68px 0 42px;
  background: var(--sag-white);
}

.sag-section-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.sag-section-kicker span {
  color: var(--sag-support);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.sag-section-kicker b {
  color: #8a948f;
  font-size: 12px;
  font-weight: 600;
}

.sag-featured-card {
  position: relative;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  min-height: 460px;
  overflow: hidden;
  border: 1px solid rgba(167,249,112,0.2);
  border-radius: var(--sag-radius-lg);
  background:
    radial-gradient(circle at 88% 16%, rgba(167,249,112,0.12), transparent 27%),
    linear-gradient(125deg, #06143a 0%, var(--sag-secondary) 58%, var(--sag-support) 100%);
  box-shadow: 0 30px 80px rgba(3,16,50,0.18);
}

.sag-featured-card::before {
  position: absolute;
  z-index: 1;
  top: 26px;
  right: 28px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sag-primary);
  box-shadow: 0 0 0 8px rgba(167,249,112,0.08), 0 0 30px rgba(167,249,112,0.42);
  content: "";
}

.sag-featured-card__media {
  position: relative;
  display: block;
  min-height: 390px;
  overflow: hidden;
  border-right: 1px solid rgba(255,255,255,0.08);
  background: var(--sag-support);
}

.sag-featured-card__media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 54%, rgba(3,16,50,0.3));
  content: "";
}

.sag-featured-card__media img,
.sag-featured-card__media .sag-image-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(.2,.7,.2,1);
}

.sag-featured-card:hover .sag-featured-card__media img,
.sag-featured-card:hover .sag-featured-card__media .sag-image-fallback {
  transform: scale(1.045);
}

.sag-featured-card__copy {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding: clamp(34px, 5vw, 70px);
}

.sag-featured-card__copy h2 {
  margin-bottom: 20px;
  color: var(--sag-white);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.sag-featured-card__copy h2 a:hover {
  color: var(--sag-primary);
}

.sag-featured-card__copy > p {
  margin-bottom: 28px;
  color: rgba(255,255,255,0.68);
  font-size: 15px;
  line-height: 1.75;
}

.sag-featured-card__copy .sag-post-meta {
  color: rgba(255,255,255,0.5);
}

.sag-featured-card__copy .sag-post-meta .sag-post-meta__category {
  color: var(--sag-primary);
}

.sag-featured-card__copy .sag-post-meta span:not(:last-child)::after {
  color: var(--sag-tertiary);
}

.sag-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-bottom: 16px;
  color: #7a8580;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sag-post-meta span:not(:last-child)::after {
  margin-left: 14px;
  color: #c7cfcb;
  content: "•";
}

.sag-post-meta .sag-post-meta__category {
  color: var(--sag-support);
}

.sag-post-meta .sag-post-meta__category::after {
  color: var(--sag-tertiary) !important;
}

/* Archive library */
.sag-library-section {
  padding: 78px 0 94px;
  background: linear-gradient(180deg, var(--sag-white) 0, #f5f8f6 100%);
}

.sag-library-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 28px;
}

.sag-library-heading h2,
.sag-related-heading h2 {
  max-width: 730px;
  margin-bottom: 0;
  color: var(--sag-secondary);
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.sag-blog-search {
  position: relative;
  width: min(100%, 360px);
  flex: 0 0 360px;
}

.sag-blog-search input {
  width: 100%;
  height: 52px;
  padding: 0 54px 0 20px;
  border: 1px solid var(--sag-line);
  border-radius: 999px;
  outline: none;
  color: var(--sag-secondary);
  background: var(--sag-white);
  box-shadow: 0 10px 25px rgba(3,16,50,0.05);
  font: inherit;
  font-size: 13px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sag-blog-search input:focus {
  border-color: var(--sag-primary);
  box-shadow: 0 0 0 4px rgba(167,249,112,0.2);
}

.sag-blog-search button {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--sag-secondary);
  background: var(--sag-primary);
  cursor: pointer;
  font-size: 20px;
  font-weight: 800;
}

.sag-category-filter {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  margin-bottom: 38px;
  padding: 3px 2px 9px;
  scrollbar-width: none;
}

.sag-category-filter::-webkit-scrollbar {
  display: none;
}

.sag-category-filter a {
  flex: 0 0 auto;
  padding: 10px 17px;
  border: 1px solid var(--sag-line);
  border-radius: 999px;
  color: #59645f;
  background: var(--sag-white);
  font-size: 12px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.sag-category-filter a:hover,
.sag-category-filter a.is-active {
  border-color: var(--sag-primary);
  color: var(--sag-secondary);
  background: var(--sag-primary);
  transform: translateY(-2px);
}

.sag-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.sag-post-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--sag-line);
  border-radius: var(--sag-radius);
  background: var(--sag-white);
  box-shadow: 0 10px 30px rgba(3,16,50,0.05);
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.sag-post-card:hover {
  border-color: rgba(167,249,112,0.95);
  box-shadow: 0 24px 48px rgba(3,16,50,0.12), 0 0 0 3px rgba(167,249,112,0.12);
  transform: translateY(-8px);
}

.sag-post-card__media {
  position: relative;
  display: block;
  height: 224px;
  overflow: hidden;
  background: var(--sag-support);
}

.sag-post-card__media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3,16,50,0.22), transparent 45%);
  content: "";
  opacity: 0.7;
}

.sag-post-card__media img,
.sag-post-card__media .sag-image-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(.2,.7,.2,1);
}

.sag-post-card:hover .sag-post-card__media img,
.sag-post-card:hover .sag-post-card__media .sag-image-fallback {
  transform: scale(1.055);
}

.sag-post-card__arrow {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: var(--sag-secondary);
  background: var(--sag-primary);
  box-shadow: 0 10px 22px rgba(3,16,50,0.16);
  font-size: 17px;
  font-weight: 800;
  transform: translateY(-65px) rotate(-15deg);
  transition: transform 0.32s cubic-bezier(.2,.8,.2,1);
}

.sag-post-card:hover .sag-post-card__arrow {
  transform: translateY(0) rotate(0);
}

.sag-post-card__body {
  display: flex;
  flex: 1;
  align-items: flex-start;
  flex-direction: column;
  padding: 25px 25px 27px;
}

.sag-post-card__title {
  margin-bottom: 13px;
  color: var(--sag-secondary);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.032em;
  line-height: 1.2;
}

.sag-post-card__title a {
  transition: color 0.2s ease;
}

.sag-post-card__title a:hover {
  color: var(--sag-support);
}

.sag-post-card__body > p {
  margin-bottom: 22px;
  color: var(--sag-muted);
  font-size: 13px;
  line-height: 1.72;
}

.sag-post-card__body .sag-text-link {
  margin-top: auto;
}

.sag-image-fallback {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex-direction: column;
  overflow: hidden;
  padding: 34px;
  color: var(--sag-white);
  background:
    radial-gradient(circle at 75% 25%, rgba(167,249,112,0.18), transparent 28%),
    radial-gradient(circle at 15% 85%, rgba(249,170,26,0.12), transparent 30%),
    linear-gradient(135deg, var(--sag-secondary), var(--sag-support));
}

.sag-image-fallback::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
}

.sag-fallback-globe {
  position: absolute;
  top: 50%;
  right: -8%;
  width: min(78%, 360px);
  aspect-ratio: 1;
  border: 1px solid rgba(167,249,112,0.19);
  border-radius: 50%;
  transform: translateY(-50%);
}

.sag-fallback-globe::before,
.sag-fallback-globe::after,
.sag-fallback-globe i {
  position: absolute;
  border: 1px solid rgba(167,249,112,0.13);
  border-radius: 50%;
  content: "";
}

.sag-fallback-globe::before { inset: 13%; }
.sag-fallback-globe::after { inset: 27%; }
.sag-fallback-globe i:nth-child(1) { inset: 0 38%; border-radius: 50%; }
.sag-fallback-globe i:nth-child(2) { inset: 38% 0; border-radius: 50%; }
.sag-fallback-globe i:nth-child(3) { inset: 17% 25%; }

.sag-fallback-flags {
  position: absolute;
  z-index: 2;
  top: 26px;
  left: 28px;
  display: flex;
  align-items: center;
}

.sag-fallback-flags span {
  display: grid;
  width: 42px;
  height: 42px;
  margin-left: -8px;
  place-items: center;
  border: 2px solid rgba(255,255,255,0.92);
  border-radius: 50%;
  background: var(--sag-white);
  box-shadow: 0 8px 18px rgba(0,0,0,0.22);
  overflow: hidden;
}

.sag-fallback-flags span:first-child {
  margin-left: 0;
}

.sag-fallback-flags img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sag-fallback-copy {
  position: relative;
  z-index: 2;
  max-width: 330px;
}

.sag-fallback-copy strong {
  display: block;
  color: var(--sag-white);
  font-size: clamp(26px, 3.1vw, 42px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.sag-fallback-copy small {
  display: block;
  margin-top: 12px;
  color: var(--sag-primary);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.sag-post-card__media .sag-image-fallback {
  padding: 24px;
}

.sag-post-card__media .sag-fallback-globe {
  width: 75%;
}

.sag-post-card__media .sag-fallback-flags {
  top: 18px;
  left: 20px;
}

.sag-post-card__media .sag-fallback-flags span {
  width: 31px;
  height: 31px;
}

.sag-post-card__media .sag-fallback-copy strong {
  max-width: 220px;
  font-size: 22px;
}

.sag-post-card__media .sag-fallback-copy small {
  margin-top: 7px;
  font-size: 7px;
}

.sag-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
}

.sag-pagination__numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.sag-pagination a,
.sag-pagination__dots {
  display: inline-flex;
  min-width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--sag-line);
  border-radius: 999px;
  color: var(--sag-support);
  background: var(--sag-white);
  font-size: 12px;
  font-weight: 800;
}

.sag-pagination a:hover,
.sag-pagination a.is-current {
  border-color: var(--sag-primary);
  color: var(--sag-secondary);
  background: var(--sag-primary);
}

.sag-pagination .sag-pagination__nav {
  min-width: 110px;
}

.sag-empty-state {
  padding: 70px 24px;
  border: 1px dashed #cad5d0;
  border-radius: var(--sag-radius);
  text-align: center;
  background: var(--sag-white);
}

.sag-empty-state > span {
  display: grid;
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  place-items: center;
  border-radius: 50%;
  color: var(--sag-secondary);
  background: var(--sag-primary);
  font-size: 28px;
}

.sag-empty-state h3 {
  margin-bottom: 8px;
  color: var(--sag-secondary);
  font-size: 26px;
}

.sag-empty-state p {
  margin-bottom: 24px;
  color: var(--sag-muted);
}

/* CTA */
.sag-blog-cta {
  position: relative;
  overflow: hidden;
  padding: 0;
  color: var(--sag-white);
  background: var(--sag-secondary);
}

.sag-blog-cta__inner {
  display: grid;
  min-height: 330px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 60px;
  padding-block: 68px;
}

.sag-blog-cta h2 {
  max-width: 750px;
  margin-bottom: 14px;
  color: var(--sag-white);
  font-size: clamp(34px, 4.8vw, 62px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1;
}

.sag-blog-cta p {
  max-width: 700px;
  margin-bottom: 0;
  color: rgba(255,255,255,0.68);
  font-size: 15px;
}

.sag-blog-cta .sag-button {
  position: relative;
  z-index: 3;
  white-space: nowrap;
}

.sag-cta-rings,
.sag-cta-rings i {
  position: absolute;
  border: 1px solid rgba(167,249,112,0.1);
  border-radius: 50%;
  pointer-events: none;
}

.sag-cta-rings {
  top: 50%;
  right: -100px;
  width: 420px;
  height: 420px;
  transform: translateY(-50%);
}

.sag-cta-rings i:nth-child(1) { inset: 55px; }
.sag-cta-rings i:nth-child(2) { inset: 110px; background: rgba(167,249,112,0.03); }
.sag-cta-rings i:nth-child(3) { inset: 160px; border-color: rgba(249,170,26,0.25); }

/* Single article */
.sag-reading-progress {
  position: fixed;
  z-index: 99999;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  pointer-events: none;
  background: transparent;
}

.sag-reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--sag-primary), var(--sag-tertiary));
  box-shadow: 0 0 12px rgba(167,249,112,0.45);
}

.sag-single-hero {
  padding: 42px 0 74px;
}

.sag-breadcrumbs {
  display: flex;
  overflow: hidden;
  align-items: center;
  gap: 9px;
  margin-bottom: 44px;
  color: rgba(255,255,255,0.58);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.sag-breadcrumbs a:hover {
  color: var(--sag-primary);
}

.sag-breadcrumbs > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.sag-single-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(370px, 0.76fr);
  align-items: center;
  gap: 74px;
}

.sag-single-category {
  display: inline-flex;
  margin-bottom: 19px;
  padding: 8px 13px;
  border: 1px solid rgba(167,249,112,0.28);
  border-radius: 999px;
  color: var(--sag-primary);
  background: rgba(167,249,112,0.08);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sag-single-hero h1 {
  max-width: 760px;
  margin-bottom: 22px;
  color: var(--sag-white);
  font-size: clamp(38px, 5.3vw, 70px);
  font-weight: 800;
  letter-spacing: -0.058em;
  line-height: 1.01;
}

.sag-single-deck {
  max-width: 700px;
  margin-bottom: 30px;
  color: rgba(255,255,255,0.7);
  font-size: 16px;
}

.sag-single-byline {
  display: flex;
  align-items: center;
  gap: 13px;
}

.sag-author-avatar {
  width: 48px !important;
  height: 48px !important;
  border: 2px solid rgba(167,249,112,0.6);
  border-radius: 50%;
  object-fit: cover;
}

.sag-single-byline div {
  display: flex;
  flex-direction: column;
}

.sag-single-byline strong {
  color: var(--sag-white);
  font-size: 13px;
}

.sag-single-byline span {
  color: rgba(255,255,255,0.56);
  font-size: 11px;
}

.sag-single-hero__media {
  position: relative;
  height: 430px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 28px;
  background: var(--sag-support);
  box-shadow: 0 30px 70px rgba(0,0,0,0.28);
  transform: rotate(1.2deg);
}

.sag-single-hero__media::after {
  position: absolute;
  inset: 0;
  border: 12px solid rgba(255,255,255,0.035);
  border-radius: inherit;
  content: "";
}

.sag-single-hero__media img,
.sag-single-hero__media .sag-image-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sag-single-media-mark {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 18px;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--sag-secondary);
  background: var(--sag-primary);
  box-shadow: 0 10px 30px rgba(3,16,50,0.2);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.sag-article-section {
  padding: 76px 0 82px;
  background: var(--sag-white);
}

.sag-article-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 760px);
  justify-content: center;
  gap: 70px;
}

.sag-article-sidebar {
  align-self: start;
}

.sag-toc-card {
  position: sticky;
  top: 28px;
  overflow: hidden;
  border: 1px solid var(--sag-line);
  border-radius: 18px;
  background: #f7faf8;
  box-shadow: 0 14px 35px rgba(3,16,50,0.06);
}

.sag-toc-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border: 0;
  color: var(--sag-secondary);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.sag-toc-toggle i {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: var(--sag-secondary);
  background: var(--sag-primary);
  font-style: normal;
}

.sag-toc {
  display: flex;
  max-height: 460px;
  overflow: auto;
  flex-direction: column;
  gap: 2px;
  padding: 0 13px 16px;
}

.sag-toc.is-collapsed {
  display: none;
}

.sag-toc a {
  padding: 9px 10px;
  border-left: 2px solid transparent;
  border-radius: 0 8px 8px 0;
  color: #69736e;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.sag-toc a[data-level="H3"] {
  padding-left: 22px;
  color: #86908b;
}

.sag-toc a:hover,
.sag-toc a.is-active {
  border-left-color: var(--sag-primary);
  color: var(--sag-secondary);
  background: rgba(167,249,112,0.15);
}

.sag-share-card {
  margin-top: 17px;
  padding: 17px;
  border: 1px solid var(--sag-line);
  border-radius: 16px;
  background: var(--sag-white);
}

.sag-share-card > span {
  display: block;
  margin-bottom: 12px;
  color: #7b8680;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sag-share-card > div {
  display: flex;
  gap: 8px;
}

.sag-share-card a,
.sag-share-card button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--sag-line);
  border-radius: 50%;
  color: var(--sag-support);
  background: #f8faf9;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  transition: background 0.2s ease, transform 0.2s ease;
}

.sag-share-card a:hover,
.sag-share-card button:hover {
  border-color: var(--sag-primary);
  color: var(--sag-secondary);
  background: var(--sag-primary);
  transform: translateY(-2px);
}

.sag-article-main {
  min-width: 0;
}

.sag-article-content {
  color: #34403a;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.9;
}

.sag-article-content > *:first-child {
  margin-top: 0 !important;
}

.sag-article-content p,
.sag-article-content ul,
.sag-article-content ol {
  margin: 0 0 1.55em;
}

.sag-article-content h2,
.sag-article-content h3,
.sag-article-content h4 {
  scroll-margin-top: 90px;
  color: var(--sag-secondary);
  font-family: Poppins, Inter, "Segoe UI", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.038em;
  line-height: 1.16;
}

.sag-article-content h2 {
  margin: 1.7em 0 0.65em;
  padding-top: 0.2em;
  font-size: clamp(28px, 4vw, 40px);
}

.sag-article-content h2::before {
  display: block;
  width: 34px;
  height: 4px;
  margin-bottom: 14px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--sag-primary) 65%, var(--sag-tertiary) 65%);
  content: "";
}

.sag-article-content h3 {
  margin: 1.6em 0 0.55em;
  font-size: clamp(22px, 3vw, 29px);
}

.sag-article-content h4 {
  margin: 1.45em 0 0.45em;
  font-size: 20px;
}

.sag-article-content a {
  color: #19713e;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--sag-primary);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.sag-article-content ul,
.sag-article-content ol {
  padding-left: 1.35em;
}

.sag-article-content li {
  margin-bottom: 0.6em;
  padding-left: 0.25em;
}

.sag-article-content li::marker {
  color: #5bc125;
  font-weight: 800;
}

.sag-article-content blockquote {
  position: relative;
  margin: 2em 0;
  padding: 28px 30px 28px 34px;
  overflow: hidden;
  border: 0;
  border-left: 4px solid var(--sag-primary);
  border-radius: 0 18px 18px 0;
  color: var(--sag-secondary);
  background: linear-gradient(115deg, rgba(167,249,112,0.18), #f5f8f6);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.55;
}

.sag-article-content blockquote p:last-child {
  margin-bottom: 0;
}

.sag-article-content details {
  margin: 0 0 14px;
  overflow: hidden;
  border: 1px solid var(--sag-line);
  border-radius: 14px;
  color: #46514c;
  background: #f8faf9;
}

.sag-article-content details[open] {
  border-color: rgba(167,249,112,0.85);
  box-shadow: 0 12px 30px rgba(3,16,50,0.06);
}

.sag-article-content summary {
  position: relative;
  padding: 18px 54px 18px 20px;
  color: var(--sag-secondary);
  cursor: pointer;
  list-style: none;
  font-family: Poppins, Inter, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  font-weight: 800;
}

.sag-article-content summary::-webkit-details-marker {
  display: none;
}

.sag-article-content summary::after {
  position: absolute;
  top: 50%;
  right: 17px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: var(--sag-secondary);
  background: var(--sag-primary);
  content: "+";
  font-size: 16px;
  line-height: 1;
  transform: translateY(-50%);
}

.sag-article-content details[open] summary::after {
  content: "−";
}

.sag-article-content details > :not(summary) {
  margin-right: 20px;
  margin-left: 20px;
}

.sag-article-content details > :last-child {
  margin-bottom: 20px;
}

.sag-article-content img {
  height: auto;
  margin: 2em 0;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(3,16,50,0.1);
}

.sag-article-content figure {
  max-width: 100%;
  margin: 2em 0;
}

.sag-article-content figure img {
  margin: 0;
}

.sag-article-content figcaption {
  margin-top: 9px;
  color: #7a8580;
  font-size: 12px;
  text-align: center;
}

.sag-article-content table {
  width: 100%;
  margin: 2em 0;
  overflow: hidden;
  border-spacing: 0;
  border: 1px solid var(--sag-line);
  border-radius: 14px;
  font-size: 14px;
}

.sag-article-content th,
.sag-article-content td {
  padding: 14px 16px;
  border-right: 1px solid var(--sag-line);
  border-bottom: 1px solid var(--sag-line);
  text-align: left;
}

.sag-article-content th {
  color: var(--sag-secondary);
  background: rgba(167,249,112,0.2);
  font-weight: 800;
}

.sag-article-content tr:last-child td { border-bottom: 0; }
.sag-article-content th:last-child,
.sag-article-content td:last-child { border-right: 0; }

.sag-article-topics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--sag-line);
}

.sag-article-topics > span {
  margin-right: 4px;
  color: var(--sag-secondary);
  font-size: 12px;
  font-weight: 800;
}

.sag-article-topics a {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--sag-support);
  background: #eff5f1;
  font-size: 11px;
  font-weight: 700;
}

.sag-article-topics a:hover {
  color: var(--sag-secondary);
  background: var(--sag-primary);
}

.sag-author-box {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
  padding: 28px;
  border: 1px solid rgba(167,249,112,0.35);
  border-radius: 20px;
  background: linear-gradient(135deg, #f7faf8, rgba(167,249,112,0.1));
}

.sag-author-box .sag-author-avatar {
  width: 80px !important;
  height: 80px !important;
  flex: 0 0 80px;
}

.sag-author-box span {
  color: #76817b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.sag-author-box h3 {
  margin: 2px 0 5px;
  color: var(--sag-secondary);
  font-size: 20px;
}

.sag-author-box p {
  margin-bottom: 0;
  color: var(--sag-muted);
  font-size: 13px;
  line-height: 1.65;
}

.sag-related-section {
  padding: 76px 0 86px;
  background: #f3f7f4;
}

.sag-related-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 32px;
}

/* Elementor and theme containment */
.elementor-widget-shortcode .sag-blog-root:not(.sag-blog-archive) {
  margin: 0;
}

.elementor-widget-shortcode:has(.sag-blog-root),
.elementor-widget-html:has(.sag-blog-root) {
  width: 100%;
}

body.sag-branded-single .site-main,
body.sag-branded-single main {
  max-width: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .sag-blog-hero__inner,
  .sag-single-hero__grid {
    gap: 38px;
  }

  .sag-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sag-article-layout {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 44px;
  }

  .sag-blog-cta__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 30px;
  }
}

@media (max-width: 820px) {
  .sag-shell {
    width: min(100% - 36px, 720px);
  }

  .sag-blog-hero {
    min-height: auto;
    padding: 68px 0;
  }

  .sag-blog-hero__inner,
  .sag-single-hero__grid,
  .sag-featured-card,
  .sag-article-layout {
    grid-template-columns: 1fr;
  }

  .sag-blog-hero__signal {
    width: min(330px, 80vw);
    margin: 15px auto -20px;
  }

  .sag-featured-card__media {
    min-height: 340px;
  }

  .sag-featured-card__copy {
    padding: 36px;
  }

  .sag-library-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 24px;
  }

  .sag-blog-search {
    width: 100%;
    flex-basis: auto;
  }

  .sag-blog-cta__inner {
    min-height: 360px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .sag-blog-cta .sag-button {
    justify-self: start;
  }

  .sag-single-hero__media {
    width: min(100%, 580px);
    height: 390px;
    transform: none;
  }

  .sag-article-layout {
    gap: 30px;
  }

  .sag-article-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
  }

  .sag-toc-card {
    position: static;
  }

  .sag-share-card {
    margin-top: 0;
  }
}

@media (max-width: 620px) {
  .sag-shell {
    width: min(100% - 28px, 560px);
  }

  .sag-blog-hero__copy h1,
  .sag-single-hero h1 {
    font-size: clamp(38px, 12vw, 52px);
  }

  .sag-blog-hero__copy p,
  .sag-single-deck {
    font-size: 14px;
  }

  .sag-blog-hero__signal {
    width: min(280px, 78vw);
  }

  .sag-signal-core strong {
    font-size: 36px;
  }

  .sag-orbit-flag {
    width: 40px;
    height: 40px;
    border-width: 2px;
    box-shadow: 0 9px 22px rgba(0,0,0,0.25), 0 0 0 4px rgba(167,249,112,0.09);
  }

  .sag-orbit-flag b {
    width: 100%;
    height: 100%;
  }

  .sag-signal-tag {
    min-width: 76px;
    padding: 9px 12px;
    font-size: 9px;
  }

  .sag-featured-section,
  .sag-library-section,
  .sag-article-section,
  .sag-related-section {
    padding-top: 56px;
    padding-bottom: 60px;
  }

  .sag-featured-card {
    min-height: auto;
    border-radius: 22px;
  }

  .sag-featured-card__media {
    min-height: 260px;
  }

  .sag-featured-card__copy {
    padding: 28px 24px 30px;
  }

  .sag-featured-card__copy h2 {
    font-size: 31px;
  }

  .sag-featured-card__media .sag-image-fallback {
    min-height: 260px;
    padding: 24px;
  }

  .sag-featured-card__media .sag-fallback-copy strong {
    max-width: 250px;
    font-size: 28px;
  }

  .sag-library-heading h2,
  .sag-related-heading h2 {
    font-size: 38px;
  }

  .sag-post-grid {
    grid-template-columns: 1fr;
  }

  .sag-post-card__media {
    height: 230px;
  }

  .sag-pagination {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .sag-pagination__numbers {
    width: 100%;
    order: -1;
  }

  .sag-pagination .sag-pagination__nav {
    flex: 1;
  }

  .sag-blog-cta__inner {
    min-height: 390px;
    padding-block: 56px;
  }

  .sag-blog-cta h2 {
    font-size: 39px;
  }

  .sag-blog-cta .sag-button {
    width: 100%;
  }

  .sag-breadcrumbs {
    margin-bottom: 32px;
  }

  .sag-single-hero {
    padding: 30px 0 50px;
  }

  .sag-single-hero__grid {
    gap: 38px;
  }

  .sag-single-hero__media {
    height: 290px;
    border-radius: 20px;
  }

  .sag-article-sidebar {
    grid-template-columns: 1fr;
  }

  .sag-share-card > span {
    display: none;
  }

  .sag-share-card {
    padding: 12px;
  }

  .sag-article-content {
    font-size: 16px;
    line-height: 1.82;
  }

  .sag-article-content blockquote {
    padding: 22px 22px 22px 25px;
    font-size: 17px;
  }

  .sag-article-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .sag-author-box {
    align-items: flex-start;
    padding: 22px;
  }

  .sag-author-box .sag-author-avatar {
    width: 58px !important;
    height: 58px !important;
    flex-basis: 58px;
  }

  .sag-related-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sag-blog-root *,
  .sag-blog-root *::before,
  .sag-blog-root *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
