/* Market Solo blog refresh — editorial colour, clarity and parity with the public site. */

body {
  background:
    radial-gradient(circle at 8% 15%, rgba(78, 92, 255, .08), transparent 26rem),
    var(--ms-background-primary);
}

.ms-header {
  background: rgba(247, 244, 239, .9);
  border-bottom: 1px solid rgba(16, 16, 18, .11);
  box-shadow: 0 10px 40px rgba(13, 13, 20, .045);
}
.ms-nav { height: 78px; }
.ms-brand { font-size: 16px; }
.ms-brand span {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, #171927 8%, #4e5cff 52%, #ff6653 100%);
  box-shadow: 0 8px 24px rgba(78, 92, 255, .22);
}
.ms-nav nav { margin-left: 24px; gap: 34px; }
.ms-nav nav a { color: #4d4b50; }
.ms-nav nav a.is-current { color: #111116; font-weight: 750; }
.ms-nav nav a.is-current::after { transform: scaleX(1); }
.ms-language-switcher { display: inline-flex; align-items: center; gap: 3px; padding: 4px; border: 1px solid rgba(17,17,22,.12); border-radius: 999px; }
.ms-language-switcher a { min-width: 30px; padding: 6px 8px; border-radius: 999px; color: #77727a; font-size: 10px; font-weight: 850; letter-spacing: .08em; text-align: center; }
.ms-language-switcher a.is-active { background: #111116; color: #fff; }
.ms-contact-button {
  min-height: 46px;
  padding-inline: 24px;
  border: 0;
  border-radius: 999px;
  background: #111116;
  box-shadow: 0 10px 28px rgba(10, 10, 16, .16);
}
.ms-contact-button:hover { background: #292932; }

.ms-blog-index { padding: 0; }
.ms-blog-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(78px, 10vw, 142px) 0 clamp(72px, 9vw, 124px);
  background:
    radial-gradient(circle at 78% 28%, rgba(76, 91, 255, .34), transparent 28rem),
    radial-gradient(circle at 62% 112%, rgba(255, 84, 78, .27), transparent 31rem),
    linear-gradient(132deg, #0d0e20 0%, #171933 58%, #241b32 100%);
  color: #fff;
}
.ms-blog-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(115deg, rgba(255,255,255,.055), transparent 22%, transparent 78%, rgba(255,255,255,.025)),
    repeating-linear-gradient(90deg, transparent 0, transparent calc(25% - 1px), rgba(255,255,255,.035) 25%);
  pointer-events: none;
}
.ms-blog-hero::after {
  position: absolute;
  right: clamp(24px, 8vw, 140px);
  bottom: -120px;
  width: clamp(230px, 33vw, 490px);
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 48px rgba(255,255,255,.025), 0 0 0 96px rgba(255,255,255,.018);
}
.ms-blog-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 30px;
  color: rgba(255,255,255,.64);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.ms-blog-kicker span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff6553;
  box-shadow: 0 0 0 6px rgba(255,101,83,.12);
}
.ms-blog-hero h1 {
  max-width: 950px;
  margin: 0;
  font-size: clamp(62px, 9vw, 126px);
  font-weight: 670;
  line-height: .86;
  letter-spacing: -.075em;
}
.ms-blog-hero h1 strong {
  font-weight: inherit;
  background: linear-gradient(90deg, #6873ff 0%, #b767dc 50%, #ff6653 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ms-blog-feed { padding-block: clamp(70px, 9vw, 126px); }
.ms-post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  border: 0;
}
.ms-post-grid article {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 430px;
  padding: clamp(28px, 4vw, 48px);
  overflow: hidden;
  border: 1px solid rgba(17,17,22,.11);
  border-radius: 28px;
  background:
    radial-gradient(circle at 106% 100%, rgba(76,91,255,.16), transparent 42%),
    linear-gradient(145deg, rgba(255,255,255,.94), rgba(251,247,242,.88));
  box-shadow: 0 24px 70px rgba(21, 20, 31, .08);
}
.ms-post-grid article::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, #ff6653, #a762df 52%, #586bff);
}
.ms-post-grid article:nth-of-type(3n + 2) {
  background:
    radial-gradient(circle at 105% 105%, rgba(255,95,75,.15), transparent 43%),
    linear-gradient(145deg, rgba(255,255,255,.94), rgba(252,247,244,.9));
}
.ms-post-grid article:nth-of-type(3n) {
  background:
    radial-gradient(circle at 105% 105%, rgba(167,98,223,.15), transparent 43%),
    linear-gradient(145deg, rgba(255,255,255,.94), rgba(248,247,253,.9));
}
.ms-post-grid article.is-featured {
  grid-column: 1 / -1;
  min-height: 470px;
  padding-right: min(44%, 520px);
  background:
    radial-gradient(circle at 88% 48%, rgba(117,95,237,.52), transparent 24rem),
    radial-gradient(circle at 105% 112%, rgba(255,91,74,.44), transparent 28rem),
    linear-gradient(135deg, #101122, #20234a 72%, #30203e);
  color: #fff;
  box-shadow: 0 36px 100px rgba(22, 19, 49, .2);
}
.ms-post-grid article.is-featured::after {
  position: absolute;
  right: 8%;
  bottom: -18%;
  width: 29%;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 36px rgba(255,255,255,.035), 0 0 0 72px rgba(255,255,255,.02);
}
.ms-post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 34px;
  color: #77727a;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.ms-post-meta span {
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(88,107,255,.1);
  color: #4454d9;
}
.is-featured .ms-post-meta { color: rgba(255,255,255,.58); }
.is-featured .ms-post-meta span { background: rgba(255,255,255,.1); color: #fff; }
.ms-post-grid article h2 {
  margin: 0 0 22px;
  font-size: clamp(31px, 3.2vw, 48px);
  line-height: .98;
  letter-spacing: -.052em;
}
.ms-post-grid article.is-featured h2 { font-size: clamp(42px, 5.2vw, 72px); }
.ms-post-excerpt {
  max-width: 720px;
  color: #68636a;
  font-size: 15px;
  line-height: 1.7;
}
.ms-post-excerpt p { margin: 0; }
.is-featured .ms-post-excerpt { color: rgba(255,255,255,.68); }
.ms-read-link {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin-top: auto;
  padding-top: 34px;
  color: #17171c !important;
  font-size: 14px !important;
  font-weight: 800;
}
.ms-read-link::after { display: none; }
.ms-read-link i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #111116;
  color: #fff;
  font-style: normal;
  transition: transform 220ms ease, background 220ms ease;
}
.is-featured .ms-read-link { color: #fff !important; }
.is-featured .ms-read-link i { background: #fff; color: #111116; }
.ms-post-grid article:hover { transform: translate3d(0, -7px, 0); }
.ms-post-grid article:hover .ms-read-link i { transform: rotate(8deg); background: #5969ff; }

.ms-article-page { padding: 0; }
.ms-article-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(66px, 9vw, 124px) 0 clamp(74px, 10vw, 138px);
  background:
    radial-gradient(circle at 82% 10%, rgba(83,101,255,.33), transparent 29rem),
    radial-gradient(circle at 72% 120%, rgba(255,91,78,.24), transparent 31rem),
    #0f1022;
  color: #fff;
}
.ms-article-hero .ms-shell { max-width: 1040px; }
.ms-back-link { display: inline-flex; margin-bottom: clamp(52px, 8vw, 92px); color: rgba(255,255,255,.64); font-size: 13px; font-weight: 700; }
.ms-back-link:hover { color: #fff; }
.ms-article-meta { display: flex; gap: 18px; margin-bottom: 26px; color: rgba(255,255,255,.55); font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.ms-article-meta span { color: #ff8271; }
.ms-article-hero h1 { max-width: 1020px; margin: 0; font-size: clamp(52px, 7.6vw, 104px); line-height: .91; letter-spacing: -.068em; }
.ms-article-body { padding: clamp(70px, 9vw, 122px) 0; font-size: clamp(17px, 1.45vw, 20px); line-height: 1.78; }
/* A whole article can never satisfy the reveal observer's 12% viewport threshold. */
.ms-motion-ready .ms-article-body.ms-reveal { opacity: 1; transform: none; }
.ms-article-body > .ms-shell { max-width: 850px; counter-reset: ms-article-section; }
.ms-article-body > .ms-shell > .wp-block-group {
  margin: 0 0 38px;
  padding: clamp(27px, 4.5vw, 48px);
  border: 1px solid rgba(47, 46, 106, .1);
  border-radius: 28px;
  background: linear-gradient(140deg, #fffdfb, #f5f5ff);
  box-shadow: 0 18px 50px rgba(31, 25, 52, .05);
}
.ms-article-body > .ms-shell > .wp-block-group:not(.seo-autopilot-intro) { counter-increment: ms-article-section; }
.ms-article-body > .ms-shell > .wp-block-group:not(.seo-autopilot-intro) > h2:first-child::before {
  content: counter(ms-article-section, decimal-leading-zero);
  display: block;
  margin: 0 0 13px;
  color: #6665b7;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .17em;
}
.ms-article-body > .ms-shell > .wp-block-group:nth-of-type(even) {
  background: linear-gradient(140deg, #fffdfb, #faf3f8);
}
.ms-article-body > .ms-shell > .wp-block-group > h2:first-child {
  margin: 0 0 22px;
  padding: 0 0 21px;
  border-bottom: 1px solid rgba(69, 72, 160, .16);
}
.ms-article-body > .ms-shell > .seo-autopilot-intro > h2:first-child { display: none; }
.ms-article-body h2 { margin: 2.25em 0 .85em; font-size: clamp(36px, 4.5vw, 58px); line-height: 1.02; letter-spacing: -.055em; color: #15172b; }
.ms-article-body h3 { margin: 2.1em 0 .8em; font-size: clamp(25px, 2.9vw, 37px); line-height: 1.13; letter-spacing: -.035em; color: #4548a0; }
.ms-article-body h4 { margin: 1.9em 0 .72em; font-size: clamp(21px, 2.2vw, 27px); line-height: 1.2; letter-spacing: -.025em; color: #25234d; }
.ms-article-body p { margin: 0 0 1.35em; }
/* Give each paragraph its own quiet surface so long, image-free reads scan easily. */
.ms-article-body > .ms-shell > p,
.ms-article-body .wp-block-group > p {
  max-width: 68ch;
  margin: 0 0 12px;
  padding: 17px clamp(17px, 2.1vw, 26px);
  border: 0;
  border-radius: 12px;
  background: rgba(238, 239, 255, .52);
  box-shadow: none;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.7;
}
.ms-article-body > .ms-shell > p:nth-of-type(even),
.ms-article-body .wp-block-group > p:nth-of-type(even) {
  background: rgba(251, 242, 249, .62);
}
.ms-article-body .seo-autopilot-intro > p { margin: 0; font-size: 1.13em; line-height: 1.7; background: transparent; padding: 0; }
.ms-article-body .wp-block-group:not(.seo-autopilot-intro) > p:first-of-type:not(:has(> strong:only-child)) {
  max-width: 64ch;
  padding: 0 0 13px;
  background: transparent;
  color: #272847;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.54;
  letter-spacing: -.015em;
}
.ms-article-body .wp-block-group > p:has(> strong:only-child) {
  margin: 19px 0;
  padding: clamp(30px, 4vw, 45px);
  border: 0;
  border-radius: 23px;
  background: linear-gradient(125deg, #191b4c, #514bb0 58%, #8b518e);
  color: #fff;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.35;
  letter-spacing: -.025em;
  box-shadow: 0 20px 42px rgba(40, 35, 91, .19);
}
.ms-article-body .wp-block-group > p:has(> strong:only-child) strong { font-weight: 660; }
.ms-article-body h2 + p,
.ms-article-body h3 + p { margin-top: 0; }
.ms-article-body ul,
.ms-article-body ol { margin: 1.8em 0; padding: 26px 28px 26px 52px; border: 1px solid rgba(17,17,22,.1); border-radius: 18px; background: rgba(255,255,255,.56); }
.ms-article-body li { margin: .55em 0; padding-left: .25em; }
.ms-article-body blockquote { margin: 2.4em 0; padding: 30px 34px; border-left: 4px solid #5969ff; border-radius: 0 18px 18px 0; background: linear-gradient(110deg, rgba(89,105,255,.1), rgba(255,96,79,.06)); font-size: 1.2em; line-height: 1.55; }
.ms-article-cta { padding: 0 0 clamp(74px, 9vw, 120px); }
.ms-article-cta .ms-shell { display: flex; align-items: center; justify-content: space-between; gap: 30px; max-width: 1040px; padding: clamp(32px, 5vw, 58px); border-radius: 26px; background: linear-gradient(120deg, #121328, #272555 64%, #4a2746); color: #fff; }
.ms-article-cta p { max-width: 650px; margin: 0; font-size: clamp(28px, 4vw, 48px); font-weight: 680; line-height: 1; letter-spacing: -.05em; }
.ms-article-cta .ms-button { flex: 0 0 auto; border-radius: 999px; background: #fff; color: #111116; }

.ms-footer {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 9vw, 118px) 0 34px;
  background:
    radial-gradient(circle at 82% 22%, rgba(83,101,255,.24), transparent 27rem),
    radial-gradient(circle at 68% 116%, rgba(255,91,78,.18), transparent 28rem),
    #0d0e1c;
  color: #fff;
}
.ms-footer .ms-shell { grid-template-columns: .8fr 1.2fr; align-items: end; gap: 42px; }
.ms-footer .ms-brand span { background: linear-gradient(145deg, #4e5cff, #ff6653); }
.ms-footer-brand p { margin-top: 16px; color: rgba(255,255,255,.52); }
.ms-footer-statement { margin: 0 !important; color: #fff !important; font-size: clamp(38px, 5vw, 66px) !important; font-weight: 650; line-height: .95; letter-spacing: -.06em; }
.ms-footer-statement span { background: linear-gradient(90deg, #6f7bff, #cb68cf 52%, #ff6653); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ms-footer nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 24px; padding-top: 38px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.6); }
.ms-footer small { grid-column: 1 / -1; color: rgba(255,255,255,.38); }

@media (max-width: 980px) {
  .ms-nav nav { margin-left: 0; }
  .ms-nav nav.is-open { background: #fffdf9; }
  .ms-post-grid { grid-template-columns: 1fr; }
  .ms-post-grid article.is-featured { grid-column: auto; padding-right: clamp(28px, 4vw, 48px); }
  .ms-post-grid article.is-featured::after { opacity: .35; }
}

@media (max-width: 640px) {
  .ms-nav { height: 70px; }
  .ms-brand span { width: 34px; height: 34px; }
  .ms-nav-actions .ms-contact-button { min-height: 40px; padding-inline: 16px; }
  .ms-language-switcher a { min-width: 27px; padding: 5px 6px; }
  .ms-blog-hero { padding: 72px 0 78px; }
  .ms-blog-hero h1 { font-size: clamp(56px, 18vw, 78px); }
  .ms-blog-hero::after { right: -100px; opacity: .6; }
  .ms-blog-feed { padding-block: 54px 76px; }
  .ms-post-grid article,
  .ms-post-grid article.is-featured { min-height: 390px; padding: 28px 24px; border-radius: 22px; }
  .ms-post-grid article.is-featured h2 { font-size: clamp(35px, 11vw, 48px); }
  .ms-post-meta { align-items: flex-start; flex-direction: column; margin-bottom: 28px; }
  .ms-article-hero { padding: 48px 0 72px; }
  .ms-back-link { margin-bottom: 52px; }
  .ms-article-hero h1 { font-size: clamp(44px, 13vw, 64px); }
  .ms-article-body { padding: 58px 0 74px; }
  .ms-article-body > .ms-shell > .wp-block-group { padding: 25px 20px; border-radius: 22px; }
  .ms-article-body > .ms-shell > p,
  .ms-article-body .wp-block-group > p { padding: 15px 16px; }
  .ms-article-body .wp-block-group:not(.seo-autopilot-intro) > p:first-of-type:not(:has(> strong:only-child)) { padding: 0 0 12px; }
  .ms-article-body .seo-autopilot-intro > p { padding: 0; }
  .ms-article-body ul,
  .ms-article-body ol { padding: 22px 20px 22px 42px; }
  .ms-article-cta .ms-shell { align-items: flex-start; flex-direction: column; border-radius: 22px; }
  .ms-footer .ms-shell { grid-template-columns: 1fr; }
  .ms-footer-statement { margin-top: 22px !important; }
  .ms-footer nav,
  .ms-footer small { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .ms-post-grid article:hover,
  .ms-post-grid article:hover .ms-read-link i { transform: none; }
}

/* Editorial v2: one coherent section, not a stack of paragraph widgets. */
.ms-article-hero { padding: clamp(48px, 6vw, 80px) 0 clamp(56px, 7vw, 94px); }
.ms-article-hero .ms-shell { max-width: 1040px; }
.ms-article-hero .ms-back-link { margin-bottom: 36px; }
.ms-article-hero h1 { max-width: 920px; font-size: clamp(42px, 6.4vw, 82px); line-height: 1.02; letter-spacing: -.055em; text-wrap: balance; }
.ms-article-summary { max-width: 760px; margin-top: 28px; color: #d5d6e8; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.65; }
.ms-article-summary p { margin: 0; }
.ms-article-hero-extra { max-width: 760px; margin-top: 20px; color: #d5d6e8; font-size: 18px; line-height: 1.65; }
.ms-article-hero-extra .wp-block-buttons { margin-top: 24px; }
.ms-article-summary a { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.ms-article-body { padding: clamp(42px, 5vw, 72px) 0; }
.ms-article-body > .ms-shell { max-width: 1040px; }
.ms-article-body > .ms-shell > .wp-block-group {
  margin: 0 0 28px; padding: clamp(28px, 4vw, 48px); border-radius: 24px;
  border: 1px solid #e1dff0; background: linear-gradient(125deg, #fffdfb 35%, #f0effb);
  box-shadow: 0 12px 36px rgba(35, 30, 62, .04);
}
.ms-article-body > .ms-shell > .wp-block-group:nth-of-type(even) { background: linear-gradient(125deg, #fffdfb 35%, #fbefea); border-color: #eadfd9; }
.ms-article-body > .ms-shell > .wp-block-group:not(.seo-autopilot-intro) > h2:first-child::before { content: none; }
.ms-article-body > .ms-shell > .wp-block-group > h2:first-child { margin-bottom: 22px; padding: 0; border: 0; }
.ms-article-body h2 { max-width: 820px; margin: 44px 0 22px; font-size: clamp(29px, 3.3vw, 43px); line-height: 1.12; letter-spacing: -.038em; text-wrap: balance; }
.ms-article-body h3 { max-width: 760px; margin: 32px 0 14px; font-size: clamp(21px, 2.1vw, 26px); line-height: 1.28; letter-spacing: -.025em; color: #373969; }
.ms-article-body h4 { font-size: 20px; line-height: 1.35; }
.ms-article-body > .ms-shell > p,
.ms-article-body .wp-block-group > p,
.ms-article-body > .ms-shell > p:nth-of-type(even),
.ms-article-body .wp-block-group > p:nth-of-type(even),
.ms-article-body .wp-block-group:not(.seo-autopilot-intro) > p:first-of-type:not(:has(> strong:only-child)) {
  max-width: 72ch; padding: 0; margin: 0 0 20px; background: transparent; border-radius: 0;
  font-size: clamp(17px, 1.45vw, 19px); line-height: 1.75; letter-spacing: 0; color: #4b4b60;
}
.ms-article-body .wp-block-group > p:last-child { margin-bottom: 0; }
.ms-article-body .wp-block-group > :is(p, h2, h3, h4, blockquote, ul, ol) { margin-inline: 0 !important; }
.ms-article-body blockquote,
.ms-article-body .wp-block-group > p:has(> strong:only-child) {
  max-width: 760px; margin: 28px 0; padding: 24px 28px; border: 1px solid #f0cabe; border-left: 4px solid #ee7057;
  border-radius: 0 16px 16px 0; background: linear-gradient(115deg, #fff0e8, #fdf4ed);
  color: #60392f; font-size: clamp(20px, 2vw, 24px); font-weight: 600; line-height: 1.5; letter-spacing: -.015em; box-shadow: none;
}
.ms-article-body blockquote::before,
.ms-article-body blockquote::after { content: none; }
.ms-article-body blockquote p { margin: 0; padding: 0; background: none; font: inherit; color: inherit; }
.ms-article-body ul,
.ms-article-body ol { max-width: 760px; padding: 0 0 0 24px; margin: 24px 0; border: 0; border-radius: 0; background: transparent; }
.ms-article-body li { padding-left: 6px; margin: 12px 0; font-size: 17px; line-height: 1.65; color: #4b4b60; }
.ms-article-body ul:has(> li > strong:first-child) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0; list-style: none; }
.ms-article-body ul:has(> li > strong:first-child) > li { margin: 0; padding: 20px 22px; border: 1px solid #dedde9; border-radius: 14px; background: rgba(255, 255, 255, .8); }
.ms-article-body ul:has(> li > strong:first-child) > li > strong:first-child { color: #303259; }
.ms-article-cta .ms-shell { padding: 32px 40px; }
.ms-article-cta p { font-size: clamp(26px, 3vw, 36px); line-height: 1.16; }
@media (max-width: 640px) {
  .ms-article-hero { padding: 38px 0 48px; }
  .ms-article-page .ms-shell { width: calc(100% - 40px); }
  .ms-article-hero .ms-back-link { margin-bottom: 26px; }
  .ms-article-summary { margin-top: 22px; font-size: 18px; }
  .ms-article-body > .ms-shell > .wp-block-group { padding: 26px 20px; margin-bottom: 20px; border-radius: 18px; }
  .ms-article-body blockquote,
  .ms-article-body .wp-block-group > p:has(> strong:only-child) { padding: 20px; font-size: 20px; }
  .ms-article-body ul:has(> li > strong:first-child) { grid-template-columns: 1fr; }
  .ms-article-cta .ms-shell { padding: 28px 24px; }
}
