body.home-redesign {
  --home-ink: #172033;
  --home-muted: #667085;
  --home-line: #d9e1ec;
  --home-teal: #0f766e;
  --home-blue: #2457a6;
  --home-berry: #9f2548;
  background: #f6f8fb;
  color: var(--home-ink);
}

.home-redesign .home-shell {
  width: min(1280px, calc(100% - 40px));
  padding-top: 16px;
}

.home-redesign .topbar {
  position: sticky;
  top: 10px;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  min-height: 66px;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(217, 225, 236, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  padding: 10px 14px;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.06);
}

.home-redesign .brand-block {
  color: var(--home-ink);
  text-decoration: none;
}

.home-redesign .brand-title {
  display: block;
  font-size: 19px;
  font-weight: 800;
}

.home-redesign .topbar-actions .ghost-button {
  min-height: 42px;
  border-color: var(--home-teal);
  border-radius: 6px;
  color: #0b4f4a;
}

.home-main {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 18px 0 34px;
}

.home-command-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  min-height: 370px;
  gap: 38px;
  align-items: center;
  overflow: hidden;
  border: 1px solid #27384d;
  border-radius: 8px;
  background: #172033;
  padding: 42px;
  color: #fff;
}

.home-command-copy .eyebrow {
  margin: 0 0 12px;
  color: #7dd3c7;
}

.home-command-copy h1 {
  max-width: 680px;
  margin: 0;
  color: #fff;
  font-size: 50px;
  line-height: 1.04;
  letter-spacing: 0;
}

.home-command-copy > p:not(.eyebrow) {
  max-width: 680px;
  margin: 16px 0 0;
  color: #c9d4e2;
  font-size: 16px;
  line-height: 1.65;
}

.home-hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
}

.home-hero-links a {
  color: #fff;
  font-size: 13px;
  font-weight: 750;
}

.home-search-tool {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: #fff;
  padding: 22px;
  color: var(--home-ink);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
}

.home-search-mode {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  margin: 0 0 18px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #eef2f6;
  padding: 3px;
}

.home-search-mode button {
  min-height: 36px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  padding: 0 14px;
  color: #526173;
  font-weight: 750;
}

.home-search-mode button[aria-pressed="true"] {
  background: #fff;
  color: var(--home-teal);
  box-shadow: 0 1px 3px rgba(23, 32, 51, 0.14);
}

.home-search-tool label {
  display: block;
  margin-bottom: 9px;
  font-size: 13px;
  font-weight: 800;
}

.home-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.home-search-row input {
  min-width: 0;
  min-height: 52px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 14px;
  color: var(--home-ink);
  font: inherit;
}

.home-search-row input:focus {
  border-color: var(--home-teal);
  outline: 3px solid rgba(15, 118, 110, 0.12);
}

.home-search-row button {
  min-height: 52px;
  border: 1px solid var(--home-teal);
  border-radius: 6px;
  background: var(--home-teal);
  padding: 0 18px;
  color: #fff;
  font-weight: 800;
}

.home-search-hint {
  min-height: 34px;
  margin: 11px 0 0;
  color: var(--home-muted);
  font-size: 11px;
  line-height: 1.5;
}

.home-live-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: #fff;
}

.home-live-strip div {
  min-height: 92px;
  border-left: 1px solid var(--home-line);
  padding: 17px 18px;
}

.home-live-strip div:first-child { border-left: 0; }
.home-live-strip span { display: block; color: var(--home-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.home-live-strip strong { display: block; margin-top: 9px; font-size: 21px; font-variant-numeric: tabular-nums; }

.home-section-heading {
  display: flex;
  gap: 22px;
  align-items: end;
  justify-content: space-between;
}

.home-section-heading h2 { margin: 4px 0 0; font-size: 27px; }
.home-section-heading p:not(.eyebrow) { max-width: 620px; margin: 0; color: var(--home-muted); line-height: 1.6; }
.home-section-heading > a { color: var(--home-blue); font-weight: 750; white-space: nowrap; }

.home-ranking-section,
.home-evidence-section,
.home-method-section {
  display: grid;
  gap: 16px;
  padding-top: 8px;
}

.home-ranking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.home-ranking-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-top: 4px solid var(--card-accent);
  border-radius: 8px;
  background: #fff;
  padding: 26px;
}

.home-ranking-card.journals { --card-accent: var(--home-blue); }
.home-ranking-card.authors { --card-accent: var(--home-teal); }
.home-ranking-card .eyebrow { color: var(--card-accent); }
.home-ranking-card h3 { margin: 6px 0 0; font-size: 28px; }
.home-ranking-card > p { margin: 12px 0 0; color: var(--home-muted); line-height: 1.65; }

.home-ranking-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  margin-top: 20px;
  border: 1px solid var(--home-line);
  border-radius: 7px;
}

