/* Home-only reading rhythm and scaffold status presentation. */
.home-fact-strip {
  padding-top: 18px;
  padding-bottom: 18px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--panel-2);
}

.home-fact-strip .row {
  justify-content: space-between;
  gap: 12px 28px;
}

.home-fact-strip span {
  color: var(--muted);
  font-size: var(--text-sm);
}

.home-fact-strip b {
  color: var(--navy);
  font-weight: var(--weight-bold);
}

.home-fact-strip .num {
  font-size: var(--text-brand);
}

.home-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}

.home-section-heading > div {
  flex: 1 1 420px;
  min-width: 0;
}

.home-section-heading .tag {
  margin-bottom: 16px;
}

.home-section-heading h2 {
  margin-bottom: 16px;
}

.home-section-heading p {
  max-width: 48em;
}

.home-section-heading > .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  flex-shrink: 0;
}

.home-reading {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  margin-top: 36px;
}

.home-reading h3 {
  font-size: var(--text-subtitle);
}

.home-reading p {
  color: var(--muted);
  line-height: 1.85;
}

.home-more {
  margin-top: 24px;
}

.home-more a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

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

.server-status:empty {
  display: none;
}

.server-status > * {
  min-width: 0;
  max-width: 100%;
}

.srv-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--panel);
  box-shadow: var(--shadow-chip);
  font-size: var(--text-sm);
}

.srv-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: var(--r-circle);
  background: var(--success);
  box-shadow: 0 0 0 4px var(--success-tint);
}

.srv-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 20px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: var(--r-xs);
  background: var(--panel-2);
}

.srv-flag svg,
.srv-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.srv-name {
  flex: 1 1 90px;
  min-width: 0;
  color: var(--navy);
  font-weight: var(--weight-bold);
  overflow-wrap: anywhere;
}

.srv-type {
  max-width: 100%;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: var(--accent-tint);
  color: var(--navy);
  font-size: var(--text-small);
  overflow-wrap: anywhere;
}

.srv-ms,
.srv-bw {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--text-small);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .home-reading {
    gap: 28px;
  }

  .server-status {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .home-fact-strip .row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .home-reading {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 28px;
  }

  .home-section-heading {
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
  }

  .home-section-heading > div {
    flex-basis: 100%;
  }

  .srv-row {
    gap: 8px;
    padding: 14px;
  }

  .srv-name {
    flex-basis: 110px;
  }
}