/* Lead Different editorial system.
 * The class names intentionally mirror the supplied article prototypes while
 * the markup is composed from editable core WordPress blocks.
 */

:root {
  --negative: #ff8a65;
  --negative-pale: rgba(255, 138, 101, .08);
  --negative-border: rgba(255, 138, 101, .22);
}

[data-theme="light"] {
  --negative: #c2410c;
  --negative-pale: rgba(194, 65, 12, .06);
  --negative-border: rgba(194, 65, 12, .20);
}

#read-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 110;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width .1s linear;
}

.jump-nav-wrap #read-progress.is-in-jump-nav {
  position: absolute;
  inset: auto auto -1px 0;
  z-index: 1;
}

.ld-article-shell {
  overflow: clip;
}

.article-hero {
  padding: 64px 24px 0;
  text-align: center;
}

.article-hero .wp-block-shortcode {
  margin: 0;
}

.article-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--blue);
  font: 700 11px/1.4 var(--font-sans);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.article-eyebrow .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
}

.article-eyebrow .cat {
  color: var(--text-muted);
  font-weight: 600;
}

.article-hero .wp-block-post-title {
  margin: 0 0 24px;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: clamp(34px, 5.2vw, 58px);
  font-weight: 300;
  letter-spacing: -1.2px;
  line-height: 1.08;
}

.article-dek,
.article-dek .wp-block-post-excerpt__excerpt {
  max-width: 600px;
  margin: 0 auto 28px;
  color: var(--text-dim);
  font-family: var(--font-serif);
  font-size: clamp(17px, 2vw, 21px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.5;
}

.article-dek .wp-block-post-excerpt__more-text {
  display: none;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 44px;
  color: var(--text-muted);
  font-size: 13px;
}

.article-meta .sep {
  opacity: .5;
}

.article-tags {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.article-tag {
  padding: 3px 9px;
  border: 1px solid var(--border-card);
  border-radius: 100px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.35;
  text-decoration: none;
}

.article-tag[href]:hover {
  border-color: rgba(50, 83, 255, .35);
  color: var(--blue);
}

.article-read-time {
  white-space: nowrap;
}

.article-body {
  padding: 8px 24px 40px;
}

.article-body > p,
.article-body > ul,
.article-body > ol {
  color: var(--text-dim);
  font-size: 17px;
  line-height: 1.85;
}

.article-body > p {
  margin-top: 0;
  margin-bottom: 24px;
}

body.single-ld_research .article-body > p:first-of-type::first-letter {
  float: left;
  padding: 6px 10px 0 0;
  color: var(--blue);
  font-family: var(--font-serif);
  font-size: 60px;
  font-weight: 300;
  line-height: .85;
}

.article-body > h2,
.article-body > .wp-block-heading:is(h2) {
  margin-top: 64px;
  margin-bottom: 22px;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 300;
  letter-spacing: -.5px;
  line-height: 1.2;
  scroll-margin-top: 140px;
}

.article-body > h3,
.article-body > .wp-block-heading:is(h3) {
  margin-top: 40px;
  margin-bottom: 14px;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -.2px;
  line-height: 1.3;
}

.article-body strong {
  color: var(--text);
  font-weight: 700;
}

.article-body a {
  color: var(--blue);
  text-decoration-color: rgba(50, 83, 255, .35);
  text-underline-offset: 2px;
}

.article-body a:hover {
  text-decoration-color: var(--blue);
}

/* Optional inline hero image. The post's featured image remains archive-only. */
.article-heroimg-wrap {
  width: min(1040px, calc(100vw - 48px));
  max-width: none !important;
  margin: 0 auto 48px;
}

.article-heroimg-wrap .wp-block-image,
.article-heroimg-wrap figure {
  margin: 0;
}

.article-heroimg-wrap img,
.article-heroimg {
  display: block;
  width: 100%;
  aspect-ratio: 21 / 9;
  border-radius: 14px;
  object-fit: cover;
  filter: brightness(.92) saturate(1.05);
}

.article-heroimg-wrap .is-style-fcld-focus-upper img {
  object-position: 50% 25%;
}

.article-heroimg-wrap .is-style-fcld-focus-center img {
  object-position: 50% 50%;
}

.article-heroimg-wrap .is-style-fcld-focus-lower img {
  object-position: 50% 75%;
}

/* Sticky editor-created table of contents. */
.jump-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 60;
  width: 100vw;
  max-width: none !important;
  margin: 0 calc(50% - 50vw) 48px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
}

body.admin-bar .jump-nav-wrap {
  top: 32px;
}

.jump-nav,
.jump-nav.wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 720px;
  margin: 0 auto;
}

.jump-nav .wp-block-button__link,
.jump-nav a {
  padding: 6px 14px;
  border: 1px solid var(--border-card);
  border-radius: 100px;
  background: transparent;
  color: var(--text-muted);
  font: 400 12.5px/1.4 var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  transition: all .2s;
}

