:root {
  --bg: #f6f6fb;
  --paper: #ffffff;
  --paper-soft: #f9f8ff;
  --ink: #141424;
  --muted: #5d5d73;
  --line: #e2e0ed;
  --accent: #6a3cff;
  --accent-soft: #efe9ff;
  --teal: #2a9f95;
  --display: "Avenir Next", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --body: "Iowan Old Style", "Charter", "Times New Roman", serif;
  --sans: "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body.blog-body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 520px at 12% -12%, #e9e5ff 0%, rgba(233, 229, 255, 0) 70%),
    radial-gradient(1000px 480px at 110% 12%, #e8f8f6 0%, rgba(232, 248, 246, 0) 66%),
    var(--bg);
  line-height: 1.55;
}

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-family: var(--display);
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 11px;
}

.blog-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  background: rgba(248, 248, 252, 0.92);
}

.blog-nav-inner {
  min-height: 84px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  color: #2d2c3e;
  font-size: 1.03rem;
  font-weight: 560;
}

.nav-links a.active {
  color: #29146f;
  font-weight: 710;
}

.blog-nav-cta {
  text-decoration: none;
  color: #fff;
  border-radius: 999px;
  padding: 11px 16px;
  font-weight: 670;
  font-size: 0.91rem;
  background: linear-gradient(135deg, #120e23 0%, #2a1d5f 100%);
  border: 1px solid #120e23;
}

.blog-hero {
  padding: 72px 0 34px;
}

.blog-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800;
}

.blog-hero-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: 22px;
  align-items: stretch;
}

.blog-hero-copy h1 {
  margin: 0;
  font-size: clamp(2.24rem, 5vw, 4.35rem);
  line-height: 0.97;
  letter-spacing: -0.05em;
  max-width: 11ch;
  font-family: var(--display);
}

.blog-hero-copy p {
  margin: 16px 0 0;
  color: var(--muted);
  max-width: 58ch;
  font-size: 1.07rem;
}

.blog-hero-points {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.blog-hero-points li {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 7px 12px;
  font-size: 0.84rem;
  color: #3f3d55;
}

.blog-hero-visual {
  border: 1px solid #d8d5eb;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(148deg, #18142d 0%, #2f225e 48%, #1f3f69 100%);
  padding: 16px;
  position: relative;
}

.blog-hero-visual::after {
  content: "WINFIT RESEARCH ISSUE";
  position: absolute;
  left: 16px;
  top: 12px;
  letter-spacing: 0.16em;
  font-size: 0.65rem;
  color: #dacfff;
  font-weight: 700;
}

.hero-mosaic {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 118px 118px;
  gap: 10px;
}

.hero-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-mosaic img:nth-child(3) {
  grid-column: 1 / span 2;
}

.category-hubs {
  padding: 8px 0 18px;
}

.hub-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 10px;
}

.hub-head h2 {
  margin: 0;
  font-size: clamp(1.34rem, 2.3vw, 2rem);
  letter-spacing: -0.03em;
  font-family: var(--display);
}

.hub-head p {
  margin: 0;
  color: var(--muted);
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.hub-card {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 12px;
  min-height: 108px;
}

.hub-card span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6d6886;
  font-weight: 760;
}

.hub-card strong {
  display: block;
  margin-top: 9px;
  color: #252239;
  font-size: 1.01rem;
  line-height: 1.2;
}

.featured-story {
  padding: 14px 0 10px;
}

.featured-shell {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.featured-shell img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.featured-copy {
  padding: 28px;
}

.featured-label {
  margin: 0;
  font-size: 0.71rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #6b6390;
  font-weight: 750;
}

.featured-copy h2 {
  margin: 10px 0 12px;
  font-size: clamp(1.6rem, 2.7vw, 2.65rem);
  letter-spacing: -0.03em;
  line-height: 1.06;
  font-family: var(--display);
}

.featured-copy p {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
}

.featured-meta,
.stream-meta,
.article-meta {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.meta-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.82rem;
  color: #4c4864;
  background: #fff;
}

.read-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  text-decoration: none;
  color: #2a156d;
  font-weight: 710;
}

