/* InvictusBoost — invictus-blog
   The site's /blog index, article page and homepage "Latest articles" section
   (site.css ".blog-*", ".article-teaser", ".articles-*"), scoped under the .ibb
   wrapper so nothing collides with Bootstrap / pro.css. Dark (Midnight) only.
   Every element sets its own font, size, margin and colour because Bootstrap's
   reboot and the theme's global heading rules would otherwise leak in. */

.ibb {
  --bg: #05080f;
  --panel: #0e1524;
  --panel-2: #121b2e;
  --line: rgba(120, 170, 255, 0.12);
  --line-strong: rgba(110, 168, 255, 0.28);
  --text: #f4f7ff;
  --text-dim: #9aadc8;
  --muted: #6d7f99;
  --accent: #4f8cff;
  --accent-2: #7eb0ff;
  --accent-deep: #2f6df0;
  --accent-rgb: 79, 140, 255;
  --radius: 16px;
  --radius-sm: 12px;
  --font: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Outfit', 'Work Sans', sans-serif;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-align: left;
}
.ibb *, .ibb *::before, .ibb *::after { box-sizing: border-box; }

.ibb .ibb-wrap {
  width: min(1180px, calc(100% - clamp(20px, 4.5vw, 40px)));
  margin-inline: auto;
  position: relative;
}

/* Page backdrop. On the site's blog pages the global paper wash sits behind the
   opaque body, so what shows is the flat page colour plus the .blog-page glow.
   Same here: flatten the theme's body gradient on pages that hold a blog page
   component (browsers without :has() simply keep the gradient). */
body:has(.ibb.ibb--page) { background: #05080f; }
/* The site's paper-wash layer (body::before) is painted under its opaque body,
   so it never shows there. Here it would sit on top of the flat colour and
   brighten the glow, so blog pages drop it. */
body:has(.ibb.ibb--page)::before { content: none; display: none; }

/* Soft page glow behind the blog pages (site: .blog-page::before). */
.ibb.ibb--page::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 50% at 50% 18%, rgba(79, 140, 255, 0.14) 0%, transparent 58%),
    radial-gradient(ellipse 42% 36% at 88% 72%, rgba(56, 100, 220, 0.09) 0%, transparent 62%),
    radial-gradient(ellipse 36% 28% at 10% 78%, rgba(255, 255, 255, 0.025) 0%, transparent 55%);
  opacity: .9;
}

.ibb .blog-page {
  padding-top: 1.25em;
  padding-bottom: 3.5em;
}

/* ------------------------------------------------------------ shared bits */
.ibb .ibb-eyebrow {
  margin: 0 0 10px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.ibb .ibb-lead {
  max-width: 640px;
  margin: 8px 0 0;
  font-family: var(--font);
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-dim);
}
.ibb .blog-card__cat {
  display: inline-flex;
  align-items: center;
  padding: 0.1875em 0.5em;
  border-radius: 6px;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.55;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.ibb .blog-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ibb .blog-card__tags span {
  padding: 0.1875em 0.5em;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.55;
}
.ibb .blog-empty {
  margin: 0;
  padding: 1.125em;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  color: var(--text-dim);
  font-size: 14px;
}

/* ------------------------------------------------------------- blog index */
.ibb .blog-head {
  padding: 2.875em 0 0.5em;
  margin: 0 0 18px;
}
.ibb .blog-head h1,
.ibb .blog-article__head h1 {
  max-width: 820px;
  margin: 0;
  font-family: var(--font);
  line-height: 1.55;
  letter-spacing: -0.03em;
  color: var(--text);
}
.ibb .blog-head h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
.ibb .blog-head .ibb-eyebrow { margin: 0; font-size: 15px; color: var(--text-dim); }

.ibb .blog-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.ibb .blog-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 1.125em;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel) 88%, transparent);
}
.ibb .blog-card__img {
  display: block;
  margin: -0.25em -0.25em 4px;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: var(--blog-card-image-aspect-ratio, 16/9);
}
.ibb .blog-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ibb .blog-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.55;
}
.ibb .blog-card h2 {
  margin: 0;
  font-family: var(--font);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: normal;
  color: var(--text);
}
.ibb .blog-card h2 a { color: inherit; text-decoration: none; transition: color .2s ease; }
.ibb .blog-card h2 a:hover { color: var(--accent-2); }
.ibb .blog-card > p {
  flex: 1;
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}
.ibb .blog-card__link {
  margin-top: 2px;
  color: var(--accent-2);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.55;
  text-decoration: none;
}
.ibb .blog-card__link:hover { color: var(--accent-2); }
.ibb .blog-pagination { margin-top: 10px; }

