/* ==========================================================================
   Raze Media v2: Blog index and articles (templates "Raze Blog v2" and single-raze-post.php)
   Loaded after raze-services.css, which brings the base, the hero and the buttons.
   ========================================================================== */

/* ---------------------------------------------------------------- Topics */
.bl-index { width: var(--wrap); margin: clamp(28px, 5vw, 64px) auto 0; }
.bl-topics { margin: 0 calc(-1 * var(--gutter)) clamp(22px, 3vw, 36px); }
.bl-topics-list {
  display: flex;
  gap: 8px;
  padding: 4px var(--gutter) 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.bl-topics-list::-webkit-scrollbar { display: none; }
.bl-topics-list li { flex: none; scroll-snap-align: start; }
.bl-topic {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: #eef2f5;
  color: #2a3640;
  font: 700 13px/1 var(--f-cond);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.35s var(--spring);
  -webkit-tap-highlight-color: transparent;
}
.bl-topic.is-on { background: linear-gradient(276deg, #0a8fc2 0%, #0a6f99 100%); color: #fff; }
.bl-topic:active { transform: scale(0.96); }
.bl-topic:focus-visible { outline: 3px solid #0a87bb; outline-offset: 2px; }
@media (hover: hover) { .bl-topic:not(.is-on):hover { background: #e0e8ee; } }
@media (min-width: 1000px) {
  .bl-topics { margin-inline: 0; }
  .bl-topics-list { flex-wrap: wrap; justify-content: center; padding-inline: 0; overflow: visible; }
}

/* ---------------------------------------------------------------- Cards */
.bl-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin: 0; padding: 0; list-style: none; }
.bl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(4, 30, 50, 0.04), 0 18px 40px -28px rgba(4, 30, 50, 0.5);
  outline: 1px solid #e6edf2;
  outline-offset: -1px;
  transition: transform 0.45s var(--ease), box-shadow 0.45s ease;
}
.bl-card-img { aspect-ratio: 16 / 10; overflow: hidden; background: #e8eef2; }
.bl-card-img img { width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform 0.8s var(--ease); }
.bl-card-body { display: flex; flex: 1; flex-direction: column; padding: 18px 20px 20px; }
.bl-card-topic { color: #0a6f99; font: 700 12px/1.2 var(--f-cond); letter-spacing: 0.1em; text-transform: uppercase; }
.bl-card-topic a { color: inherit; }
.bl-card-title { margin-top: 8px; color: var(--ink); font: 700 clamp(22px, 2.2vw, 25px)/1.12 var(--f-cond); }
.bl-card-link { color: inherit; }
.bl-card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.bl-card-link:focus-visible { outline: none; }
.bl-card:focus-within { outline: 3px solid #0a87bb; outline-offset: 3px; }
.bl-card-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 8px; color: #5d6b76; font-size: 14px; }
.bl-card-excerpt {
  display: -webkit-box;
  margin-top: 10px;
  overflow: hidden;
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.bl-card-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  color: #0a6f99;
  font: 700 14px/1 var(--f-cond);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.bl-card-more svg { width: 18px; height: 18px; transition: transform 0.35s var(--spring); }
@media (hover: hover) {
  .bl-card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(4, 30, 50, 0.04), 0 28px 50px -30px rgba(4, 30, 50, 0.6); }
  .bl-card:hover .bl-card-img img { transform: scale(1.05); }
  .bl-card:hover .bl-card-more svg { transform: translateX(4px); }
}
.bl-anim .bl-card { transition: transform 0.45s var(--ease), box-shadow 0.45s ease, opacity 0.6s ease; }
.bl-anim .bl-card:not(.is-in) { opacity: 0; transform: translateY(24px); }
@media (min-width: 700px) { .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; } }
@media (min-width: 1000px) { .bl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; } }

/* ---------------------------------------------------------------- Load more */
.bl-more { display: grid; justify-items: center; gap: 14px; margin: clamp(30px, 4vw, 52px) 0 clamp(48px, 7vw, 100px); text-align: center; }
.bl-count { color: #5d6b76; font-size: 15px; }
.bl-more-btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }
.bl-empty { padding: 40px 0 80px; text-align: center; }
.bl-empty a { color: #0a6f99; text-decoration: underline; }

/* ---------------------------------------------------------------- Article */
.bl-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 1200; height: 3px; pointer-events: none; }
.bl-progress span { display: block; height: 100%; background: linear-gradient(90deg, #00bdd7, #019dd8); transform: scaleX(0); transform-origin: left; }
.bl-article { width: min(760px, var(--wrap)); margin: clamp(28px, 5vw, 64px) auto 0; }
.bl-article-head .bl-card-topic a { display: inline-block; padding: 7px 12px; border-radius: 999px; background: #e7f3f9; }
.bl-article-title { margin-top: 12px; color: var(--ink); font: 700 clamp(34px, 7.4vw, 60px)/1 var(--f-cond); text-transform: uppercase; overflow-wrap: break-word; }
.bl-article-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 14px; color: #5d6b76; font-size: 15px; }
.bl-article-img { width: min(960px, 100vw - 2 * var(--gutter)); margin: clamp(22px, 4vw, 40px) 0 0 50%; overflow: hidden; border-radius: 24px; background: #e8eef2; transform: translateX(-50%); }
.bl-article-img img { width: 100%; height: auto; }
.bl-content { margin-top: clamp(24px, 4vw, 40px); color: #2f3c46; font-size: 18px; line-height: 1.75; overflow-wrap: break-word; }
.bl-content > * + * { margin-top: 1.1em; }
.bl-content h2 { margin-top: 1.7em; color: var(--ink); font: 700 clamp(26px, 4vw, 34px)/1.15 var(--f-cond); }
.bl-content h3 { margin-top: 1.5em; color: var(--ink); font: 700 clamp(21px, 3vw, 25px)/1.2 var(--f-cond); }
.bl-content h4 { margin-top: 1.4em; color: var(--ink); font: 700 19px/1.3 var(--f-body); }
/* Text pasted from documents carries inline weights; headings stay bold */
.bl-content :is(h1, h2, h3, h4) [style*="font-weight"] { font-weight: inherit !important; }
.bl-content h2 + *,
.bl-content h3 + *,
.bl-content h4 + * { margin-top: 0.55em; }
.bl-content ul,
.bl-content ol { display: grid; gap: 0.4em; padding-left: 1.4em; }
.bl-content ul { list-style: disc; }
.bl-content ol { list-style: decimal; }
.bl-content li::marker { color: #0a87bb; font-weight: 700; }
.bl-content a { color: #0a6f99; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.bl-content a:hover { text-decoration-thickness: 2px; }
.bl-content strong,
.bl-content b { color: var(--ink); }
.bl-content img { height: auto; border-radius: 16px; }
.bl-content figure,
.bl-content .wp-caption { max-width: 100%; }
.bl-content figcaption,
.bl-content .wp-caption-text { margin-top: 8px; color: #5d6b76; font-size: 14px; }
.bl-content blockquote { padding: 4px 0 4px 20px; border-left: 4px solid #019dd8; color: var(--ink); font-size: 20px; font-style: italic; }
.bl-content hr { height: 1px; border: 0; background: #e3eaef; }
.bl-content .alignleft { float: left; margin: 0.3em 1.2em 0.6em 0; }
.bl-content .alignright { float: right; margin: 0.3em 0 0.6em 1.2em; }
.bl-content .aligncenter { margin-inline: auto; }
.bl-content::after { content: ""; display: table; clear: both; }
.bl-content p:empty { display: none; }

/* Share */
.bl-article-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: clamp(32px, 5vw, 52px); padding-top: 22px; border-top: 1px solid #e3eaef; }
.bl-share-label { color: var(--ink); font: 700 15px/1 var(--f-cond); letter-spacing: 0.08em; text-transform: uppercase; }
.bl-share { display: flex; gap: 10px; }
.bl-share-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #eef2f5;
  color: #22303b;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.35s var(--spring);
}
.bl-share-btn svg { width: 19px; height: 19px; }
.bl-share-btn:focus-visible { outline: 3px solid #0a87bb; outline-offset: 2px; }
.bl-share-btn:active { transform: scale(0.94); }
@media (hover: hover) { .bl-share-btn:hover { background: #0a7cad; color: #fff; } }
.bl-copy-done { display: none; }
.bl-copy.is-copied { background: #00855d; color: #fff; }
.bl-copy.is-copied .bl-copy-link { display: none; }
.bl-copy.is-copied .bl-copy-done { display: block; }

/* Call to action and related articles */
.bl-cta {
  width: var(--wrap);
  margin: clamp(48px, 7vw, 96px) auto 0;
  padding: clamp(32px, 5vw, 56px) clamp(22px, 5vw, 64px);
  border-radius: 32px;
  background: radial-gradient(120% 140% at 0% 0%, #e3f4fb 0%, #f3f6f8 60%);
  text-align: center;
}
.bl-cta-title { color: var(--ink); font: 700 clamp(32px, 6vw, 52px)/1 var(--f-cond); text-transform: uppercase; }
.bl-cta-text { max-width: 46ch; margin: 12px auto 22px; font-size: 17px; }
.bl-related { width: var(--wrap); margin: clamp(48px, 7vw, 96px) auto clamp(48px, 7vw, 100px); }
.bl-related-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 20px; margin-bottom: clamp(18px, 3vw, 30px); }
.bl-related-title { color: var(--ink); font: 700 clamp(34px, 6vw, 56px)/1 var(--f-cond); text-transform: uppercase; }
.bl-back { display: inline-flex; align-items: center; gap: 8px; color: #0a6f99; font: 700 15px/1 var(--f-cond); letter-spacing: 0.06em; text-transform: uppercase; }
.bl-back svg { width: 18px; height: 18px; transition: transform 0.35s var(--spring); }
.bl-back:hover svg { transform: translateX(4px); }
.bl-back:focus-visible { outline: 3px solid #0a87bb; outline-offset: 3px; border-radius: 4px; }

/* Articles: the current page in the breadcrumb stays on one line (and gives way on phones, the title is right below) */
.bl-single .sv-crumbs li:last-child { min-width: 0; }
.bl-single .sv-crumbs li:last-child span { display: block; max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 599.98px) { .bl-single .sv-crumbs li:last-child { display: none; } }

/* The hero on blog pages is a little shorter */
.bl-hero { min-height: clamp(240px, 56vw, 320px); }
@media (min-width: 1000px) { .sv-hero.bl-hero { min-height: clamp(300px, 24vw, 420px); } }

@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) .bl *,
  html:not(.force-motion) .bl *::before,
  html:not(.force-motion) .bl *::after { transition-duration: 0.01ms !important; animation: none !important; }
}