.jump-nav .wp-block-button__link:hover,
.jump-nav a:hover,
.jump-nav a.active {
  border-color: rgba(50, 83, 255, .35);
  background: var(--blue-pale);
  color: var(--blue);
}

.hero-stat {
  margin-top: 56px;
  margin-bottom: 56px;
  text-align: center;
}

.hero-stat-value,
.stat-cell-value {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-stat-value {
  gap: 12px;
}

.hero-stat-qualifier {
  margin: 0 0 10px;
  color: var(--text-muted);
  font: 500 14px/1.2 var(--font-sans);
  letter-spacing: .01em;
}

.hero-stat-num {
  margin: 0;
  color: var(--blue);
  font-family: var(--font-serif);
  font-size: clamp(72px, 13vw, 148px);
  font-weight: 300;
  letter-spacing: -4px;
  line-height: .9;
}

.hero-stat-line {
  width: 56px !important;
  height: 2px;
  margin: 20px auto 22px;
  border: 0;
  background: var(--golden);
}

.hero-stat-label {
  max-width: 520px;
  margin: 0 auto;
  color: var(--text-dim);
  font-size: 17px;
  line-height: 1.6;
}

.hero-stat-source {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: .06em;
  opacity: .65;
  text-transform: uppercase;
}

.diagram-wrap {
  margin-top: 44px;
  margin-bottom: 44px;
  text-align: center;
}

.diagram-pair .wp-block-image,
.diagram-pair figure {
  margin: 0;
}

.diagram-pair img,
.diagram-svg img {
  display: block;
  width: 100%;
  height: auto;
}

.diagram-pair .theme-dark,
.diagram-svg.theme-dark {
  display: block;
}

.diagram-pair .theme-light,
.diagram-svg.theme-light {
  display: none;
}

[data-theme="light"] .diagram-pair .theme-dark,
[data-theme="light"] .diagram-svg.theme-dark {
  display: none;
}

[data-theme="light"] .diagram-pair .theme-light,
[data-theme="light"] .diagram-svg.theme-light {
  display: block;
}

.diagram-caption {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 12.5px;
}

.pull-quote,
.wp-block-quote.is-style-fcld-pull-quote {
  margin-top: 48px;
  margin-bottom: 48px;
  padding: 4px 0 4px 28px;
  border: 0;
  border-left: 3px solid var(--blue);
}

.pull-quote p,
.wp-block-quote.is-style-fcld-pull-quote p {
  margin: 0;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.6vw, 30px);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -.2px;
  line-height: 1.35;
}

.stat-block {
  margin-top: 44px;
  margin-bottom: 44px;
}

.stat-block-title {
  margin: 0 0 18px;
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-align: center;
  text-transform: uppercase;
}

.stat-grid.wp-block-columns {
  gap: 1px;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--border);
}

.stat-grid.cols-2 > .wp-block-column,
.stat-grid.cols-3 > .wp-block-column,
.stat-grid.cols-4 > .wp-block-column,
.stat-grid.cols-6 > .wp-block-column,
.stat-grid.cols-8 > .wp-block-column,
.stat-cell {
  flex-basis: 0;
  padding: 26px 18px;
  background: var(--bg-card);
  text-align: center;
}

.stat-grid.cols-6,
.stat-grid.cols-8 {
  flex-wrap: wrap !important;
}

.stat-grid.cols-6 > .wp-block-column {
  flex-basis: calc((100% - 2px) / 3) !important;
}

.stat-grid.cols-8 > .wp-block-column {
  flex-basis: calc((100% - 3px) / 4) !important;
}

.stat-cell-num {
  margin: 0 0 10px;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 300;
  letter-spacing: -1px;
  line-height: 1;
}

.stat-cell-value {
  gap: 7px;
  margin: 0 0 10px;
}

.stat-cell-value .stat-cell-num {
  margin: 0;
}

.stat-cell-qualifier {
  margin: 0 0 3px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1.2;
}

.stat-cell-label {
  margin: 0;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.action-list,
.action-card-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 36px;
  margin-bottom: 36px;
}

.action-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 20px;
  align-items: start;
  padding: 22px 24px;
  border: 1px solid var(--border-card);
  border-radius: 12px;
  background: var(--bg-card);
}

.action-num {
  margin: 0;
  color: var(--blue);
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
}

.action-item h4,
.action-item p {
  margin-top: 0;
}

.action-item h4 {
  margin-bottom: 6px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
}

.action-item p {
  margin-bottom: 0;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
}

.action-card {
  padding: 28px;
  border: 1px solid var(--border-card);
  border-radius: 14px;
  background: var(--bg-card);
}

.action-card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 0 0 14px;
  border: 1px solid rgba(50, 83, 255, .25);
  border-radius: 50%;
  background: var(--blue-pale);
  color: var(--blue);
  font-family: var(--font-serif);
  font-size: 15px;
}

.action-card h4 {
  margin: 0 0 10px;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
}

.action-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.75;
}

