/* desk-state-beat-cards.css — mobile-first 8-beat state desk landing grid */
.nd-sios-root .sv-state-desk-line {
  font-size: var(--sv-fs-sm, 13px);
  color: var(--sv-muted);
  margin: 0 0 14px;
  line-height: 1.45;
}

.nd-sios-root .sv-state-beat-index {
  margin: 0 0 28px;
}

.nd-sios-root .sv-state-beat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 720px) {
  .nd-sios-root .sv-state-beat-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
  }
}

.nd-sios-root .sv-state-beat-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--sv-line);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--sv-shadow, 0 1px 3px rgba(20, 20, 20, 0.06));
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  min-width: 0;
}

.nd-sios-root .sv-state-beat-card--breaking { background: var(--beat-breaking-soft); }
.nd-sios-root .sv-state-beat-card--communities { background: var(--beat-communities-soft); }
.nd-sios-root .sv-state-beat-card--business { background: var(--beat-business-soft); }
.nd-sios-root .sv-state-beat-card--politics { background: var(--beat-politics-soft); }
.nd-sios-root .sv-state-beat-card--education { background: var(--beat-education-soft); }
.nd-sios-root .sv-state-beat-card--weather { background: var(--beat-weather-soft); }
.nd-sios-root .sv-state-beat-card--public-safety { background: var(--beat-public-safety-soft); }
.nd-sios-root .sv-state-beat-card--sports { background: var(--beat-sports-soft); }

.nd-sios-root .sv-state-beat-body {
  padding: 10px 12px 12px;
  background: transparent;
}

.nd-sios-root .sv-state-beat-card:hover,
.nd-sios-root .sv-state-beat-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  outline: none;
}

.nd-sios-root .sv-state-beat-band {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  min-height: 44px;
  color: #fff;
}

.nd-sios-root .sv-state-beat-ico {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.nd-sios-root .sv-state-beat-lab {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.nd-sios-root .sv-state-beat-n {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, 0.22);
  padding: 2px 9px;
  border-radius: 20px;
  flex-shrink: 0;
}

.nd-sios-root .sv-state-beat-hl {
  display: block;
  font-size: 13px;
  line-height: 1.35;
  color: var(--sv-ink);
  padding: 6px 0;
  border-top: 1px solid var(--sv-line);
}

.nd-sios-root .sv-state-beat-hl:first-child {
  border-top: 0;
  padding-top: 0;
}

.nd-sios-root .sv-state-beat-empty {
  font-size: 13px;
  color: var(--sv-faint);
  padding: 4px 0;
}

.nd-sios-root .sv-state-beat-error {
  font-size: 13px;
  color: var(--sv-danger, #a32d2d);
  margin: 0 0 12px;
  line-height: 1.4;
}

.nd-sios-root .sv-state-beat-more {
  display: block;
  font-size: 12px;
  color: var(--sv-muted);
  margin-top: 8px;
}

.nd-sios-root .sv-state-beat-card--breaking .sv-state-beat-band { background: var(--beat-breaking); }
.nd-sios-root .sv-state-beat-card--communities .sv-state-beat-band { background: var(--beat-communities); }
.nd-sios-root .sv-state-beat-card--business .sv-state-beat-band { background: var(--beat-business); }
.nd-sios-root .sv-state-beat-card--politics .sv-state-beat-band { background: var(--beat-politics); }
.nd-sios-root .sv-state-beat-card--education .sv-state-beat-band { background: var(--beat-education); }
.nd-sios-root .sv-state-beat-card--weather .sv-state-beat-band { background: var(--beat-weather); }
.nd-sios-root .sv-state-beat-card--public-safety .sv-state-beat-band { background: var(--beat-public-safety); }
.nd-sios-root .sv-state-beat-card--sports .sv-state-beat-band { background: var(--beat-sports); }

@media (max-width: 430px) {
  .nd-sios-root .sv-state-beat-grid { gap: 10px; }
  .nd-sios-root .sv-state-beat-lab { font-size: 13px; }
  .nd-sios-root .sv-state-beat-hl { font-size: 12px; }
}

/* Branded beat-card loading shells */
.nd-sios-root .sv-state-desk-load-msg {
  font-size: var(--sv-fs-sm, 13px);
  font-weight: 600;
  color: var(--sv-ink);
  text-align: center;
  margin: 0 0 16px;
  line-height: 1.45;
}

.nd-sios-root .sv-state-desk-empty {
  font-size: var(--sv-fs-sm, 13px);
  color: var(--sv-muted);
  text-align: center;
  margin: 0 0 14px;
  line-height: 1.45;
}

.nd-sios-root .sv-state-beat-card--loading {
  pointer-events: none;
  cursor: default;
}

.nd-sios-root .sv-state-beat-n--shimmer {
  display: inline-block;
  width: 28px;
  height: 18px;
  padding: 0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.28);
  animation: sv-beat-pulse 1.4s ease-in-out infinite;
}

.nd-sios-root .sv-state-beat-shimmer-line {
  display: block;
  height: 11px;
  border-radius: 6px;
  margin: 8px 0 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.06) 0%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0.06) 100%
  );
  background-size: 200% 100%;
  animation: sv-beat-shimmer 1.4s ease-in-out infinite;
}

.nd-sios-root .sv-state-beat-shimmer-line--short {
  width: 72%;
}

.nd-sios-root .sv-state-beat-index--ready .sv-state-beat-card:not(.sv-state-beat-card--loading) {
  animation: sv-beat-card-in 0.38s ease both;
}

.nd-sios-root .sv-state-beat-index--ready .sv-state-beat-card:nth-child(1) { animation-delay: 0ms; }
.nd-sios-root .sv-state-beat-index--ready .sv-state-beat-card:nth-child(2) { animation-delay: 35ms; }
.nd-sios-root .sv-state-beat-index--ready .sv-state-beat-card:nth-child(3) { animation-delay: 70ms; }
.nd-sios-root .sv-state-beat-index--ready .sv-state-beat-card:nth-child(4) { animation-delay: 105ms; }
.nd-sios-root .sv-state-beat-index--ready .sv-state-beat-card:nth-child(5) { animation-delay: 140ms; }
.nd-sios-root .sv-state-beat-index--ready .sv-state-beat-card:nth-child(6) { animation-delay: 175ms; }
.nd-sios-root .sv-state-beat-index--ready .sv-state-beat-card:nth-child(7) { animation-delay: 210ms; }
.nd-sios-root .sv-state-beat-index--ready .sv-state-beat-card:nth-child(8) { animation-delay: 245ms; }

.nd-sios-root .sv-state-desk--stories-landing .sv-stories-reader {
  display: none !important;
}

@keyframes sv-beat-shimmer {
  0% { background-position: 200% 0; opacity: 0.55; }
  50% { opacity: 1; }
  100% { background-position: -200% 0; opacity: 0.55; }
}

@keyframes sv-beat-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

@keyframes sv-beat-card-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
