/*
 * Sales Intellify blog: the blog page (/blog/) and single posts.
 * Loaded only on those views. Primary #2B2C43, accent #D90429, Sora + Inter.
 * Breakpoints: tablet <= 1024px, mobile <= 767px.
 *
 * Classes an author can use inside a post: p.si-fix (highlighted tip),
 * ul.si-checklist (tick list), a.si-btn (button).
 */

.si-blog-page {
  --si-primary: var(--si-color-midnight, #2B2C43);
  --si-deep: #1E1F31;
  --si-accent: var(--si-color-red, #D90429);
  --si-accent-dark: #B00321;
  --si-accent-light: #FF4D6A;
  --si-accent-soft: rgba(217, 4, 41, 0.08);
  --si-ink: var(--si-color-midnight, #2B2C43);
  --si-body: #5B5D72;
  --si-muted: #8A8CA0;
  --si-line: #E7E8EF;
  --si-white: #FFFFFF;
  --si-radius: 18px;
  --si-ease: cubic-bezier(.2,.7,.2,1);
  background: #F7F7FA;
}
.si-blog-page *, .si-blog-page *::before, .si-blog-page *::after { box-sizing: border-box; }
.si-blog-wrap { max-width: 1192px; margin: 0 auto; }

/* ---------- Component wrapper ---------- */
.si-blog {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--si-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.si-blog *, .si-blog *::before, .si-blog *::after { box-sizing: border-box; }
body .si-blog h2, body .si-blog h3 {
  font-family: 'Sora', sans-serif; color: var(--si-ink);
  letter-spacing: -0.02em; line-height: 1.25; margin: 0; text-transform: none;
}
body .si-blog p { margin: 0; }
body .si-blog a, body .si-blog a:hover, body .si-blog a:focus { color: inherit; text-decoration: none; }
.si-blog img { max-width: 100%; display: block; }

/* ---------- Buttons ---------- */
body .si-btn, body button.si-btn, body a.si-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1.2 'Sora', sans-serif; text-transform: none; letter-spacing: 0;
  border: 0; cursor: pointer; white-space: nowrap;
  padding: 14px 26px; border-radius: 999px;
  background: var(--si-accent); color: #fff !important; text-decoration: none;
  box-shadow: 0 8px 20px -8px rgba(217,4,41,.6);
  transition: background .25s var(--si-ease), transform .25s var(--si-ease);
}
body .si-btn:hover, body button.si-btn:hover, body a.si-btn:hover { background: var(--si-accent-dark); color: #fff !important; transform: translateY(-1px); }
.si-btn svg { transition: transform .25s var(--si-ease); }
.si-btn:hover svg { transform: translateX(3px); }
body a.si-btn.si-btn--ghost {
  background: transparent; color: var(--si-ink) !important;
  border: 1.5px solid var(--si-line); box-shadow: none;
}
body a.si-btn.si-btn--ghost:hover { background: #fff; color: var(--si-ink) !important; border-color: var(--si-ink); }
.si-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Search ---------- */
.si-search {
  display: flex; align-items: center; gap: 8px;
  max-width: 560px; padding: 8px 8px 8px 20px; margin: 0;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: border-color .3s var(--si-ease), background .3s var(--si-ease);
}
.si-search:focus-within { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.1); }
.si-search svg { flex: none; color: rgba(255,255,255,.55); }
body .si-search input[type="search"] {
  flex: 1; min-width: 0; width: auto; height: auto; margin: 0;
  background: transparent; border: 0; outline: 0; box-shadow: none; border-radius: 0;
  color: #fff; font: 500 15px 'Inter', sans-serif; padding: 10px 4px;
}
body .si-search input[type="search"]::placeholder { color: rgba(255,255,255,.5); opacity: 1; }

/* ---------- Tags / meta ---------- */
.si-tag {
  display: inline-block; font: 600 12px/1.4 'Inter', sans-serif;
  padding: 6px 12px; border-radius: 999px;
  background: var(--si-accent-soft); color: var(--si-accent); letter-spacing: .02em;
}
.si-meta { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--si-muted); line-height: 1.5; }
.si-blog .si-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none; object-fit: cover;
  background: var(--si-primary); margin: 0;
}
.si-meta strong { color: var(--si-ink); font-weight: 600; display: block; font-size: 14.5px; }
.si-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--si-muted); opacity: .6; display: inline-block; }