.compare-wrap {
  margin-top: 36px;
  margin-bottom: 20px;
  scroll-margin-top: 140px;
}

.compare-heading {
  margin: 0 0 6px;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 300;
  text-align: center;
}

.compare-heading .amp {
  display: block;
  margin-top: 8px;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.compare-grid.wp-block-columns {
  gap: 16px;
  margin: 24px 0 8px;
}

.compare-card {
  padding: 26px;
  border-radius: 14px;
}

.compare-card.neg {
  border: 1px solid var(--negative-border);
  background: var(--negative-pale);
}

.compare-card.pos {
  border: 1px solid rgba(50, 83, 255, .22);
  background: var(--blue-pale);
}

.compare-label {
  margin: 0 0 12px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.compare-card.neg .compare-label { color: var(--negative); }
.compare-card.pos .compare-label { color: var(--blue); }

.compare-card > p:last-child {
  margin: 0;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.7;
}

.moves-box {
  margin: 20px 0 8px;
  padding: 22px 24px;
  border: 1px solid var(--border-card);
  border-radius: 12px;
  background: var(--bg-card);
}

.moves-box-title {
  margin: 0 0 12px;
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.moves-box ul {
  margin: 0;
  padding-left: 20px;
}

.moves-box li {
  margin-bottom: 8px;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.7;
}

.moves-box li:last-child { margin-bottom: 0; }

.article-divider,
.wp-block-separator.is-style-fcld-article-divider {
  width: 100%;
  max-width: 680px;
  margin: 56px auto;
  border: 0;
  border-top: 1px solid var(--border);
  opacity: 1;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 1.1s cubic-bezier(.25, .46, .45, .94) .1s;
}

.article-divider.drawn,
.wp-block-separator.is-style-fcld-article-divider.drawn {
  transform: scaleX(1);
}

.cta-block {
  margin-top: 16px;
  margin-bottom: 80px;
}

.cta-card {
  padding: 44px 40px;
  border: 1px solid rgba(50, 83, 255, .2);
  border-radius: 18px;
  background: var(--bg-card);
  text-align: center;
}

.cta-eyebrow {
  margin: 0 0 14px;
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.cta-card h3 {
  margin: 0 0 14px;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 300;
  line-height: 1.25;
}

.cta-card > p:not(.cta-eyebrow):not(.cta-tagline) {
  max-width: 460px;
  margin: 0 auto 26px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
}

.cta-card .wp-block-buttons {
  justify-content: center;
}

.cta-card .wp-block-button__link,
.cta-btn {
  padding: 15px 32px;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s;
}

.cta-card .wp-block-button__link:hover,
.cta-btn:hover {
  background: var(--blue-light);
  transform: translateY(-1px);
}

.cta-tagline {
  margin: 26px 0 0;
  color: var(--text-muted);
  font-size: 13.5px;
}

.article-back {
  padding: 0 24px 80px;
}

.article-back a {
  color: var(--text-muted);
  text-underline-offset: 3px;
}

@media (max-width: 700px) {
  .article-hero { padding: 44px 20px 0; }
  .jump-nav-wrap { padding: 12px 16px; }
  body.single-ld_research .article-body > p:first-of-type::first-letter {
    padding: 4px 8px 0 0;
    font-size: 44px;
  }
  .cta-card { padding: 32px 24px; }
}

@media (max-width: 640px) {
  .article-body { padding-inline: 20px; }
  .stat-grid.wp-block-columns,
  .compare-grid.wp-block-columns { flex-wrap: wrap !important; }
  .stat-grid.cols-2 > .wp-block-column,
  .stat-grid.cols-3 > .wp-block-column,
  .compare-grid > .wp-block-column { flex-basis: 100% !important; }
  .stat-grid.cols-4 > .wp-block-column,
  .stat-grid.cols-6 > .wp-block-column,
  .stat-grid.cols-8 > .wp-block-column { flex-basis: calc((100% - 1px) / 2) !important; }
  .action-item { grid-template-columns: 28px 1fr; gap: 14px; padding: 20px; }
}

@media screen and (max-width: 782px) {
  body.admin-bar .jump-nav-wrap {
    top: 46px;
  }
}

@media screen and (max-width: 600px) {
  body.admin-bar .jump-nav-wrap {
    top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .article-divider,
  .wp-block-separator.is-style-fcld-article-divider {
    transform: scaleX(1);
    transition: none;
  }
}

/* Editing should remain stable: sticky/hidden/animated pieces are all visible. */
.editor-styles-wrapper .jump-nav-wrap {
  position: static;
  width: auto;
  margin-inline: 0;
}

.editor-styles-wrapper .diagram-pair .theme-dark,
.editor-styles-wrapper .diagram-pair .theme-light {
  display: block;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px dashed var(--border-card);
}

.editor-styles-wrapper .article-divider,
.editor-styles-wrapper .wp-block-separator.is-style-fcld-article-divider {
  transform: none;
}