.home-ranking-facts div { min-height: 70px; border-left: 1px solid var(--home-line); padding: 13px; }
.home-ranking-facts div:nth-child(odd) { border-left: 0; }
.home-ranking-facts div:nth-child(n+3) { border-top: 1px solid var(--home-line); }
.home-ranking-facts span { display: block; color: var(--home-muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.home-ranking-facts strong { display: block; margin-top: 7px; font-size: 13px; line-height: 1.4; }

.home-ranking-card > a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  margin-top: 20px;
  border: 1px solid var(--card-accent);
  border-radius: 6px;
  padding: 0 15px;
  color: var(--card-accent);
  font-weight: 800;
  text-decoration: none;
}

.home-evidence-map {
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: #fff;
}

.home-evidence-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.65fr) minmax(0, 1fr) minmax(0, 1fr);
  border-top: 1px solid var(--home-line);
}

.home-evidence-row:first-child { border-top: 0; }
.home-evidence-row > * { padding: 15px 18px; }
.home-evidence-row > * + * { border-left: 1px solid var(--home-line); }
.home-evidence-row.header { background: #eef2f6; color: #526173; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.home-evidence-row strong { font-size: 13px; }
.home-evidence-row span { color: var(--home-muted); font-size: 13px; line-height: 1.5; }

.home-method-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: #fff;
}

.home-method-flow article { min-height: 150px; border-left: 1px solid var(--home-line); padding: 22px; }
.home-method-flow article:first-child { border-left: 0; }
.home-method-flow span { color: var(--home-teal); font-size: 11px; font-weight: 900; }
.home-method-flow h3 { margin: 10px 0 0; font-size: 18px; }
.home-method-flow p { margin: 9px 0 0; color: var(--home-muted); font-size: 13px; line-height: 1.6; }

.home-correction-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  border: 1px solid #c6d8ea;
  border-left: 4px solid var(--home-blue);
  border-radius: 8px;
  background: #f6f9fd;
  padding: 22px 24px;
}

.home-correction-band h2 { margin: 0; font-size: 18px; }
.home-correction-band p { margin: 7px 0 0; color: var(--home-muted); line-height: 1.6; }
.home-correction-band a { color: var(--home-blue); font-weight: 800; white-space: nowrap; }

@media (max-width: 980px) {
  .home-redesign .topbar { position: static; }
  .home-command-hero { grid-template-columns: 1fr; }
  .home-ranking-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .home-redesign .home-shell { width: min(100% - 20px, 1280px); }
  .home-redesign .topbar { grid-template-columns: auto minmax(0, 1fr) auto; }
  .home-command-hero { min-height: auto; gap: 28px; padding: 28px 22px; }
  .home-command-copy h1 { font-size: 36px; }
  .home-search-tool { padding: 18px; }
  .home-search-row { grid-template-columns: 1fr; }
  .home-live-strip { grid-template-columns: 1fr 1fr; }
  .home-live-strip div:nth-child(3) { border-top: 1px solid var(--home-line); border-left: 0; }
  .home-live-strip div:nth-child(4) { border-top: 1px solid var(--home-line); }
  .home-section-heading { display: grid; align-items: start; }
  .home-ranking-card { padding: 21px; }
  .home-evidence-map { overflow-x: auto; }
  .home-evidence-row { min-width: 720px; }
  .home-method-flow { grid-template-columns: 1fr; }
  .home-method-flow article { border-top: 1px solid var(--home-line); border-left: 0; }
  .home-method-flow article:first-child { border-top: 0; }
  .home-correction-band { grid-template-columns: 1fr; }
}
