/* Blog public presentation is owned entirely by the optional Blog module. */
.blog-public {
  /* Prefer the active theme palette; fallbacks keep Blog portable. */
  --blog-ink: var(--fj-ink, #0b1830);
  --blog-muted: var(--fj-muted, #647089);
  --blog-line: var(--fj-border, #dbe3ef);
  --blog-soft: var(--fj-surface, #f4f7fb);
  --blog-paper: #fff;
  --blog-accent: var(--fj-blue, #2c5096);
  --blog-accent-dark: var(--fj-blue-dark, #173a69);
  --blog-dark: var(--fj-navy-soft, #1c1b23);
  color: var(--blog-ink);
  background: var(--blog-paper);
  font-family: inherit;
}

.blog-public *,
.blog-public *::before,
.blog-public *::after { box-sizing: border-box; }

.blog-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 8vw, 116px) 0 clamp(58px, 7vw, 96px);
  background:
    radial-gradient(circle at 80% 30%, rgba(49, 91, 168, .24), transparent 28%),
    linear-gradient(120deg, #101018, #1a1921 68%, #17213a);
  color: #fff;
}

.blog-hero::after {
  position: absolute;
  right: -110px;
  bottom: -180px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(255, 255, 255, .025), 0 0 0 110px rgba(255, 255, 255, .018);
  content: "";
  pointer-events: none;
}

.blog-hero__content { position: relative; z-index: 1; }
.blog-hero__copy { max-width: 880px; }
.blog-hero h1 {
  max-width: 950px;
  margin: 12px 0 20px;
  color: #fff;
  font-size: clamp(38px, 5.2vw, 72px);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.blog-article-hero h1 { max-width: 1050px; font-size: clamp(36px, 4.5vw, 64px); }
.blog-hero .inner-hero-lead {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
}
.blog-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, .55);
  font-size: 13px;
}
.blog-breadcrumbs a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.blog-breadcrumbs a:hover { color: #fff; }
.blog-kicker,
.blog-widget__kicker {
  margin: 0;
  color: var(--blog-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.blog-section { padding: clamp(54px, 7vw, 94px) 0 104px; }
.blog-layout,
.blog-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(38px, 5vw, 74px);
  align-items: start;
}
.blog-card-list { display: grid; gap: 34px; }
.blog-card {
  display: grid;
  grid-template-columns: minmax(240px, 42%) minmax(0, 1fr);
  min-height: 310px;
  overflow: hidden;
  border: 1px solid var(--blog-line);
  border-radius: 22px;
  background: var(--blog-paper);
  box-shadow: 0 16px 48px rgba(13, 39, 68, .075);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.blog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(44, 80, 150, .35);
  box-shadow: 0 22px 54px rgba(13, 39, 68, .12);
}
.blog-card--text {
  position: relative;
  display: block;
  min-height: 0;
  background: linear-gradient(135deg, #fff 0%, #f5fafc 100%);
}
.blog-card--text::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  background: var(--blog-accent);
  content: "";
}
.blog-card__media { min-height: 100%; overflow: hidden; background: #e8eff3; }
.blog-card__media img {
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: cover;
  transition: transform .45s ease;
}
.blog-card:hover .blog-card__media img { transform: scale(1.035); }
.blog-card__body { display: flex; flex-direction: column; padding: 30px clamp(25px, 3vw, 38px); }
.blog-card__topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.blog-card__number {
  color: #9caabb;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.blog-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(44, 80, 150, .1);
  color: var(--blog-accent-dark);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .055em;
  text-decoration: none;
  text-transform: uppercase;
}
.blog-hero .blog-chip {
  background: rgba(74, 122, 212, .2);
  color: #b8cdf3;
}
.blog-card h2 {
  margin: 20px 0 14px;
  font-size: clamp(24px, 2.7vw, 34px);
  line-height: 1.16;
  letter-spacing: -.025em;
}
.blog-card h2 a,
.blog-related-card h3 a { color: var(--blog-ink); text-decoration: none; }
.blog-card h2 a:hover,
.blog-related-card h3 a:hover { color: var(--blog-accent-dark); }
.blog-card__excerpt {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--blog-muted);
  font-size: 15px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin-top: 20px;
  color: var(--blog-muted);
  font-size: 13px;
}
.blog-meta > * { display: inline-flex; align-items: center; gap: 6px; }
.blog-meta > * + *::before { color: #b4c0cc; content: "•"; margin-right: 6px; }
.blog-meta--hero { margin-top: 25px; color: rgba(255, 255, 255, .72); font-size: 14px; }
.blog-meta--hero > * + *::before { color: rgba(255, 255, 255, .35); }
.blog-card__more {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  width: fit-content;
  margin-top: auto;
  padding-top: 22px;
  color: var(--blog-accent-dark);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}
.blog-card__more span { transition: transform .2s ease; }
.blog-card__more:hover span { transform: translateX(4px); }
.blog-sidebar { display: grid; gap: 22px; }
.blog-article-sidebar { position: static; }
.blog-widget {
  padding: 27px;
  border: 1px solid var(--blog-line);
  border-radius: 18px;
  background: #fff;
}
.blog-widget h2 {
  margin: 4px 0 20px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.blog-widget--search { background: var(--blog-dark); color: #fff; }
.blog-widget--search h2 { color: #fff; }
.blog-search { display: grid; grid-template-columns: minmax(0, 1fr) 48px; }
.blog-search input {
  min-width: 0;
  height: 48px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-right: 0;
  border-radius: 10px 0 0 10px;
  outline: none;
  background: rgba(255, 255, 255, .09);
  color: #fff;
  font: inherit;
}
.blog-search input::placeholder { color: rgba(255, 255, 255, .56); }
.blog-search input:focus { border-color: var(--blog-accent); box-shadow: 0 0 0 3px rgba(44, 80, 150, .18); }
.blog-search button {
  border: 0;
  border-radius: 0 10px 10px 0;
  background: var(--blog-accent);
  color: #fff;
  cursor: pointer;
  font-size: 24px;
}
.blog-recent { margin: 0; padding: 0; list-style: none; counter-reset: recent; }
.blog-recent li {
  position: relative;
  min-height: 56px;
  padding: 0 0 17px 42px;
  border-bottom: 1px solid #edf1f4;
  counter-increment: recent;
}
.blog-recent li + li { padding-top: 17px; }
.blog-recent li:last-child { padding-bottom: 0; border-bottom: 0; }
.blog-recent li::before {
  position: absolute;
  top: 1px;
  left: 0;
  color: #b2becb;
  content: counter(recent, decimal-leading-zero);
  font-size: 12px;
  font-weight: 800;
}
.blog-recent li + li::before { top: 18px; }
.blog-recent a {
  display: block;
  color: var(--blog-ink);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.42;
  text-decoration: none;
}
.blog-recent a:hover { color: var(--blog-accent-dark); }
.blog-recent time { display: block; margin-top: 7px; color: #8997a7; font-size: 11px; }
.blog-category-list { max-height: 460px; margin: 0; padding: 0 8px 0 0; overflow: auto; list-style: none; }
.blog-category-list,
.blog-archive-list {
  scrollbar-color: #cfdae3 transparent;
  scrollbar-width: thin;
}
.blog-category-list::-webkit-scrollbar,
.blog-archive-list::-webkit-scrollbar { width: 6px; }
.blog-category-list::-webkit-scrollbar-track,
.blog-archive-list::-webkit-scrollbar-track { background: transparent; }
.blog-category-list::-webkit-scrollbar-thumb,
.blog-archive-list::-webkit-scrollbar-thumb { border-radius: 9px; background: #cfdae3; }
.blog-category-list li { border-bottom: 1px solid #edf1f4; }
.blog-category-list a,
.blog-archive-list a {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  color: #34485e;
  font-size: 14px;
  text-decoration: none;
}
.blog-category-list a:hover,
.blog-archive-list a:hover { color: var(--blog-accent-dark); }
.blog-category-list b,
.blog-archive-list b {
  min-width: 27px;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--blog-soft);
  color: #718196;
  font-size: 11px;
  text-align: center;
}
.blog-archive-list { max-height: 270px; overflow: auto; }
.blog-archive-list a { margin-right: 8px; border-bottom: 1px solid #edf1f4; }
.blog-tag-cloud,
.blog-socials { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-tag-cloud a,
.blog-socials a {
  padding: 8px 11px;
  border: 1px solid var(--blog-line);
  border-radius: 999px;
  color: #53667a;
  font-size: 12px;
  text-decoration: none;
}
.blog-tag-cloud a:hover,
.blog-socials a:hover { border-color: var(--blog-accent); color: var(--blog-accent-dark); }
.blog-widget--social { background: linear-gradient(135deg, #eef2f8, #fff); }
.blog-pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 46px; }
.blog-pagination a,
.blog-pagination > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--blog-line);
  border-radius: 10px;
  color: var(--blog-ink);
  text-decoration: none;
}
.blog-pagination a:hover,
.blog-pagination .is-current { border-color: var(--blog-accent); background: var(--blog-accent); color: #fff; }
.blog-pagination .blog-pagination__gap { border-color: transparent; }
.blog-empty {
  padding: 70px 36px;
  border: 1px solid var(--blog-line);
  border-radius: 22px;
  background: var(--blog-soft);
  text-align: center;
}
.blog-empty__mark {
  display: inline-grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--blog-accent);
  font-size: 26px;
  font-weight: 800;
}
.blog-empty h2 { margin: 20px 0 10px; }
.blog-empty p { color: var(--blog-muted); }
.blog-button {
  display: inline-flex;
  margin-top: 18px;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--blog-accent);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
}
.blog-scope-content {
  max-width: 900px;
  margin: 0 0 48px;
  padding: 30px;
  border-left: 4px solid var(--blog-accent);
  background: var(--blog-soft);
}
.blog-article-main { min-width: 0; }
.blog-article-cover {
  margin: 0 0 34px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--blog-soft);
  box-shadow: 0 18px 48px rgba(13, 39, 68, .1);
}
.blog-article-cover img { display: block; width: 100%; height: auto; max-height: 650px; object-fit: cover; }
.blog-toc {
  margin: 0 0 38px;
  overflow: hidden;
  border: 1px solid var(--blog-line);
  border-radius: 16px;
  background: var(--blog-soft);
}
.blog-toc__toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 19px 22px;
  border: 0;
  background: transparent;
  color: var(--blog-ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-align: left;
}
.blog-toc__toggle span:last-child { transition: transform .2s ease; }
.blog-toc.is-collapsed .blog-toc__toggle span:last-child { transform: rotate(180deg); }
.blog-toc ol { display: grid; gap: 10px; margin: 0; padding: 0 24px 22px 48px; }
.blog-toc.is-collapsed ol { display: none; }
.blog-toc li::marker { color: var(--blog-accent); font-weight: 800; }
.blog-toc a { color: #40566c; text-decoration: none; }
.blog-toc a:hover { color: var(--blog-accent-dark); }
.blog-toc li.is-subheading { margin-left: 18px; font-size: 14px; }
.blog-rich-content {
  color: #263b51;
  font-size: 18px;
  line-height: 1.82;
  overflow-wrap: anywhere;
}
.blog-rich-content > :first-child { margin-top: 0; }
.blog-rich-content h2,
.blog-rich-content h3,
.blog-rich-content h4 {
  scroll-margin-top: 110px;
  color: var(--blog-ink);
  line-height: 1.2;
  letter-spacing: -.025em;
}
.blog-rich-content h2 { margin: 58px 0 20px; font-size: clamp(30px, 4vw, 42px); }
.blog-rich-content h3 { margin: 38px 0 16px; font-size: clamp(24px, 3vw, 30px); }
.blog-rich-content h4 { margin: 30px 0 12px; font-size: 21px; }
.blog-rich-content p,
.blog-rich-content ul,
.blog-rich-content ol,
.blog-rich-content blockquote,
.blog-rich-content table { margin: 0 0 24px; }
.blog-article-content ul,
.blog-article-content ol { padding-left: 1.65em; }
.blog-article-content ul { list-style-type: circle; }
.blog-article-content li { margin-bottom: 10px; padding-left: 6px; }
.blog-article-content li:last-child { margin-bottom: 0; }
.blog-article-content li::marker { color: var(--blog-accent); font-weight: 800; }
.blog-article-content ul li::marker { font-size: .9em; }
.blog-rich-content a { color: var(--blog-accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.blog-rich-content img { max-width: 100%; height: auto; border-radius: 12px; }
.blog-rich-content figure { max-width: 100%; margin: 30px 0; }
.blog-rich-content iframe { max-width: 100%; }
.blog-rich-content blockquote {
  padding: 20px 24px;
  border-left: 4px solid var(--blog-accent);
  background: var(--blog-soft);
  color: #40566c;
}
.blog-rich-content pre {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.blog-rich-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 15px;
}
.blog-rich-content th,
.blog-rich-content td { min-width: 150px; padding: 13px 15px; border: 1px solid var(--blog-line); text-align: left; }
.blog-rich-content th { background: var(--blog-soft); color: var(--blog-ink); }
.blog-article-tags,
.blog-share {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  align-items: center;
  margin-top: 48px;
  padding: 22px 0;
  border-top: 1px solid var(--blog-line);
  border-bottom: 1px solid var(--blog-line);
}
.blog-article-tags > span,
.blog-share > strong { color: var(--blog-ink); font-size: 14px; }
.blog-article-tags > div,
.blog-share > div { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-article-tags a,
.blog-share a,
.blog-share button {
  padding: 8px 12px;
  border: 1px solid var(--blog-line);
  border-radius: 9px;
  background: #fff;
  color: #4d6176;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  text-decoration: none;
}
.blog-share { justify-content: space-between; margin-top: 0; border-top: 0; }
.blog-share .is-copied { border-color: var(--blog-accent); color: var(--blog-accent-dark); }
.blog-rating {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-top: 36px;
  padding: 22px 24px;
  border: 1px solid var(--blog-line);
  border-radius: 16px;
  background: #fff;
}
.blog-rating p { margin: 0; color: var(--blog-dark); font-size: 15px; font-weight: 800; }
.blog-rating__summary { display: flex; gap: 9px; align-items: center; color: #667587; font-size: 14px; }
.blog-rating__summary strong { color: var(--blog-dark); font-size: 18px; }
.blog-rating__stars { display: inline-flex; gap: 2px; font-size: 22px; line-height: 1; }
.blog-rating__star { color: #d8e0e8; }
.blog-rating__star.is-full { color: #f2b233; }
.blog-rating__star.is-half {
  color: transparent;
  background: linear-gradient(90deg, #f2b233 50%, #d8e0e8 50%);
  background-clip: text;
  -webkit-background-clip: text;
}
.blog-author {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-top: 38px;
  padding: 28px;
  border-radius: 18px;
  background: var(--blog-dark);
  color: rgba(255, 255, 255, .75);
}
.blog-author img,
.blog-author__avatar {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border-radius: 50%;
  object-fit: cover;
}
.blog-author__avatar { background: var(--blog-accent); color: #fff; font-size: 28px; font-weight: 800; }
.blog-author p { margin: 0 0 3px; color: #a9bfe8; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.blog-author h2 { margin: 0 0 5px; color: #fff; font-size: 23px; }
.blog-author div div { font-size: 14px; line-height: 1.6; }
.blog-related { padding: 88px 0 110px; background: var(--blog-soft); }
.blog-section-heading { display: flex; gap: 24px; align-items: end; justify-content: space-between; margin-bottom: 34px; }
.blog-section-heading h2 { margin: 5px 0 0; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.035em; }
.blog-section-heading > a { color: var(--blog-accent-dark); font-weight: 800; text-decoration: none; }
.blog-related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.blog-related-card {
  overflow: hidden;
  border: 1px solid var(--blog-line);
  border-radius: 16px;
  background: #fff;
}
.blog-related-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #e8eff3; }
.blog-related-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.blog-related-card:hover img { transform: scale(1.04); }
.blog-related-card > div { padding: 20px; }
.blog-related-card h3 { margin: 15px 0 10px; font-size: 18px; line-height: 1.34; }
.blog-related-card time { color: #8291a1; font-size: 12px; }
.blog-related-card--text { background: linear-gradient(145deg, #fff, #eef2f8); }
.blog-related-card--text > div { min-height: 100%; padding-top: 28px; }

@media (max-width: 1080px) {
  .blog-layout,
  .blog-article-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 34px; }
  .blog-card { grid-template-columns: 1fr; }
  .blog-card__media { aspect-ratio: 16 / 9; }
  .blog-card__media img { min-height: 0; }
  .blog-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .blog-hero { padding: 54px 0 62px; }
  .blog-breadcrumbs { margin-bottom: 22px; }
  .blog-layout,
  .blog-article-layout { grid-template-columns: 1fr; }
  .blog-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 18px; }
  .blog-widget--search,
  .blog-widget--social { grid-column: 1 / -1; }
  .blog-article-sidebar { position: static; }
  .blog-article-sidebar .blog-widget:nth-of-type(n+3) { display: none; }
}

@media (max-width: 600px) {
  .blog-section { padding: 42px 0 72px; }
  .blog-hero h1 { font-size: clamp(34px, 11vw, 48px); }
  .blog-card { border-radius: 16px; }
  .blog-card__body { padding: 24px 21px; }
  .blog-card h2 { font-size: 25px; }
  .blog-meta > * + *::before { display: none; }
  .blog-sidebar { grid-template-columns: 1fr; }
  .blog-widget--search,
  .blog-widget--social { grid-column: auto; }
  .blog-pagination a,
  .blog-pagination > span { min-width: 40px; height: 40px; }
  .blog-rich-content { font-size: 17px; line-height: 1.75; }
  .blog-rich-content h2 { margin-top: 44px; }
  .blog-article-cover { margin-right: 0; margin-left: 0; border-radius: 14px; }
  .blog-toc { border-radius: 12px; }
  .blog-share { align-items: flex-start; flex-direction: column; }
  .blog-rating { align-items: flex-start; flex-direction: column; gap: 12px; padding: 20px; }
  .blog-rating__summary { flex-wrap: wrap; }
  .blog-author { grid-template-columns: 58px minmax(0, 1fr); padding: 22px; }
  .blog-author img,
  .blog-author__avatar { width: 58px; height: 58px; }
  .blog-related { padding: 62px 0 76px; }
  .blog-section-heading { align-items: flex-start; flex-direction: column; }
  .blog-related-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .blog-public *,
  .blog-public *::before,
  .blog-public *::after { scroll-behavior: auto !important; transition: none !important; }
}
