/* Blog pages — aligned with marketing site tokens (#10375C, #C1440E, #122A46) */

.blog-main {
  text-align: left;
  background: #fff;
  min-height: 50vh;
}

/* ── Hero (same language as About) ─────────────────────────── */
.blog-hero-band {
  position: relative;
  background: #122A46;
  padding: 148px 0 72px;
  overflow: hidden;
}

/* Category pages: compact text-only hero (preview images look poor on navy) */
.blog-page.blog-page--filtered .blog-hero-band {
  padding: 120px 0 36px;
}

.blog-page.blog-page--filtered .blog-hero-band__row {
  grid-template-columns: 1fr;
}

.blog-page.blog-page--filtered .blog-hero-band__inner {
  max-width: 720px;
  min-width: 0;
}

.blog-page.blog-page--filtered .blog-hero-band__sub {
  max-width: 720px;
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.blog-page.blog-page--filtered .blog-section {
  padding-top: 36px;
}

/* Article hero: compact editorial header under fixed chrome */
.blog-hero-band--article {
  /* Fixed chrome ≈ 102px (32 TDLR + 70 nav) + comfortable air */
  padding: 128px 0 36px;
  overflow-x: clip;
  overflow-y: visible;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-hero-band__copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.blog-hero-band--article .blog-crumb--light {
  margin: 0 0 14px;
}

.blog-hero-band--article .blog-eyebrow {
  margin-bottom: 14px;
}

.blog-hero-band__title--article {
  max-width: 720px;
  width: 100%;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.2;
  margin: 0 0 16px;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.blog-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9375rem;
}

.blog-hero-meta__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.blog-hero-band__grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.blog-hero-band__row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, .75fr);
  gap: 40px;
  align-items: center;
}

.blog-hero-band__inner {
  max-width: 640px;
}

.blog-hero-band__panel {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}

.blog-hero-stat__value {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #fff;
}

.blog-hero-stat__label {
  font-size: .8125rem;
  color: rgba(255,255,255,.62);
}

.blog-hero-band__cta {
  margin-top: 6px;
  justify-content: center;
  width: 100%;
}

.blog-eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #F0B27A;
  background: rgba(193,68,14,.22);
  border: 1px solid rgba(240,178,122,.45);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.blog-hero-band__title {
  font-size: clamp(2.1rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.03em;
  color: #fff;
  margin: 0 0 14px;
}

.blog-hero-band__sub {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(255,255,255,.78);
  margin: 0;
  max-width: 560px;
}

.blog-crumb--light {
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  margin: 0 0 16px;
}

.blog-crumb--light a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
}