/* ----------------------------------------------------------- article page */
.ibb .blog-crumb {
  margin: 0 0 10px;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
}
.ibb .blog-crumb a { color: var(--accent-2); font-weight: 600; text-decoration: none; }
.ibb .blog-article__head {
  margin-bottom: 16px;
  padding-bottom: 0.875em;
  border-bottom: 1px solid var(--line);
}
.ibb .blog-article__head h1 { font-size: 32px; font-weight: 700; }
.ibb .blog-article__head .blog-card__tags { margin-top: 10px; }
.ibb .blog-article__cover {
  max-width: 720px;
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.ibb .blog-article__cover img { display: block; width: 100%; height: auto; }
.ibb .blog-article__body { max-width: 720px; }

/* Prose. The site wraps every block in a <section> that inherits its global
   56px section padding (40px on phones); post bodies are plain h2/p/ul, so the
   same rhythm is carried by the heading and callout margins. */
.ibb .blog-article__body .editor {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: break-word;
}
.ibb .blog-article__body .editor h1,
.ibb .blog-article__body .editor h2,
.ibb .blog-article__body .editor h3,
.ibb .blog-article__body .editor h4 {
  margin: 136px 0 6px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: -0.02em;
  color: var(--text);
}
.ibb .blog-article__body .editor h3,
.ibb .blog-article__body .editor h4 { margin-top: 18px; font-size: 17px; }
/* 56px + the header's 16px margin, which this top margin collapses into. */
.ibb .blog-article__body .editor > h1:first-child,
.ibb .blog-article__body .editor > h2:first-child { margin-top: 72px; }
.ibb .blog-article__body .editor p,
.ibb .blog-article__body .editor li {
  margin: 0 0 8px;
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
}
.ibb .blog-article__body .editor ul,
.ibb .blog-article__body .editor ol {
  margin: 0 0 8px;
  padding-left: 18.4px;
}
.ibb .blog-article__body .editor ul { list-style: disc; }
.ibb .blog-article__body .editor ol { list-style: decimal; }
.ibb .blog-article__body .editor a {
  color: var(--accent-2);
  font-weight: 600;
  text-decoration: none;
}
.ibb .blog-article__body .editor a:hover { color: var(--accent-2); text-decoration: none; }
.ibb .blog-article__body .editor strong,
.ibb .blog-article__body .editor b { font-weight: 700; }
.ibb .blog-article__body .editor img,
.ibb .blog-article__body .editor iframe { max-width: 100%; border-radius: var(--radius-sm); }
.ibb .blog-article__body .editor img { height: auto; }
.ibb .blog-article__body .editor hr {
  height: 1px;
  margin: 24px 0;
  border: 0;
  border-radius: 0;
  background: var(--line);
  opacity: 1;
}
.ibb .blog-article__body .editor code {
  padding: 0.0625rem 0.3rem;
  border-radius: 6px;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--text);
  font-size: 0.9em;
}