.read-link::after {
  content: "→";
}

.blog-stream {
  padding: 24px 0 12px;
}

.stream-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 10px;
}

.stream-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.4vw, 2.3rem);
  letter-spacing: -0.028em;
  font-family: var(--display);
}

.stream-head p {
  margin: 0;
  color: var(--muted);
  max-width: 54ch;
}

.stream-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.stream-search label {
  display: block;
  margin: 0 0 6px;
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #6f6a86;
  font-weight: 740;
}

.stream-search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 13px;
  font-size: 0.98rem;
  background: #fff;
  color: var(--ink);
}

.stream-search input:focus {
  outline: 2px solid #d9d0ff;
  outline-offset: 0;
  border-color: #cfc5f8;
}

.stream-filters {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 8px 12px;
  font-size: 0.82rem;
  color: #4f4c66;
  font-weight: 630;
  cursor: pointer;
}

.filter-btn.active {
  border-color: #c9bcff;
  background: var(--accent-soft);
  color: #2f1a77;
}

.stream-status {
  margin: 8px 0 0;
  color: #68647e;
  font-size: 0.9rem;
}

.stream-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.stream-item {
  border-bottom: 1px solid var(--line);
}

.stream-item a {
  text-decoration: none;
  color: inherit;
  display: grid;
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
}

.stream-item img {
  width: 100%;
  height: 166px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid #ddd9ea;
}

.stream-kicker {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6f6790;
  font-weight: 760;
}

.stream-item h3 {
  margin: 8px 0;
  font-size: clamp(1.24rem, 2vw, 1.72rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-family: var(--display);
}

.stream-item p {
  margin: 0;
  color: var(--muted);
  max-width: 64ch;
}

.stream-empty {
  margin: 16px 0 0;
  border: 1px dashed #d2cdee;
  border-radius: 12px;
  padding: 14px;
  color: #544f6c;
  background: #f9f7ff;
}

.stream-pagination {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 16px;
}

.stream-pagination button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 8px 11px;
  font-size: 0.85rem;
  color: #4b4862;
  cursor: pointer;
}

.stream-pagination button.active {
  border-color: #c3b6ff;
  background: #f2edff;
  color: #2d176f;
  font-weight: 710;
}

.blog-standards {
  padding: 34px 0 76px;
}

.standards-shell {
  border: 1px solid #ddd9ee;
  border-radius: 18px;
  background: linear-gradient(170deg, #fff 0%, #f9f8ff 100%);
  padding: 24px;
}

.standards-shell h2 {
  margin: 0;
  font-size: clamp(1.46rem, 2.2vw, 2.2rem);
  letter-spacing: -0.025em;
  font-family: var(--display);
}

.standards-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.standards-grid p {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  color: #45425d;
}

.blog-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 34px 0 46px;
}

.blog-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.blog-footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.blog-footer-links a {
  text-decoration: none;
  color: #4d4964;
}

.blog-copy {
  margin: 0;
  color: #77738d;
  font-size: 0.9rem;
}

.reading-progress {
  position: fixed;
  top: 84px;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 60;
  pointer-events: none;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #6a3cff 0%, #2a9f95 100%);
}

.article-main {
  padding: 44px 0 70px;
}

.article-breadcrumb {
  margin: 0 0 16px;
  font-size: 0.84rem;
  color: #6e6a86;
}

.article-breadcrumb a {
  text-decoration: none;
  color: inherit;
}

.article-hero {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
}

