/* Ideas layer within Research — one evidence base, two editorial speeds. */

/* Keep the page compact: one strong row of reports, then expand in place. */
.report-library-item:nth-child(n + 4) {
  display: none !important;
}

.report-library-grid.is-expanded .report-library-item:nth-child(n + 4) {
  display: flex !important;
}

.report-library-toggle {
  display: block !important;
  margin-top: 0;
  text-align: center;
}

.report-library-toggle .toggle-hide {
  display: none;
}

.report-library-grid.is-expanded + .report-library-toggle .toggle-show {
  display: none;
}

.report-library-grid.is-expanded + .report-library-toggle .toggle-hide {
  display: inline;
}

.report-library-grid.is-expanded + .report-library-toggle svg {
  transform: rotate(180deg);
}

.research-ideas.section {
  padding: 100px 0 108px;
  background: #f7f7f9;
  box-shadow: inset 0 1px 0 rgba(17, 17, 17, 0.05);
}

.research-ideas-header {
  display: flex;
  max-width: 760px;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 46px;
}

.research-ideas-kicker {
  display: block;
  margin-bottom: 14px;
  color: #2563eb;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.research-ideas-header h2 {
  max-width: 720px;
  color: #111111;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1.01;
  letter-spacing: -0.058em;
}

.research-ideas-header > p {
  max-width: 470px;
  margin-top: 18px;
  color: #55565d;
  font-size: 16px;
  line-height: 1.65;
}

.research-ideas-header > a {
  display: inline-flex;
  margin-top: 18px;
  color: #111111;
  font-size: 13px;
  font-weight: 700;
}

.research-ideas-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(320px, 0.58fr);
  gap: 16px;
}

.research-idea-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  min-height: 440px;
  overflow: hidden;
  border-radius: 26px;
  background: #0b0c10;
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease;
}

.research-idea-lead:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 22px 52px rgba(18, 24, 40, 0.16);
}

.research-idea-visual {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 440px;
  padding: 34px;
  background:
    radial-gradient(circle at 68% 32%, rgba(88, 199, 247, 0.3), transparent 28%),
    linear-gradient(145deg, #0a06e5, #101322 62%, #070809);
}

.research-idea-visual::before,
.research-idea-visual::after {
  content: '';
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

.research-idea-visual::before {
  right: -90px;
  bottom: -170px;
  width: 450px;
  height: 450px;
}

.research-idea-visual::after {
  right: 18px;
  bottom: -92px;
  width: 280px;
  height: 280px;
}

.research-idea-visual-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.research-idea-visual-meta span {
  color: #c0c2ca;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.research-idea-visual strong {
  position: absolute;
  bottom: 74px;
  left: 34px;
  color: #ffffff;
  font-family: 'Sora', sans-serif;
  font-size: clamp(4.5rem, 8vw, 7.5rem);
  font-weight: 600;
  line-height: 0.86;
  letter-spacing: -0.075em;
}

.research-idea-visual-meta em {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(152, 234, 101, 0.1);
  color: #b7f58f;
  box-shadow: inset 0 0 0 1px rgba(152, 234, 101, 0.24);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.research-idea-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px 36px;
}

.research-idea-body time,
.research-idea-meta {
  color: #898c95;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.research-idea-body h3 {
  margin: 12px 0 14px;
  color: #ffffff;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.06;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.research-idea-body p {
  color: #a7aab3;
  font-size: 14px;
  line-height: 1.65;
}

.research-idea-link {
  display: block;
  margin-top: 24px;
  color: inherit;
  font-size: 12px;
  font-weight: 700;
}

.research-idea-list {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}

.research-idea-list > a {
  display: flex;
  flex-direction: column;
  min-height: 212px;
  padding: 28px;
  border-radius: 20px;
  background: #ffffff;
  color: #111111;
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.07);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.24s ease;
}

.research-idea-list > a:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.12), 0 16px 38px rgba(18, 24, 40, 0.08);
}

.research-idea-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.research-idea-meta span {
  color: #2563eb;
  font-weight: 700;
}

.research-idea-list h3 {
  margin: 18px 0 10px;
  color: #111111;
  font-size: 21px;
  line-height: 1.16;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.research-idea-list p {
  color: #5f6067;
  font-size: 13px;
  line-height: 1.55;
}

.research-idea-list .research-idea-link {
  margin-top: auto;
  padding-top: 18px;
}

html[data-theme='dark'] .research-ideas.section {
  background: #0b0c10;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html[data-theme='dark'] .research-ideas-header h2,
html[data-theme='dark'] .research-ideas-header > a {
  color: #f2f2f4;
}

html[data-theme='dark'] .research-ideas-header > p {
  color: #a5a8b0;
}

html[data-theme='dark'] .research-idea-list > a {
  background: #15161b;
  color: #f2f2f4;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

html[data-theme='dark'] .research-idea-list h3 {
  color: #f2f2f4;
}

html[data-theme='dark'] .research-idea-list p {
  color: #a5a8b0;
}

@media (max-width: 960px) {
  .research-ideas-grid {
    grid-template-columns: 1fr;
  }

  .research-idea-list {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
}

@media (max-width: 720px) {
  .research-ideas.section {
    padding: 78px 0 84px;
  }

  .research-idea-lead {
    grid-template-columns: 1fr;
  }

  .research-idea-visual {
    min-height: 300px;
  }

  .research-idea-body {
    padding: 30px 26px;
  }

  .research-idea-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .research-ideas-header h2 {
    font-size: 2.45rem;
  }

  .research-idea-visual {
    min-height: 260px;
    padding: 24px;
  }

  .research-idea-visual strong {
    bottom: 66px;
    left: 24px;
    font-size: 4.4rem;
  }

  .research-idea-list > a {
    min-height: 0;
    padding: 24px;
  }
}