.blog-crumb--light a:hover { color: #fff; text-decoration: underline; }

.blog-byline--light {
  margin-top: 14px;
  color: rgba(255,255,255,.55);
  font-size: .9375rem;
}

/* ── List section ──────────────────────────────────────────── */
.blog-section {
  padding: 64px 0 88px;
  background: #f8fafc;
}

.blog-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.blog-cats__link {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #dbe3ee;
  background: #fff;
  color: #334155;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.blog-cats__link:hover {
  border-color: color-mix(in srgb, #10375C 35%, white);
  color: #10375C;
}

.blog-cats__link.is-active {
  background: #10375C;
  border-color: #10375C;
  color: #fff;
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  min-height: 220px;
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.blog-card:hover {
  border-color: color-mix(in srgb, #10375C 30%, white);
  box-shadow: 0 8px 32px rgb(16 55 92 / .10);
  transform: translateY(-3px);
}

.blog-card:focus-visible {
  outline: 3px solid #10375C;
  outline-offset: 3px;
}

.blog-card__accent {
  height: 4px;
  background: linear-gradient(90deg, #10375C 0%, #C1440E 100%);
  flex-shrink: 0;
}

.blog-card__media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #f1f5f9;
}

.blog-card__body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.blog-card__date {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0;
}

.blog-card__tag {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #10375C;
  background: color-mix(in srgb, #10375C 8%, white);
  border: 1px solid color-mix(in srgb, #10375C 14%, white);
  padding: 3px 10px;
  border-radius: 999px;
}

.blog-card__title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #0f172a;
  line-height: 1.3;
  margin: 0;
}

.blog-card:hover .blog-card__title { color: #10375C; }

.blog-card__intro {
  margin: 0;
  color: #475569;
  line-height: 1.65;
  font-size: .9875rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.blog-card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: .875rem;
  font-weight: 700;
  color: #10375C;
  transition: gap 200ms ease;
}

.blog-card:hover .blog-card__more { gap: 12px; }

.blog-card__more svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.blog-empty {
  grid-column: 1 / -1;
  padding: 48px 32px;
  text-align: center;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  color: #475569;
  line-height: 1.7;
}

/* ── Article layout ────────────────────────────────────────── */
.blog-article-section {
  padding: 28px 0 72px;
  background: #fff;
}

/*
  Content shell only — do NOT pad `.navbar .container` or links wrap/crowd.
*/
.blog-page .blog-main .container,
.blog-page .verify-page .container,
.blog-page .footer .container,
.blog-page .cta-banner .container {
  width: 100% !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: clamp(28px, 5vw, 56px) !important;
  padding-right: clamp(28px, 5vw, 56px) !important;
  box-sizing: border-box !important;
}

/* Keep marketing nav gutters; never force fat padding on the header row */
.blog-page .navbar .container {
  padding-left: 24px !important;
  padding-right: 24px !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

.blog-page .navbar__link {
  white-space: nowrap;
}

.blog-page .navbar__nav {
  flex-wrap: nowrap;
}

/*
  Mid widths: Blog + long labels need the hamburger sooner than the
  marketing home breakpoint (768px), or links wrap under each other.
*/
@media (max-width: 1100px) {
  .blog-page .navbar__nav {
    display: none !important;
  }
  .blog-page .navbar__hamburger {
    display: flex !important;
    margin-left: 16px;
  }
  .blog-page .navbar__actions {
    gap: 6px;
  }
  .blog-page .hide-on-mobile {
    display: none !important;
  }
  .blog-page .show-on-mobile {
    display: inline !important;
  }
  .blog-page .navbar__cta {
    padding: 8px 12px !important;
    font-size: 0.8125rem !important;
  }
  .blog-page .navbar__cta svg {
    display: none !important;
  }
  .blog-page .navbar__login {
    padding: 8px 10px;
    font-size: 0.8125rem;
  }
}

.blog-article {
  max-width: 760px;
  width: 100%;
  margin: 0;
}

.blog-wrap {
  max-width: 760px;
  width: 100%;
  margin: 0;
}

.blog-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  margin: 0 0 32px;
  background: #f1f5f9;
}

.blog-body {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #334155;
}

.blog-body > *:first-child { margin-top: 0; }

.blog-body p { margin: 0 0 1.05rem; }

.blog-body h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -.02em;
  line-height: 1.25;
  margin: 2rem 0 .7rem;
}

.blog-body h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -.015em;
  line-height: 1.3;
  margin: 1.5rem 0 .5rem;
}

.blog-body ul,
.blog-body ol {
  padding-left: 1.25rem;
  margin: 0 0 1.1rem;
}

.blog-body ul { list-style: disc; }
.blog-body ol { list-style: decimal; }

.blog-body li { margin-bottom: .4rem; }

.blog-body a {
  color: #10375C;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-body a:hover { color: #0d2d4d; }

.blog-body img {
  border-radius: 12px;
  margin: 12px 0;
  max-width: 100%;
  height: auto;
}

.blog-body blockquote {
  margin: 0 0 1.5rem;
  padding: 18px 20px;
  background: color-mix(in srgb, #10375C 5%, white);
  border-left: 4px solid #10375C;
  border-radius: 0 10px 10px 0;
  color: #1e293b;
}

.blog-body blockquote p { margin: 0; }

.blog-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5rem;
  font-size: .9375rem;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.blog-body thead {
  background: #122A46;
  color: #fff;
}

.blog-body th,
.blog-body td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}

.blog-body tbody tr:last-child td { border-bottom: none; }

.blog-body tbody tr:nth-child(even) { background: #f8fafc; }

.blog-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: .875rem;
  font-weight: 600;
  color: #10375C;
  text-decoration: none;
}

.blog-back:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .blog-list { grid-template-columns: 1fr; }
  .blog-hero-band { padding: 132px 0 56px; }
  .blog-hero-band--article { padding: 120px 0 28px; }
  .blog-hero-band__row { grid-template-columns: 1fr; gap: 28px; }
  .blog-section { padding: 40px 0 64px; }
  .blog-article-section { padding: 20px 0 56px; }
}

@media (max-width: 480px) {
  .blog-card__body { padding: 18px 18px 20px; }
  .blog-card__title { font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .blog-card,
  .blog-card__more { transition: none; }
  .blog-card:hover { transform: none; }
}