.article-hero img {
  width: 100%;
  height: min(430px, 46vw);
  min-height: 250px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.article-head {
  padding: 24px;
}

.article-kicker {
  margin: 0;
  font-size: 0.71rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #6e6792;
  font-weight: 760;
}

.article-head h1 {
  margin: 10px 0;
  font-size: clamp(1.9rem, 4vw, 3.65rem);
  letter-spacing: -0.045em;
  line-height: 1.03;
  max-width: 17ch;
  font-family: var(--display);
}

.article-subhead {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 66ch;
}

.article-layout {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 0.22fr);
  gap: 20px;
  align-items: start;
}

.article-content {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  padding: 26px;
}

.article-content > p:first-of-type::first-letter {
  float: left;
  font-size: 3.2rem;
  line-height: 0.86;
  padding-right: 8px;
  font-family: var(--display);
  color: #2a1a6e;
}

.article-content p,
.article-content li {
  font-family: var(--body);
  font-size: 1.14rem;
  color: #29263b;
  line-height: 1.74;
}

.article-content h2 {
  margin: 30px 0 10px;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.14;
  font-family: var(--display);
}

.article-content h3 {
  margin: 20px 0 8px;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  font-family: var(--display);
}

.article-content ul,
.article-content ol {
  margin: 10px 0;
  padding-left: 20px;
}

.article-content a {
  color: #331c86;
}

.article-content blockquote {
  margin: 18px 0;
  border-left: 3px solid #c6bcf7;
  padding: 10px 14px;
  background: #f8f6ff;
  color: #3d3860;
  border-radius: 0 12px 12px 0;
  font-style: italic;
}

.evidence-callout {
  border: 1px solid #d6cff4;
  background: #f7f4ff;
  border-radius: 14px;
  padding: 14px;
  margin: 18px 0;
}

.evidence-callout strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #4d4390;
  font-family: var(--display);
}

.article-aside {
  position: sticky;
  top: 98px;
}

.aside-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}

.aside-card h3 {
  margin: 0 0 8px;
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #5f5b76;
}

.aside-card ul {
  margin: 0;
  padding-left: 16px;
}

.aside-card li {
  margin-bottom: 8px;
}

.aside-card a {
  color: #44388a;
  text-decoration: none;
  font-size: 0.94rem;
}

.references-list {
  margin-top: 16px;
  padding-left: 18px;
}

.references-list li {
  margin-bottom: 8px;
  font-size: 1rem;
}