/* Callout box (site: .blog-cta-inline). In a post body it is a <blockquote>. */
.ibb .blog-cta-inline,
.ibb .blog-article__body .editor blockquote {
  margin: 80px 0 16px;
  padding: 0.875em 1em;
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 6%, var(--panel));
  font-size: 16px;
}
.ibb .blog-cta-inline p {
  margin: 0 0 8px;
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
}
.ibb .blog-cta-inline a { color: var(--accent-2); font-weight: 600; text-decoration: none; }
.ibb .blog-cta-inline a:hover { color: var(--accent-2); text-decoration: none; }

/* Featured products + "More guides" */
.ibb .blog-featured,
.ibb .blog-related {
  margin-top: 28px;
  padding: 1.125em 0 0;
  border-top: 1px solid var(--line);
}
.ibb .blog-related { padding-bottom: 3.5em; }
/* Featured products: the site's product grid (4 across at full width). Cards carry
   absolutely positioned art layers, so every cell is its own containing block. */
.ibb .blog-featured__grid {
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  align-items: stretch;
  margin: 0;
}
.ibb .blog-featured__grid > .blog-featured__cell {
  position: relative;
  display: grid;
  width: auto;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
}
.ibb .blog-featured h2,
.ibb .blog-related h2 {
  margin: 0 0 12px;
  font-family: var(--font);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: normal;
  color: var(--text);
}
.ibb .blog-related__grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.ibb .blog-related__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0.875em;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  color: inherit;
  text-decoration: none;
  transition: border-color .2s ease;
}
.ibb .blog-related__item:hover { border-color: rgba(var(--accent-rgb), 0.4); color: inherit; }
.ibb .blog-related__item strong { font-size: 15px; font-weight: 700; line-height: 1.55; color: var(--text); }
.ibb .blog-related__item span:last-child { font-size: 12.5px; line-height: 1.55; color: var(--muted); }

/* ------------------------------------------- homepage "Latest articles" */
.ibb.articles-section {
  position: relative;
  z-index: 1;
  padding: 3em 0 3.5em;
}
.ibb .articles-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
}
.ibb .ibb-display {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: -0.04em;
  color: var(--text);
  text-wrap: balance;
}
.ibb .articles-sub {
  max-width: 480px;
  margin: 6px 0 0;
  color: var(--text-dim);
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.55;
}
.ibb .ibb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0.5em 0.8125em;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
  white-space: nowrap;
  text-decoration: none;
  transition: box-shadow .22s ease, background .2s ease, border-color .2s ease, color .2s ease, filter .18s ease;
}
.ibb .ibb-btn:hover {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.06);
  color: var(--accent-deep);
  filter: brightness(1.06);
}
.ibb .articles-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ibb .article-teaser {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 1.375em;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
  color: inherit;
  text-decoration: none;
  transition: border-color .2s ease, transform .25s ease, background .2s ease;
}
.ibb .article-teaser:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
  background: color-mix(in srgb, var(--accent) 4%, var(--panel));
  transform: translateY(-2px);
  color: inherit;
}
.ibb .article-teaser h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: -0.02em;
  color: var(--text);
}
.ibb .article-teaser p {
  flex: 1;
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}
.ibb .article-teaser__meta { font-size: 12.5px; font-weight: 600; line-height: 1.55; color: #7f93ae; }

@media (max-width: 1100px) {
  .ibb .blog-featured__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .ibb .articles-grid { grid-template-columns: 1fr; }
  .ibb .blog-featured__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .ibb .blog-featured__grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .ibb .blog-featured__grid { gap: 14px; }
  .ibb.articles-section { padding-bottom: 2.5em; }
  .ibb .blog-related { padding-bottom: 2.5em; }
  .ibb .blog-article__body .editor h1,
  .ibb .blog-article__body .editor h2 { margin-top: 104px; }
  .ibb .blog-article__body .editor > h1:first-child,
  .ibb .blog-article__body .editor > h2:first-child { margin-top: 56px; }
  .ibb .blog-cta-inline,
  .ibb .blog-article__body .editor blockquote { margin-top: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .ibb .article-teaser,
  .ibb .article-teaser:hover { transition: none; transform: none; }
}