/* SFX Blog — dedicated light reading theme */
body.blog-light-theme {
  --bg: #ffffff;
  --bg2: #f8f9fa;
  --bg3: #f1f3f4;
  --bg4: #e8eaed;
  --b: #dadce0;
  --b2: #e5e7eb;
  --b3: #edf0f2;
  --t: #202124;
  --t2: #3c4043;
  --t3: #5f6368;
  --sun: 26,115,232;
  background: #ffffff;
  color: #202124;
  font-weight: 400;
}

body.blog-light-theme::before,
body.blog-light-theme::after,
body.blog-light-theme #star-canvas { display: none; }

body.blog-light-theme main { margin-top: 64px; }
body.blog-light-theme * { scrollbar-color: #bdc1c6 transparent; }
body.blog-light-theme ::-webkit-scrollbar-thumb { background: #bdc1c6; }

body.blog-light-theme #back-to-top { border-color: #dadce0; background: #fff; color: #5f6368; box-shadow: 0 2px 8px rgba(60,64,67,.14); }

body.blog-light-theme footer { border-color: #e8eaed; background: #f8f9fa; }
body.blog-light-theme .flogo { color: #202124; }
body.blog-light-theme .fnav a,
body.blog-light-theme .fcp,
body.blog-light-theme .fdis { color: #5f6368; }
body.blog-light-theme .fnav a:hover { color: #1a73e8; }
body.blog-light-theme .fdis { margin: 0; background: #f8f9fa; }

.blog-shell {
  --blog-blue: #1a73e8;
  --blog-blue-dark: #1557b0;
  --blog-blue-soft: #e8f0fe;
  --blog-line: #e2e5e9;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #ffffff;
  color: #202124;
}

.blog-shell .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Blog index */
.blog-hero {
  padding: 4.5rem 1.75rem 4rem;
  border-bottom: 1px solid var(--blog-line);
  background: linear-gradient(135deg, #f8faff 0%, #f3f7ff 55%, #ffffff 100%);
}

.blog-hero-inner { width: min(1120px, 100%); margin: 0 auto; }

.blog-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
  color: var(--blog-blue);
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.blog-eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--blog-blue); }

.blog-hero h1 {
  max-width: 850px;
  margin: 0 0 1.15rem;
  color: #202124;
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.04em;
}

.blog-hero h1 strong { color: var(--blog-blue); font-weight: 650; }
.blog-hero p { max-width: 735px; margin: 0; color: #5f6368; font-size: 1.04rem; line-height: 1.75; }
.blog-main { width: min(1120px, calc(100% - 3.5rem)); margin: 0 auto; padding: 2.5rem 0 6rem; }
.blog-tools { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.blog-filters { display: flex; flex-wrap: wrap; gap: .5rem; }

.blog-filter {
  padding: .55rem .9rem;
  border: 1px solid #dadce0;
  border-radius: 999px;
  background: #ffffff;
  color: #3c4043;
  font: 550 .74rem/1 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s, box-shadow .15s;
}

.blog-filter:hover { border-color: #9aa0a6; background: #f8f9fa; }
.blog-filter.is-active { border-color: #aecbfa; background: var(--blog-blue-soft); color: #174ea6; }
.blog-filter:focus-visible { outline: 3px solid rgba(26,115,232,.2); outline-offset: 2px; }
.blog-search { position: relative; width: min(285px, 100%); flex: 0 0 auto; }
.blog-search i { position: absolute; top: 50%; left: .9rem; transform: translateY(-50%); color: #5f6368; font-size: .82rem; }

.blog-search input {
  width: 100%;
  padding: .7rem .9rem .7rem 2.35rem;
  border: 1px solid #dadce0;
  border-radius: 8px;
  outline: none;
  background: #ffffff;
  color: #202124;
  font: 400 .8rem/1.4 'Plus Jakarta Sans', sans-serif;
}

.blog-search input:focus { border-color: var(--blog-blue); box-shadow: 0 0 0 3px rgba(26,115,232,.13); }
.blog-search input::placeholder { color: #80868b; }

.blog-featured {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  min-height: 350px;
  margin-bottom: 2.75rem;
  overflow: hidden;
  border: 1px solid #dadce0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(60,64,67,.08);
}

.blog-featured-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 5vw, 3.75rem); }
.blog-kicker { margin-bottom: .8rem; color: var(--blog-blue); font-size: .68rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }

.blog-featured h2 {
  max-width: 700px;
  margin-bottom: 1rem;
  color: #202124;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  font-weight: 550;
  line-height: 1.22;
  letter-spacing: -.03em;
}

.blog-featured h2 a,
.blog-card h2 a { color: inherit; text-decoration: none; }
.blog-featured h2 a:hover,
.blog-card h2 a:hover { color: var(--blog-blue); }
.blog-featured p { max-width: 680px; margin-bottom: 1.4rem; color: #5f6368; font-size: .94rem; line-height: 1.75; }

.blog-featured-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
  overflow: hidden;
  border-left: 1px solid #d2e3fc;
  background: linear-gradient(150deg, #eef4ff, #dce9ff);
}

.blog-featured-art::before {
  content: '18';
  display: grid;
  place-items: center;
  width: 142px;
  height: 142px;
  border: 1px solid #aecbfa;
  border-radius: 28px;
  background: rgba(255,255,255,.78);
  color: var(--blog-blue);
  font-size: 3.4rem;
  font-weight: 650;
  letter-spacing: -.07em;
  box-shadow: 0 10px 34px rgba(26,115,232,.12);
}

.blog-featured-art::after { content: 'scenario questions'; position: absolute; bottom: calc(50% - 104px); color: #174ea6; font-size: .64rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.blog-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; color: #5f6368; font-size: .74rem; }
.blog-meta span { display: inline-flex; align-items: center; gap: 6px; }
.blog-meta i { color: #80868b; }

.blog-section-head { display: flex; justify-content: space-between; align-items: end; margin: 3.25rem 0 1.25rem; padding-bottom: .85rem; border-bottom: 1px solid var(--blog-line); }
.blog-section-head h2 { color: #202124; font-size: 1.18rem; font-weight: 600; letter-spacing: -.02em; }
.blog-section-head span { color: #5f6368; font-size: .74rem; }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }

.blog-card {
  display: flex;
  min-height: 265px;
  flex-direction: column;
  padding: 1.65rem;
  border: 1px solid #dadce0;
  border-radius: 12px;
  background: #ffffff;
  transition: border-color .16s, box-shadow .16s, transform .16s;
}

.blog-card:hover { border-color: #bdc1c6; box-shadow: 0 3px 10px rgba(60,64,67,.12); transform: translateY(-2px); }
.blog-card h2 { margin: .65rem 0 .75rem; color: #202124; font-size: 1.04rem; font-weight: 600; line-height: 1.45; letter-spacing: -.015em; }
.blog-card p { margin-bottom: 1.25rem; color: #5f6368; font-size: .8rem; line-height: 1.7; }
.blog-card .blog-meta { margin-top: auto; }
.blog-empty { display: none; padding: 4rem 1rem; color: #5f6368; text-align: center; font-size: .88rem; }
.blog-series { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }

.blog-series-card {
  min-height: 175px;
  padding: 1.45rem;
  border: 1px solid #dadce0;
  border-radius: 12px;
  background: #ffffff;
  text-decoration: none;
  transition: border-color .16s, box-shadow .16s, transform .16s;
}

.blog-series-card:hover { border-color: #aecbfa; box-shadow: 0 3px 10px rgba(60,64,67,.1); transform: translateY(-2px); }
.blog-series-card i { color: var(--blog-blue); font-size: 1.12rem; }
.blog-series-card h3 { margin: 1.05rem 0 .45rem; color: #202124; font-size: .92rem; font-weight: 600; }
.blog-series-card p { color: #5f6368; font-size: .75rem; line-height: 1.65; }

/* Article */
.article-progress { position: fixed; top: 64px; left: 0; z-index: 220; width: 100%; height: 3px; background: transparent; }
.article-progress span { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; background: var(--blog-blue); transition: transform .08s linear; }

.article-hero { width: min(1080px, calc(100% - 3rem)); margin: 0 auto; padding: 3.6rem 0 2.75rem; border-bottom: 1px solid var(--blog-line); }
.article-breadcrumbs { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.55rem; color: #5f6368; font-size: .72rem; }
.article-breadcrumbs a { color: #5f6368; text-decoration: none; }
.article-breadcrumbs a:hover { color: var(--blog-blue); text-decoration: underline; }
.article-breadcrumbs i { color: #9aa0a6; font-size: .6rem; }

.article-hero h1 {
  max-width: 920px;
  margin: .65rem 0 1.15rem;
  color: #202124;
  font-size: clamp(2.15rem, 4.6vw, 3.65rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.042em;
}

.article-dek { max-width: 820px; margin-bottom: 1.45rem; color: #5f6368; font-size: 1.06rem; line-height: 1.75; }

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 760px) 245px;
  gap: 4.5rem;
  width: min(1080px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 3rem 0 6rem;
}

.article-content { min-width: 0; color: #3c4043; }
.article-content > p:first-of-type { font-size: 1.09rem; color: #3c4043; }

.article-content h2 {
  margin: 3.4rem 0 1.15rem;
  padding: .2rem 0 0;
  color: #202124;
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -.028em;
  scroll-margin-top: 90px;
}

.article-content h2:first-of-type { margin-top: 0; }
.article-content h3 { margin: 2.35rem 0 .85rem; color: #202124; font-size: 1.2rem; font-weight: 650; line-height: 1.48; scroll-margin-top: 90px; }
.article-content h4 { margin: 1.65rem 0 .65rem; color: #3c4043; font-size: 1rem; font-weight: 650; }
.article-content p { margin-bottom: 1.2rem; color: #3c4043; font-size: 1rem; line-height: 1.82; }
.article-content strong { color: #202124; font-weight: 650; }
.article-content a { color: #1967d2; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-content a:hover { color: #174ea6; }
.article-content ul,
.article-content ol { margin: .8rem 0 1.4rem 1.45rem; }
.article-content li { margin-bottom: .58rem; padding-left: .15rem; color: #3c4043; font-size: 1rem; line-height: 1.75; }
.article-content li::marker { color: #5f6368; font-weight: 600; }
.article-content hr { margin: 2.75rem 0; border: 0; border-top: 1px solid var(--blog-line); }

.article-content blockquote { margin: 1.65rem 0; padding: 1.15rem 1.3rem; border: 0; border-left: 4px solid #4285f4; border-radius: 0 8px 8px 0; background: #f8fafd; }
.article-content blockquote p { margin: 0; color: #3c4043; }

.article-content code {
  padding: .14em .38em;
  border: 1px solid #e1e4e8;
  border-radius: 4px;
  background: #f6f8fa;
  color: #b3261e;
  font: .86em/1.5 'SFMono-Regular', Consolas, monospace;
}

.article-content pre { margin: 1.35rem 0 1.75rem; padding: 1.3rem 1.45rem; overflow-x: auto; border: 1px solid #30363d; border-radius: 10px; background: #202124; box-shadow: 0 2px 8px rgba(60,64,67,.12); }
.article-content pre code { padding: 0; border: 0; background: none; color: #f1f3f4; }
.article-content table { width: 100%; margin: 1.4rem 0 1.8rem; border: 1px solid #dadce0; border-radius: 8px; border-collapse: separate; border-spacing: 0; overflow: hidden; font-size: .88rem; }
.article-content th,
.article-content td { padding: .8rem .9rem; border-bottom: 1px solid #e8eaed; text-align: left; vertical-align: top; }
.article-content tr:last-child td { border-bottom: 0; }
.article-content th { background: #f8f9fa; color: #202124; font-weight: 650; }
.article-content td { color: #3c4043; }

.interview-answer {
  position: relative;
  margin: 1rem 0 1.75rem;
  padding: 1.35rem 1.45rem;
  border: 1px solid #d2e3fc;
  border-left: 4px solid #4285f4;
  border-radius: 0 10px 10px 0;
  background: #f8faff;
}

.interview-answer > p:last-child { margin-bottom: 0; }
.answer-label { display: inline-flex; align-items: center; gap: 6px; margin-bottom: .7rem; color: #174ea6; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.answer-label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #4285f4; }
.article-sidebar { min-width: 0; }
.article-side-inner { position: sticky; top: 98px; }
.article-side-block { margin-bottom: 1.2rem; padding: 0 0 0 1rem; border-left: 1px solid #dadce0; }
.article-side-title { margin-bottom: .7rem; color: #202124; font-size: .71rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.article-side-block a { display: block; margin-left: -1px; padding: .34rem .2rem .34rem 1rem; border-left: 2px solid transparent; color: #5f6368; font-size: .75rem; line-height: 1.5; text-decoration: none; }
.article-side-block a:hover { border-left-color: #1a73e8; color: #1a73e8; background: linear-gradient(90deg, #f4f8ff, transparent); }

.article-mobile-toc { display: none; margin: 0 0 2rem; border: 1px solid #dadce0; border-radius: 8px; background: #fff; }
.article-mobile-toc summary { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1rem; color: #202124; font-size: .82rem; font-weight: 650; cursor: pointer; list-style: none; }
.article-mobile-toc summary::-webkit-details-marker { display: none; }
.article-mobile-toc[open] summary i { transform: rotate(180deg); }
.article-mobile-toc nav { display: grid; padding: 0 1rem .9rem; }
.article-mobile-toc a { padding: .38rem 0; color: #5f6368; font-size: .78rem; text-decoration: none; }

.article-cta { margin-top: 3.75rem; padding: 2rem; border: 1px solid #d2e3fc; border-radius: 12px; background: linear-gradient(135deg, #f8faff, #eef4ff); }
.article-cta h2 { margin: 0 0 .6rem; padding: 0; font-size: 1.28rem; }
.article-cta p { max-width: 600px; }
.article-cta-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.15rem; }
.article-cta-btn { display: inline-flex; align-items: center; gap: 7px; padding: .7rem 1rem; border: 1px solid #bdc1c6; border-radius: 6px; background: #fff; color: #3c4043 !important; font-size: .78rem; font-weight: 600; text-decoration: none !important; }
.article-cta-btn:hover { border-color: #5f6368; }
.article-cta-btn.primary { border-color: var(--blog-blue); background: var(--blog-blue); color: #ffffff !important; }
.article-cta-btn.primary:hover { background: var(--blog-blue-dark); }
.article-cta-btn.whatsapp { border-color: #a8dab5; background: #e6f4ea; color: #137333 !important; }

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-series { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-grid { grid-template-columns: 1fr; gap: 0; }
  .article-sidebar { display: none; }
  .article-mobile-toc { display: block; }
}

@media (max-width: 768px) {
  body.blog-light-theme .sfx-header { padding: 0 18px !important; }
  .article-progress { top: 64px; }
}

@media (max-width: 720px) {
  .blog-hero { padding: 3.25rem 1.15rem 3rem; }
  .blog-hero h1 { font-size: clamp(2rem, 10vw, 3rem); }
  .blog-hero h1 br { display: none; }
  .blog-main { width: min(100% - 2rem, 1120px); padding-top: 2rem; }
  .blog-tools { align-items: stretch; flex-direction: column; }
  .blog-search { width: 100%; }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-art { min-height: 210px; border-top: 1px solid #d2e3fc; border-left: 0; }
  .blog-featured-art::before { width: 120px; height: 120px; font-size: 3rem; }
  .blog-featured-art::after { bottom: calc(50% - 90px); }
  .blog-grid,
  .blog-series { grid-template-columns: 1fr; }
  .article-hero,
  .article-grid { width: min(100% - 2rem, 900px); }
  .article-hero { padding-top: 2.6rem; }
  .article-hero h1 { font-size: clamp(2rem, 10vw, 3rem); }
  .article-dek { font-size: .98rem; }
  .article-grid { padding-top: 2rem; }
  .article-content p,
  .article-content li { font-size: .96rem; line-height: 1.78; }
  .article-content table { display: block; overflow-x: auto; }
  .interview-answer { padding: 1.15rem; }
  .article-cta { padding: 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  .blog-card,
  .blog-series-card,
  .article-progress span { transition: none; }
}
