:root {
  --ne-card-sky:#e9f2fd;
  --ne-card-sage:#e9f3ed;
  --ne-card-sand:#f6f0e4;
  --ne-card-slate:#eef1f7;
}

:is(.ne-national-list,.ne-place-grid,.ne-accountability-grid,.ne-series-grid,.ne-rank-chart) > :nth-child(4n+2),
.ne-card-surface:nth-child(4n+2) { --ne-card-tint:var(--ne-card-sage); }
:is(.ne-national-list,.ne-place-grid,.ne-accountability-grid,.ne-series-grid,.ne-rank-chart) > :nth-child(4n+3),
.ne-card-surface:nth-child(4n+3) { --ne-card-tint:var(--ne-card-sand); }
:is(.ne-national-list,.ne-place-grid,.ne-accountability-grid,.ne-series-grid,.ne-rank-chart) > :nth-child(4n),
.ne-card-surface:nth-child(4n) { --ne-card-tint:var(--ne-card-slate); }

:is(.ne-card-surface,.ne-national-card,.ne-place-card,.ne-place-stat,.ne-disclosure-chart,.ne-pledge-card,.ne-home-chart,.ne-visual-answer,.ne-category-detail) {
  background-image:linear-gradient(145deg,var(--ne-card-tint,var(--ne-card-sky)),#fff 82%);
  border-radius:12px;
}
.ne-national-panel:has(> .ne-time-chart, > .ne-rank-chart) { background-image:linear-gradient(145deg,#f4f8fd,#fff 45%); }

.ne-week-card { padding:clamp(16px,2vw,22px); }
.ne-card-linked, .ne-card-surface:has(.ne-card-action[href]) { position:relative; }
a.ne-card-linked { padding-inline-end:50px; }
:is(.ne-week-card time,.ne-card-surface .ne-indicator-source,.ne-trend-tile .ne-chart-links,.ne-pledge-card .ne-chart-links,.ne-place-stat > .ne-card-action) { padding-inline-end:36px; }

a.ne-card-linked,
.ne-week-card h3 a,
.ne-source-card > .ne-card-action { color:inherit; text-decoration:none; }

:is(.ne-card-linked,.ne-card-surface) .ne-card-action { position:static; }
:is(.ne-card-linked,.ne-card-surface) .ne-card-action::after {
  content:"";
  position:absolute;
  inset:0;
}
.ne-card-secondary { position:relative; z-index:1; }

:is(.ne-card-linked,.ne-card-surface:has(.ne-card-action[href]))::before,
:is(.ne-card-linked,.ne-card-surface:has(.ne-card-action[href]))::after {
  content:"";
  position:absolute;
  pointer-events:none;
}
:is(.ne-card-linked,.ne-card-surface:has(.ne-card-action[href]))::before {
  inset-inline-end:14px;
  inset-block-end:12px;
  inline-size:32px;
  block-size:32px;
  background:#fff;
  border:1px solid var(--ne-line);
  border-radius:50%;
}
:is(.ne-card-linked,.ne-card-surface:has(.ne-card-action[href]))::after {
  inset-inline-end:27px;
  inset-block-end:25px;
  inline-size:7px;
  block-size:7px;
  color:var(--ne-primary);
  border:solid currentColor;
  border-width:1.5px 1.5px 0 0;
  transform:rotate(45deg);
}
:is(.ne-card-linked,.ne-card-surface:has(.ne-card-action[href])):is(:hover,:focus-within) { border-color:var(--ne-bar); }
:is(.ne-card-linked,.ne-card-surface:has(.ne-card-action[href])):is(:hover,:focus-within)::before { background:var(--ne-primary); border-color:var(--ne-primary); }
:is(.ne-card-linked,.ne-card-surface:has(.ne-card-action[href])):is(:hover,:focus-within)::after { color:#fff; }
a.ne-card-linked:focus-visible,
:is(.ne-card-linked,.ne-card-surface):has(.ne-card-action:focus-visible) { outline:3px solid var(--ne-red); outline-offset:2px; }

a.ne-rank-action {
  background-image:linear-gradient(145deg,var(--ne-card-tint,var(--ne-card-sky)),#fff 86%);
  border-color:var(--ne-line);
}
a.ne-rank-action:is(:hover,[aria-current]) { background-image:none; }
a.ne-rank-action .ne-rank-label > span { text-decoration:none; }