/* ---------- Featured post ---------- */
.si-featured {
  display: grid; grid-template-columns: 1.15fr 1fr;
  background: var(--si-white); border-radius: 24px; overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(43,44,67,.35);
  border: 1px solid var(--si-line);
}
.si-featured-media { position: relative; display: block; min-height: 400px; overflow: hidden; }
.si-featured-media img, .si-featured-media .si-thumb-art {
  position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover;
  transition: transform .8s var(--si-ease);
}
.si-featured:hover .si-featured-media img,
.si-featured:hover .si-featured-media .si-thumb-art { transform: scale(1.04); }
.si-featured-badge {
  position: absolute; top: 20px; left: 20px; z-index: 1;
  background: var(--si-accent); color: #fff;
  font: 600 12px/1 'Sora', sans-serif; letter-spacing: .08em; text-transform: uppercase;
  padding: 9px 14px; border-radius: 999px;
}
.si-featured-body { padding: 52px 48px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
body .si-blog .si-featured-body h2 { font-size: 34px; font-weight: 700; margin: 18px 0 16px; }
.si-featured-body h2 a { background: linear-gradient(var(--si-accent), var(--si-accent)) 0 100% / 0 2px no-repeat; transition: background-size .4s var(--si-ease); }
.si-featured-body h2 a:hover { background-size: 100% 2px; }
.si-featured-body p { font-size: 16.5px; margin-bottom: 28px !important; }

/* ---------- Filters ---------- */
.si-filters { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
body .si-blog .si-filter {
  cursor: pointer; text-transform: none; letter-spacing: 0; box-shadow: none;
  font: 500 14px/1.2 'Inter', sans-serif; white-space: nowrap;
  padding: 11px 18px; border-radius: 999px;
  background: var(--si-white); color: var(--si-ink);
  border: 1px solid var(--si-line);
  transition: all .25s var(--si-ease);
}
body .si-blog .si-filter:hover { border-color: var(--si-ink); }
body .si-blog .si-filter.is-active, body .si-blog .si-filter.is-active:hover { background: var(--si-primary); color: #fff; border-color: var(--si-primary); }

/* ---------- Post grid ---------- */
.si-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.si-post-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--si-white); border: 1px solid var(--si-line);
  border-radius: var(--si-radius); overflow: hidden;
  transition: transform .3s var(--si-ease), box-shadow .3s ease, border-color .3s ease;
}
/* Red bar that slides in along the top edge on hover */
.si-post-card::before {
  content: ""; position: absolute; left: 0; top: 0; z-index: 3;
  height: 3px; width: 100%; background: var(--si-accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s ease; pointer-events: none;
}
.si-post-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(43,44,67,.12); border-color: rgba(217,4,41,.35); }
.si-post-card:hover::before { transform: scaleX(1); }
.si-post-card-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.si-post-card-media img, .si-post-card-media .si-thumb-art {
  position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover;
  transition: transform .7s var(--si-ease);
}
.si-post-card:hover .si-post-card-media img, .si-post-card:hover .si-post-card-media .si-thumb-art { transform: scale(1.04); }
.si-post-card-media .si-tag {
  position: absolute; left: 16px; top: 16px; z-index: 1;
  background: rgba(255,255,255,.95); color: var(--si-primary);
}
.si-post-card-body { padding: 26px 26px 24px; display: flex; flex-direction: column; flex: 1; }
.si-post-card-date { font-size: 13px; color: var(--si-muted); display: flex; align-items: center; gap: 10px; }
body .si-blog .si-post-card h3 { font-size: 20px; font-weight: 600; margin: 12px 0 10px; }
.si-post-card p.si-excerpt {
  font-size: 15px; margin-bottom: 22px !important;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.si-post-card-foot {
  margin-top: auto; padding-top: 18px; border-top: 1px solid var(--si-line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.si-post-card-foot .si-meta .si-avatar { width: 32px; height: 32px; }
body .si-blog a.si-arrow {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--si-accent-soft); color: var(--si-accent);
  transition: background-color .3s ease, color .3s ease;
}
.si-arrow svg { transition: transform .25s ease; }
body .si-blog .si-post-card:hover a.si-arrow { background: var(--si-accent); color: #fff; }
.si-post-card:hover .si-arrow svg { transform: translateX(3px); }

/* Branded thumbnail for posts with no featured image */
.si-thumb-art { background: var(--si-primary); overflow: hidden; }
.si-thumb-art::before, .si-thumb-art::after { content: ""; position: absolute; border-radius: 50%; }
.si-thumb-art::before { width: 70%; aspect-ratio: 1; right: -15%; top: -30%; background: radial-gradient(circle, rgba(217,4,41,.75), rgba(217,4,41,0) 70%); }
.si-thumb-art::after { width: 55%; aspect-ratio: 1; left: -10%; bottom: -35%; border: 1.5px solid rgba(255,255,255,.18); }
.si-thumb-art span {
  position: absolute; left: 22px; right: 22px; bottom: 18px; z-index: 1;
  font: 700 28px/1.15 'Sora', sans-serif; color: rgba(255,255,255,.92); letter-spacing: -.02em;
}
.si-thumb-art.v2 { background: linear-gradient(135deg, #2B2C43 0%, #1E1F31 100%); }
.si-thumb-art.v2::before { left: -20%; right: auto; top: 20%; }
.si-thumb-art.v3 { background: linear-gradient(160deg, #3A3B57 0%, #2B2C43 60%); }
.si-thumb-art.v3::after { border-color: rgba(217,4,41,.5); left: 40%; }
.si-thumb-art.v4 { background: linear-gradient(200deg, #1E1F31 0%, #2B2C43 70%); }
.si-thumb-art.v4::before { right: auto; left: 18%; top: -45%; }

.si-empty { text-align: center; padding: 48px 0; color: var(--si-muted); grid-column: 1 / -1; }

.si-empty[hidden], .si-search-status[hidden] { display: none; }
body .si-blog p.si-search-status { margin: 0 0 28px; text-align: center; font-size: 15px; color: var(--si-body); }
.si-search-status strong { color: var(--si-ink); font-weight: 600; }
body .si-blog button.si-search-clear, body .si-blog button.si-search-clear:hover, body .si-blog button.si-search-clear:focus {
  margin: 0 0 0 10px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; cursor: pointer;
  font: 600 15px/1.4 'Inter', sans-serif; color: var(--si-accent); text-decoration: underline; text-underline-offset: 3px; text-transform: none; letter-spacing: 0;
}

ul.si-lead-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
ul.si-lead-points li {
  display: flex; align-items: center; gap: 12px; margin: 0; padding: 0;
  font: 500 15.5px/1.45 'Inter', sans-serif; color: rgba(255,255,255,.9);
}
ul.si-lead-points li::before, ul.si-lead-points li::marker { content: none; }
ul.si-lead-points svg {
  flex: none; width: 26px; height: 26px; padding: 6px; border-radius: 50%;
  background: rgba(255,77,106,.16); color: var(--si-accent-light);
}

@media (prefers-reduced-motion: reduce) {
  .si-blog *, .si-blog *::before, .si-btn, .si-btn svg, .si-lead-form * { transition: none !important; }
  .si-post-card:hover, .si-btn:hover { transform: none; }
}

/* ---------- Tablet (<=1024px) ---------- */
@media (max-width: 1024px) {
  .si-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .si-featured { grid-template-columns: 1fr; }
  .si-featured-media { min-height: 320px; }
  .si-featured-body { padding: 40px 36px; }
  body .si-blog .si-featured-body h2 { font-size: 30px; }
  .si-blog-hero::after { width: 460px; height: 460px; right: -180px; top: -200px; }
}

/* ---------- Mobile (<=767px) ---------- */
@media (max-width: 767px) {
  .si-grid { grid-template-columns: 1fr; gap: 20px; }
  .si-featured { border-radius: 20px; }
  .si-featured-media { min-height: 230px; }
  .si-featured-body { padding: 28px 22px; }
  body .si-blog .si-featured-body h2 { font-size: 24px; }
  .si-featured-body p { font-size: 15.5px; }
  .si-post-card-body { padding: 22px 20px 20px; }
  body .si-blog .si-post-card h3 { font-size: 18.5px; }
  .si-thumb-art span { font-size: 24px; }
  .si-filters { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .si-filters::-webkit-scrollbar { display: none; }
  .si-search { padding-left: 16px; }
  body .si-search .si-btn { padding: 12px 18px; }
  .si-cta-actions .si-btn { width: 100%; }
  ul.si-lead-points li { font-size: 15px; }
  .si-blog-hero::after { width: 360px; height: 360px; right: -160px; top: -160px; }
}

/* ==========================================================
   SINGLE POST
   ========================================================== */

/* Hero section for the post header: soft red glow from the top that fades out before the bottom edge */
.si-post-hero { position: relative; isolation: isolate; overflow: hidden; }
.si-post-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 75% at 50% 0%, rgba(217,4,41,.24) 0%, rgba(217,4,41,0) 70%);
}
.si-post-hero.is-light::after { background: radial-gradient(60% 80% at 50% 0%, rgba(217,4,41,.10) 0%, rgba(217,4,41,0) 70%); }

/* Header: breadcrumb, title, author */
.si-post-header { display: flex; flex-direction: column; align-items: flex-start; }
.si-post-header.is-center { align-items: center; text-align: center; }
.si-crumbs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font: 500 14px/1.4 'Inter', sans-serif; margin-bottom: 22px; }
.si-crumbs i { font-style: normal; opacity: .45; }
body .si-blog .si-crumbs a { color: var(--si-muted); transition: color .2s ease; }
body .si-blog .si-crumbs a:last-child { color: var(--si-accent); }
body .si-blog .si-crumbs a:hover { color: var(--si-ink); }
body .si-blog .is-dark .si-crumbs a { color: rgba(255,255,255,.62); }
body .si-blog .is-dark .si-crumbs a:last-child { color: var(--si-accent-light); }
body .si-blog .is-dark .si-crumbs a:hover { color: #fff; }
.is-dark .si-crumbs i { color: #fff; }
body .si-blog h1.si-post-title {
  font: 700 52px/1.12 'Sora', sans-serif; letter-spacing: -0.03em; text-transform: none;
  color: var(--si-ink); margin: 0 0 28px; max-width: 920px;
}
body .si-blog .is-dark h1.si-post-title { color: #fff; }
body .si-blog .si-post-excerpt { font-size: 18px; line-height: 1.6; max-width: 720px; margin: -8px 0 28px; }
.is-dark .si-post-excerpt { color: rgba(255,255,255,.72); }
.si-post-meta { text-align: left; }
.si-blog .si-post-meta .si-avatar { width: 46px; height: 46px; }
.si-post-meta strong { font: 600 15px/1.3 'Sora', sans-serif; }
.si-post-meta span { display: block; font-size: 14px; margin-top: 2px; }
.is-dark .si-post-meta strong { color: #fff; }
.is-dark .si-post-meta span { color: rgba(255,255,255,.62); }
.is-dark .si-blog .si-avatar, .si-post-header.is-dark .si-avatar { box-shadow: 0 0 0 2px rgba(255,255,255,.18); }

/* Featured image */
figure.si-post-image { margin: 0; }
.si-post-image-in {
  border-radius: 24px; overflow: hidden; background: var(--si-deep);
  box-shadow: 0 30px 80px -34px rgba(43,44,67,.45);
}
.si-post-image-in img { width: 100%; height: auto !important; display: block; }
/* Overlap version: sits half on the dark hero, half on the page */
figure.si-post-image.is-overlap {
  padding: 0 24px;
  background: linear-gradient(to bottom, var(--si-primary) 0, var(--si-primary) 50%, transparent 50%);
}
.si-post-image.is-overlap .si-post-image-in { max-width: 1040px; margin: 0 auto; }

/* Reading progress bar */
.si-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 99999; pointer-events: none; }
.si-progress span { display: block; height: 100%; background: var(--si-color-red, #D90429); transform: scaleX(0); transform-origin: left; }
.admin-bar .si-progress { top: 32px; }

/* Article body */
.si-center-760 { max-width: 760px; margin-left: auto !important; margin-right: auto !important; }
body .si-post-content {
  font: 400 18px/1.75 'Inter', system-ui, sans-serif; color: #44465C;
  -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
}
body .si-post-content p { margin: 0 0 1.4em; }
body .si-post-content h2, body .si-post-content h3, body .si-post-content h4 {
  font-family: 'Sora', sans-serif; color: var(--si-ink); letter-spacing: -0.02em; text-transform: none;
  scroll-margin-top: 110px;
}
body .si-post-content h2 { font-size: 30px; font-weight: 700; line-height: 1.25; margin: 1.9em 0 .6em; }
body .si-post-content h3 { font-size: 22px; font-weight: 600; line-height: 1.3; margin: 1.7em 0 .5em; }
body .si-post-content h4 { font-size: 18px; font-weight: 600; line-height: 1.35; margin: 1.5em 0 .5em; }
body .si-post-content > :first-child { margin-top: 0; }
body .si-post-content > :last-child { margin-bottom: 0; }
body .si-post-content a { color: var(--si-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s ease; }
body .si-post-content a:hover { color: var(--si-accent-dark); }
body .si-post-content strong { color: var(--si-ink); font-weight: 600; }
body .si-post-content ul, body .si-post-content ol { margin: 0 0 1.5em; padding-left: 1.35em; }
body .si-post-content li { margin: 0 0 .55em; padding-left: .25em; }
body .si-post-content li::marker { color: var(--si-accent); font-weight: 600; }
body .si-post-content blockquote {
  margin: 2em 0; padding: 26px 30px; border: 0; border-left: 3px solid var(--si-accent);
  border-radius: 0 16px 16px 0; background: #fff;
  font: 500 20px/1.55 'Sora', sans-serif; color: var(--si-ink); letter-spacing: -0.01em;
  box-shadow: 0 1px 2px rgba(43,44,67,.04), 0 12px 30px -18px rgba(43,44,67,.18);
}
body .si-post-content blockquote p { margin: 0 0 .6em; }
body .si-post-content blockquote p:last-child { margin: 0; }
body .si-post-content blockquote cite { display: block; margin-top: 12px; font: 500 14px 'Inter', sans-serif; font-style: normal; color: var(--si-muted); }
body .si-post-content img { max-width: 100%; height: auto; border-radius: 16px; }
body .si-post-content figure { margin: 2.2em 0; max-width: 100%; }
body .si-post-content figcaption { margin-top: 12px; text-align: center; font-size: 14px; color: var(--si-muted); }
body .si-post-content hr { border: 0; height: 1px; background: var(--si-line); margin: 2.6em 0; }
body .si-post-content code { font-size: .88em; padding: 2px 7px; border-radius: 6px; background: #ECEDF3; color: var(--si-ink); }
body .si-post-content pre { margin: 2em 0; padding: 22px 24px; border-radius: 16px; background: var(--si-deep); color: #E6E7F0; overflow-x: auto; font-size: 15px; line-height: 1.6; }
body .si-post-content pre code { padding: 0; background: none; color: inherit; }
body .si-post-content table { width: 100%; border-collapse: collapse; margin: 2em 0; font-size: 16px; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--si-line); }
body .si-post-content th { font: 600 14px 'Sora', sans-serif; color: var(--si-ink); text-align: left; background: #F1F2F6; }
body .si-post-content th, body .si-post-content td { padding: 14px 18px; border: 0; border-bottom: 1px solid var(--si-line); }
body .si-post-content tr:last-child td { border-bottom: 0; }

/* Optional classes for use inside a post:
   <p class="si-fix"> for a highlighted fix or tip, <ul class="si-checklist"> for a tick list, <a class="si-btn"> for a button */
body .si-post-content p.si-fix {
  margin: -0.4em 0 1.6em; padding: 16px 20px; background: #fff;
  border: 1px solid var(--si-line); border-left: 3px solid var(--si-accent); border-radius: 0 12px 12px 0;
  font-size: .95em; line-height: 1.65;
}
body .si-post-content p.si-fix > strong:first-child { color: var(--si-accent); }
body .si-post-content ul.si-checklist { list-style: none; padding: 8px 24px; margin: 0 0 1.6em; background: #fff; border: 1px solid var(--si-line); border-radius: 16px; }
body .si-post-content ul.si-checklist li { position: relative; margin: 0; padding: 14px 0 14px 38px; border-bottom: 1px solid var(--si-line); color: var(--si-ink); font-weight: 500; }
body .si-post-content ul.si-checklist li:last-child { border-bottom: 0; }
body .si-post-content ul.si-checklist li::marker { content: none; }
body .si-post-content ul.si-checklist li::before {
  content: ""; position: absolute; left: 0; top: 16px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--si-accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D90429' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
body .si-post-content a.si-btn, body .si-post-content a.si-btn:hover { color: #fff; text-decoration: none; }

/* Share */
.si-share.is-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid var(--si-line); border-bottom: 1px solid var(--si-line); }
.si-share.is-row .si-side-title { margin: 0 !important; }
.si-share-links { display: flex; flex-wrap: wrap; gap: 8px; }
body .si-blog .si-share-btn {
  display: inline-flex; align-items: center; min-height: 38px; padding: 8px 15px; border-radius: 999px; cursor: pointer;
  font: 500 13.5px/1.2 'Inter', sans-serif; text-transform: none; letter-spacing: 0;
  background: #fff; color: var(--si-ink); border: 1px solid var(--si-line); box-shadow: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
body .si-blog .si-share-btn:hover, body .si-blog .si-share-btn:focus { background: var(--si-primary); color: #fff; border-color: var(--si-primary); }
body .si-blog .si-share-btn.is-done { background: var(--si-accent); color: #fff; border-color: var(--si-accent); }

/* Author box */
.si-author { display: flex; gap: 20px; align-items: flex-start; background: #fff; border: 1px solid var(--si-line); border-radius: 20px; padding: 28px; }
.si-blog .si-author .si-avatar { width: 72px; height: 72px; }
.si-author-label { display: block; font: 600 12px/1.4 'Sora', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--si-muted); margin-bottom: 4px; }
body .si-blog a.si-author-name { display: inline-block; font: 600 20px/1.3 'Sora', sans-serif; letter-spacing: -0.02em; color: var(--si-ink); transition: color .2s ease; }
body .si-blog a.si-author-name:hover { color: var(--si-accent); }
body .si-blog .si-author p { font-size: 15.5px; line-height: 1.65; margin-top: 8px; }

@media (max-width: 1024px) {
  body .si-blog h1.si-post-title { font-size: 40px; }
  .si-post-image-in { border-radius: 20px; }
  figure.si-post-image.is-overlap { padding: 0 32px; }
  .si-related .si-post-card:nth-child(3):last-child { display: none; }
}
@media (max-width: 782px) { .admin-bar .si-progress { top: 46px; } }
@media (max-width: 767px) {
  body .si-blog h1.si-post-title { font-size: 30px; margin-bottom: 22px; }
  .si-crumbs { margin-bottom: 16px; font-size: 13.5px; }
  .si-post-image-in { border-radius: 16px; }
  figure.si-post-image.is-overlap { padding: 0 16px; }
  body .si-post-content { font-size: 17px; line-height: 1.7; }
  body .si-post-content h2 { font-size: 25px; }
  body .si-post-content h3 { font-size: 20px; }
  body .si-post-content blockquote { padding: 20px 20px; font-size: 18px; }
  body .si-post-content table { display: block; overflow-x: auto; }
  .si-author { flex-direction: column; gap: 14px; padding: 22px; }
  .si-share.is-row { gap: 12px; }
  .si-related .si-post-card:nth-child(3):last-child { display: flex; }
}

/* ==========================================================
   PAGE LAYOUT (sections around the components above)
   ========================================================== */

/* Blog page hero */
.si-blog-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--si-primary); padding: 110px 24px 160px; text-align: center;
}
.si-blog-hero::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 620px; height: 620px; right: -160px; top: -220px;
  background: radial-gradient(circle, rgba(217,4,41,.26) 0%, rgba(217,4,41,0) 65%);
}
/* No featured article below the hero: no overlap to make room for. */
.si-blog-hero.is-flat { padding-bottom: 110px; }
.si-blog-hero h1 {
  font: 700 64px/1.12 'Sora', sans-serif; letter-spacing: -1.2px; color: #fff;
  margin: 0 auto 20px; max-width: 860px; text-wrap: balance;
}
.si-blog-hero h1 span { color: var(--si-accent); }
.si-blog-hero-lead {
  font: 400 18px/1.65 'Inter', sans-serif; color: rgba(255,255,255,.72);
  margin: 0 auto 36px; max-width: 640px;
}
.si-blog-hero .si-search { margin-left: auto; margin-right: auto; }

/* Featured article overlaps the hero */
.si-blog-featured { position: relative; z-index: 2; padding: 0 24px; margin-top: -90px; }

/* Article list */
.si-blog-list { padding: 96px 24px 0; }
.si-blog-list > .si-blog-wrap > h2 {
  font: 700 40px/1.2 'Sora', sans-serif; letter-spacing: -0.8px; color: var(--si-ink);
  margin: 0 0 24px; text-align: center;
}
.si-blog-list .si-filters { margin-bottom: 44px; }

/* Lead capture box */
.si-lead-box {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center;
  background: var(--si-primary); border-radius: 28px; padding: 56px 56px 56px 64px; margin-top: 96px;
}
.si-lead-box:first-child { margin-top: 0; }
.si-lead-box::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(520px 320px at 0% 0%, rgba(217,4,41,.30), transparent 70%),
    radial-gradient(420px 280px at 100% 100%, rgba(255,255,255,.05), transparent 70%);
}
.si-lead-copy { width: 48%; padding-right: 56px; }
.si-lead-copy h2 { font: 700 38px/1.18 'Sora', sans-serif; letter-spacing: -0.8px; color: #fff; margin: 0 0 14px; }
.si-lead-copy > p { font: 400 17px/1.65 'Inter', sans-serif; color: rgba(255,255,255,.72); margin: 0 0 28px; }
.si-lead-card {
  width: 52%; background: #fff; border-radius: 20px; padding: 32px 32px 28px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.45);
}
.si-lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; }
.si-lead-field { display: flex; flex-direction: column; min-width: 0; }
.si-lead-field.is-wide { grid-column: 1 / -1; }
.si-lead-field label { font: 600 13px/1.3 'Inter', sans-serif; color: var(--si-ink); padding-bottom: 8px; }
.si-lead-field input, .si-lead-field select {
  width: 100%; min-height: 50px; padding: 12px 16px; margin: 0; box-shadow: none; outline: 0;
  font: 500 15px/1.4 'Inter', sans-serif; color: var(--si-ink);
  background-color: #F7F7FA; border: 1px solid var(--si-line); border-radius: 12px;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.si-lead-field input::placeholder { color: var(--si-muted); opacity: 1; }
.si-lead-field input:focus, .si-lead-field select:focus {
  background-color: #fff; border-color: var(--si-accent); box-shadow: 0 0 0 4px rgba(217,4,41,.10);
}
.si-lead-select { position: relative; }
.si-lead-select::before {
  content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; pointer-events: none;
  border-right: 2px solid #5B5D72; border-bottom: 2px solid #5B5D72; transform: translateY(-70%) rotate(45deg);
}
.si-lead-select select { -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer; }
/* Honeypot: real visitors never see or fill this field. */
.si-lead-trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
body .si-lead-form button.si-btn { width: 100%; min-height: 52px; margin-top: 4px; }
.si-lead-note { font: 400 13px/1.65 'Inter', sans-serif; color: var(--si-muted); text-align: center; margin: 14px 0 0; }
.si-lead-message { font: 500 14px/1.5 'Inter', sans-serif; margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; }
.si-lead-message.is-success { color: #0F7B4D; background: #E9F7F0; }
.si-lead-message.is-error { color: var(--si-accent-dark); background: var(--si-accent-soft); }

/* Closing call to action on the blog page */
.si-blog-cta { padding: 110px 24px 120px; text-align: center; }
.si-blog-cta > div { max-width: 800px; margin: 0 auto; }
.si-blog-cta-eyebrow {
  font: 600 13px/1.4 'Sora', sans-serif; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--si-accent); margin: 0 0 16px;
}
.si-blog-cta h2 { font: 700 48px/1.18 'Sora', sans-serif; letter-spacing: -1px; color: var(--si-ink); margin: 0 0 34px; }
.si-blog-cta h2 span { color: var(--si-accent); }

/* Single post sections */
.si-post-hero { background: var(--si-primary); padding: 84px 24px 64px; }
.si-post-body { padding: 72px 24px 0; }
.si-post-body > * + * { margin-top: 48px; }
.si-post-body > .si-blog + .si-blog { margin-top: 32px; }
.si-post-more { padding: 96px 24px 110px; }
.si-side-title { font: 600 12px/1.4 'Sora', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--si-muted); margin: 0 0 14px; }
.si-post-more > .si-blog-wrap > h2 {
  font: 700 36px/1.2 'Sora', sans-serif; letter-spacing: -0.8px; color: var(--si-ink);
  margin: 0 0 36px; text-align: center;
}
body .si-blog span.si-author-name { display: inline-block; font: 600 20px/1.3 'Sora', sans-serif; letter-spacing: -0.02em; color: var(--si-ink); }
.si-blog .si-ini { display: grid; place-items: center; color: #fff; font: 600 13px 'Sora', sans-serif; }
.si-post-card-foot .si-ini { font-size: 11px; }
.si-author .si-ini { font-size: 20px; }
.si-post-card[hidden] { display: none; }
/* A short row of cards stays centred instead of hugging the left edge. */
.si-grid.is-short { display: flex; flex-wrap: wrap; justify-content: center; }
.si-grid.is-short > .si-post-card { flex: 0 0 calc((100% - 56px) / 3); min-width: 0; }
.si-grid.is-short > .si-empty { flex: 0 0 100%; }

@media (max-width: 1024px) {
  .si-blog-hero { padding: 96px 32px 150px; }
  .si-blog-hero.is-flat { padding-bottom: 96px; }
  .si-blog-hero h1 { font-size: 48px; }
  .si-blog-featured { padding: 0 32px; }
  .si-blog-list { padding: 80px 32px 0; }
  .si-blog-list > .si-blog-wrap > h2 { font-size: 34px; }
  .si-lead-box { flex-wrap: wrap; padding: 44px 40px 40px; margin-top: 80px; }
  .si-lead-copy { width: 100%; padding: 0 0 32px; }
  .si-lead-copy h2 { font-size: 32px; }
  .si-lead-card { width: 100%; }
  .si-blog-cta { padding: 96px 32px 100px; }
  .si-blog-cta h2 { font-size: 38px; }
  .si-post-hero { padding: 72px 32px 56px; }
  .si-post-body { padding: 64px 32px 0; }
  .si-post-more { padding: 80px 32px 96px; }
  .si-post-more > .si-blog-wrap > h2 { font-size: 32px; }
  .si-grid.is-short > .si-post-card { flex-basis: calc((100% - 24px) / 2); }
}

@media (max-width: 767px) {
  .si-blog-hero { padding: 72px 16px 134px; }
  .si-blog-hero.is-flat { padding-bottom: 72px; }
  .si-blog-hero h1 { font-size: 36px; }
  .si-blog-hero-lead { font-size: 16px; }
  .si-blog-featured { padding: 0 16px; }
  .si-blog-list { padding: 64px 16px 0; }
  .si-blog-list > .si-blog-wrap > h2 { font-size: 28px; }
  .si-lead-box { padding: 32px 16px 16px; margin-top: 64px; border-radius: 22px; }
  .si-lead-copy { padding-bottom: 28px; }
  .si-lead-copy h2 { font-size: 26px; }
  .si-lead-copy > p { font-size: 15px; }
  .si-lead-card { padding: 22px 18px 20px; }
  .si-lead-form { grid-template-columns: 1fr; }
  .si-blog-cta { padding: 80px 16px 90px; }
  .si-blog-cta-eyebrow { font-size: 12px; }
  .si-blog-cta h2 { font-size: 30px; }
  .si-post-hero { padding: 56px 16px 44px; }
  .si-post-body { padding: 48px 16px 0; }
  .si-post-more { padding: 64px 16px 72px; }
  .si-post-more > .si-blog-wrap > h2 { font-size: 26px; }
  .si-grid.is-short > .si-post-card { flex-basis: 100%; }
}

/* Theme icons inside blog components */
.si-search .si-icon { width: 20px; height: 20px; }
.si-arrow .si-icon { width: 16px; height: 16px; stroke-width: 2.2; }
ul.si-lead-points .si-icon { stroke-width: 3; }

/* Image cards: a hairline separates a light image from the card body, and the category sits above the date. */
.si-post-card-media { border-bottom: 1px solid var(--si-line); }
.si-post-card-body > .si-tag { align-self: flex-start; margin-bottom: 14px; }
/* Diagrams and screenshots are shown whole instead of cropped to fill. */
.si-featured-media.is-contain, .si-post-card-media.is-contain { background: #fff; }
.si-featured-media.is-contain img, .si-post-card-media.is-contain img { object-fit: contain; }
.si-featured-media.is-contain { border-right: 1px solid var(--si-line); }

/* A dark header image sits on the navy hero: a hairline keeps its edge visible. */
.si-post-image-in { outline: 1px solid rgba(255, 255, 255, .16); outline-offset: -1px; }

/* Author photos: larger, with a ring so they stand out from the page. */
.si-blog .si-avatar { width: 52px; height: 52px; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--si-line), 0 6px 16px rgba(43, 44, 67, .16); }
.si-post-card-foot .si-meta .si-avatar { width: 44px; height: 44px; }
.si-blog .si-post-meta .si-avatar { width: 64px; height: 64px; }
.si-post-meta { gap: 16px; }
.is-dark .si-blog .si-avatar, .si-post-header.is-dark .si-avatar { box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 10px 24px rgba(0, 0, 0, .28); }
.si-post-card-foot .si-ini { font-size: 14px; }
.si-blog .si-post-meta .si-ini { font-size: 18px; }

/* "Written by": the photo and the name on the page, with no card around them. */
.si-author { align-items: center; gap: 22px; background: none; border: 0; border-radius: 0; padding: 0; }
.si-blog .si-author .si-avatar { width: 96px; height: 96px; }
.si-author .si-ini { font-size: 28px; }
@media (max-width: 767px) {
  .si-author { flex-direction: row; gap: 16px; padding: 0; }
  .si-blog .si-author .si-avatar { width: 80px; height: 80px; }
}

/* Author photo: the round frame stays the same size; the photo inside can be
 * zoomed towards the face (set per author in inc/blog.php). */
.si-blog .si-avatar--photo {
	display: block;
	overflow: hidden;
	position: relative;
}

.si-blog .si-avatar--photo img {
	display: block;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: var(--si-avatar-focus, 50% 50%);
	transform: scale(var(--si-avatar-zoom, 1));
	transform-origin: var(--si-avatar-focus, 50% 50%);
	width: 100%;
}
