/* Homepage: countdown rows inside the earth / moon / mars panels,
   stellar times latest-issue line, research tracker list, contact WhatsApp button. */

.panel-countdowns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
  max-width: 34rem;
}

.cd-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "title units"
    "meta  meta";
  align-items: center;
  column-gap: 18px;
  row-gap: 4px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(5, 5, 8, 0.52);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.cd-row[hidden] { display: none; }

.cd-title {
  grid-area: title;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: #d6d6e2;
  line-height: 1.35;
}

.cd-title strong {
  color: var(--text);
  font-weight: 400;
}

.cd-units {
  grid-area: units;
  display: flex;
  gap: 12px;
  font-variant-numeric: tabular-nums;
}

.cd-u {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 34px;
}

.cd-u b {
  font-weight: 300;
  font-size: 1.3rem;
  line-height: 1.15;
  color: var(--purple-bright);
}

.cd-u i {
  font-style: normal;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cd-status {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple-bright);
}

.cd-meta {
  grid-area: meta;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  line-height: 1.4;
}

.cd-meta a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(192, 132, 252, 0.45);
  text-underline-offset: 2px;
}

.cd-meta a:hover { color: var(--purple-bright); }

/* Stellar times latest issue line */
.st-latest {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
  font-weight: 300;
}

.st-latest-k {
  color: var(--purple-bright);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  margin-right: 4px;
}

.st-latest a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(192, 132, 252, 0.45);
  text-underline-offset: 2px;
}

.st-latest a:hover { color: var(--purple-bright); }

/* Research card: tracker list, ready for more entries */
.pillar-card-research {
  background:
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(168, 85, 247, 0.1), transparent 55%),
    var(--bg-card);
}

.tracker-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.tracker-item .pillar-lede { flex: none; }

.tracker-name {
  color: var(--text);
  font-weight: 400;
  text-decoration: underline;
  text-decoration-color: rgba(192, 132, 252, 0.45);
  text-underline-offset: 2px;
}

.tracker-name:hover { color: var(--purple-bright); }

.tracker-more { flex: none; font-size: 0.82rem !important; }

/* Contact: WhatsApp button under channels */
.contact-wa {
  margin-top: 14px;
  align-self: flex-start;
}

/* Desktop */
@media (min-width: 861px) {
  .snap-world .snap-copy-world { max-width: 38rem; }
}

/* Mobile */
@media (max-width: 860px) {
  .panel-countdowns { margin-top: 14px; gap: 8px; max-width: none; }
  .cd-row { padding: 10px 12px; column-gap: 10px; }
  .cd-title { font-size: 0.74rem; }
  .cd-units { gap: 8px; }
  .cd-u { min-width: 28px; }
  .cd-u b { font-size: 1.05rem; }
  .cd-u i { font-size: 0.52rem; letter-spacing: 0.1em; }
  .cd-meta { font-size: 0.6rem; }
  .snap-world .snap-copy-world { padding-bottom: 44px; }
  .contact-wa { margin-top: 10px; padding: 10px 16px; font-size: 0.85rem; }
}

@media (max-width: 380px) {
  .cd-row { grid-template-columns: 1fr; grid-template-areas: "title" "units" "meta"; }
}

/* Short desktop viewports */
@media (max-height: 760px) and (min-width: 861px) {
  .panel-countdowns { margin-top: 14px; gap: 8px; }
  .cd-row { padding: 9px 14px; }
  .snap-world .snap-copy-world { padding-bottom: 64px; }
}

/* Keep the brand capitalization on the WhatsApp button (buttons are lowercase by default) */
.contact-wa { text-transform: none; }

/* Mobile pillars: cards size to their content and the panel scrolls inside
   (fixes clipped/overlapping cards that existed before this update). */
@media (max-width: 859px) {
  .snap-pillars .pillars-grid-3 {
    max-height: none;
    overflow: visible;
    flex-shrink: 0;
    padding-right: 0;
  }
  .snap-pillars .pillars-grid-3 .pillar-card { min-height: auto; gap: 10px; }
  .snap-pillars .pillar-masthead { font-size: 1.6rem !important; }
  .snap-pillars .pillar-title { font-size: 1.5rem; }
  .snap-pillars .st-latest { font-size: 0.8rem; }
  .snap-pillars .pillar-lede { font-size: 0.86rem; }
}

/* Mobile contact: let the grid take its natural height so the footer never
   overlaps the form note; the panel scrolls inside if needed. */
@media (max-width: 860px) {
  .snap-contact-grid { flex: none; align-content: start; }
}