.related-links {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.related-links a {
  text-decoration: none;
  color: #2f1e74;
  font-weight: 690;
}

@media (max-width: 1100px) {
  .hub-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stream-tools {
    grid-template-columns: 1fr;
  }

  .stream-filters {
    justify-content: flex-start;
  }
}

@media (max-width: 980px) {
  .blog-hero-grid,
  .featured-shell,
  .article-layout,
  .stream-item a {
    grid-template-columns: 1fr;
  }

  .stream-item img {
    height: 210px;
  }

  .featured-shell img {
    min-height: 250px;
  }

  .article-aside {
    position: static;
  }
}

@media (max-width: 720px) {
  .blog-nav-inner {
    min-height: 68px;
    grid-template-columns: auto 1fr;
  }

  .nav-links,
  .blog-nav-cta {
    display: none;
  }

  .reading-progress {
    top: 68px;
  }

  .blog-hero {
    padding-top: 44px;
  }

  .hero-mosaic {
    grid-template-rows: 104px 104px;
  }

  .hub-grid,
  .standards-grid {
    grid-template-columns: 1fr;
  }

  .article-head,
  .article-content {
    padding: 16px;
  }

  .article-content > p:first-of-type::first-letter {
    font-size: 2.5rem;
    padding-right: 6px;
  }

  .article-content p,
  .article-content li {
    font-size: 1.05rem;
  }
}

/* --- Blog Home V2 (clean editorial layout) --- */
body.blog-body.blog-home {
  background:
    radial-gradient(980px 420px at 88% -10%, #ebe7fb 0%, rgba(235, 231, 251, 0) 72%),
    #f4f5f9;
}

.blog-home .blog-home-hero {
  padding: 64px 0 28px;
}

.blog-home .blog-home-hero-inner {
  display: block;
}

.blog-home .blog-home-copy {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.blog-home .blog-home-copy h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.1rem, 4.2vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  max-width: 16ch;
  margin-inline: auto;
}

.blog-home .blog-topic-row {
  padding: 8px 0 6px;
}

.blog-home .blog-topic-row-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.blog-home .blog-topic-row p {
  margin: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #6a6780;
  font-weight: 700;
}

.blog-home .topic-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-home .topic-links a {
  text-decoration: none;
  color: #403c59;
  border: 1px solid #d9d5e8;
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.86rem;
  font-weight: 560;
}

.blog-home .blog-home-picks {
  padding: 16px 0 8px;
}

.blog-home .picks-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.blog-home .pick-card {
  border: 1px solid #dad8e7;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}

.blog-home .pick-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.blog-home .pick-card > div {
  padding: 15px 16px 18px;
}

.blog-home .pick-kicker {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6a6582;
  font-weight: 760;
}

.blog-home .pick-card h2 {
  margin: 8px 0 7px;
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.blog-home .pick-card p {
  margin: 0;
  color: #55526a;
}

.blog-home .blog-stream {
  padding: 24px 0 28px;
}

.blog-home .stream-head {
  align-items: baseline;
  margin-bottom: 14px;
}

.blog-home .stream-head h2 {
  font-size: clamp(1.5rem, 2.2vw, 2.2rem);
}

.blog-home .stream-head p {
  max-width: 48ch;
}

.blog-home .stream-tools {
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 12px;
  margin-bottom: 10px;
}

.blog-home .stream-search input {
  border-radius: 11px;
  padding: 11px 12px;
}

.blog-home .filter-btn {
  padding: 7px 11px;
  font-size: 0.81rem;
}

.blog-home .stream-status {
  margin: 6px 0 10px;
  font-size: 0.88rem;
}

.blog-home .stream-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 12px;
}

.blog-home .stream-item {
  border: 1px solid #dad8e8;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  min-height: 232px;
}

.blog-home .stream-item a {
  text-decoration: none;
  color: inherit;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 0;
  padding: 0;
  align-items: stretch;
  min-height: 232px;
}

.blog-home .stream-item img {
  width: 100%;
  height: 100%;
  min-height: 232px;
  max-height: 232px;
  object-fit: contain;
  object-position: center;
  background: #f3f4f8;
  padding: 8px;
  border: 0;
  border-right: 1px solid #e2dfec;
  border-radius: 0;
}

.blog-home .stream-copy {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.blog-home .stream-item h3 {
  margin: 8px 0 8px;
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.1vw, 1.68rem);
  line-height: 1.12;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-home .stream-item p {
  margin: 0;
  color: #55526a;
}

.blog-home .stream-copy > p:not(.stream-kicker):not(.stream-meta-text) {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-home .stream-meta-text {
  margin-top: 10px;
  color: #6f6b85;
  font-size: 0.86rem;
}

.blog-home .stream-empty {
  margin-top: 8px;
}

.blog-home .stream-pagination {
  margin-top: 12px;
}

@media (max-width: 980px) {
  .blog-home .picks-grid,
  .blog-home .stream-item a,
  .blog-home .stream-tools {
    grid-template-columns: 1fr;
  }

  .blog-home .stream-item img {
    min-height: 240px;
    max-height: 240px;
    padding: 6px;
    border-right: 0;
    border-bottom: 1px solid #e2dfec;
  }

  .blog-home .stream-item,
  .blog-home .stream-item a {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .blog-home .blog-home-hero {
    padding-top: 36px;
  }

  .blog-home .blog-home-copy h1 {
    max-width: 12ch;
  }

  .blog-home .stream-copy {
    padding: 14px;
  }

  .blog-home .topic-links a {
    font-size: 0.82rem;
    padding: 6px 10px;
  }
}
