/* ===== Tesla News Source (Teslas.R.Us) : mockup styles ===== */

/* ---------- Option A: footer groups ---------- */
.footer-top--news { min-height: 88px; }
.footer-follow {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0;
}
.footer-follow--shop { grid-column: 3; justify-self: end; align-items: flex-end; text-align: right; }
.footer-follow--news { grid-column: 1; grid-row: 1; justify-self: start; align-items: flex-start; text-align: left; }
.footer-follow .footer-social { grid-column: auto; justify-self: auto; }
.footer-follow-label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a8a8a;
  line-height: 1.2;
}
.footer-follow-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
}
.news-source-logo {
  display: block;
  height: 22px;
  width: auto;
}
.news-source-divider {
  width: 1px;
  height: 18px;
  background: #333;
}
.footer-follow-sub {
  margin: 0;
  font-size: 0.72rem;
  color: #8a8a8a;
  line-height: 1.3;
}

@media (max-width: 640px) {
  .footer-top--news {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    row-gap: 1.1rem;
    column-gap: 0.75rem;
    align-items: start;
  }
  .footer-top--news .footer-brand { grid-column: 1 / -1; grid-row: 1; }
  .footer-top--news .footer-follow--news {
    grid-column: 1; grid-row: 2;
    justify-self: stretch; align-items: center; text-align: center;
    padding-right: 0.75rem; border-right: 1px solid #1f1f1f;
  }
  .footer-top--news .footer-follow--shop {
    grid-column: 2; grid-row: 2;
    justify-self: stretch; align-items: center; text-align: center;
  }
  .footer-follow-row { gap: 0.35rem; }
  .news-source-logo { height: 17px; margin-right: 0.15rem; }
  .news-source-divider { display: none; }
  .footer-follow-label { font-size: 0.62rem; letter-spacing: 0.1em; }
  .footer-follow-sub { font-size: 0.68rem; }
}

/* ---------- Option B: homepage news card ---------- */
.news-card-section { padding: 0.5rem 0 2.75rem; }
.news-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: 14px;
  background: #0b0b0d;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.news-card::before {
  /* thin brand gradient edge, echoing the Teslas.R.Us logo */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #e82127, #c44bff 50%, #2f6bff);
}
.news-card::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -60%;
  width: 55%;
  height: 220%;
  background: radial-gradient(closest-side, rgba(196, 75, 255, 0.16), transparent 70%);
  z-index: -1;
  pointer-events: none;
}
.news-card-logo {
  flex: 0 0 auto;
  display: block;
  height: 44px;
  width: auto;
}
.news-card-body { flex: 1 1 auto; min-width: 0; }
.news-card-eyebrow {
  margin: 0 0 0.3rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a9a9b0;
}
.news-card-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}
.news-card-text {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #b0b0b0;
}
.news-card-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 0.6rem;
}
.news-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.6rem;
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  border: 1px solid #3a3a40;
  background: #17171b;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.news-btn .social-icon { width: 1rem; height: 1rem; }
.news-btn:hover { background: #7b2ff7; border-color: #7b2ff7; }
.news-btn:focus-visible { outline: 3px solid #e82127; outline-offset: 2px; }

@media (max-width: 860px) {
  .news-card { flex-wrap: wrap; gap: 0.9rem 1.1rem; }
  .news-card-body { flex-basis: calc(100% - 200px); }
  .news-card-actions { flex-basis: 100%; }
}
@media (max-width: 640px) {
  .news-card-section { padding: 0 0 2rem; }
  .news-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 0.8rem;
    padding: 1.15rem 1rem 1.1rem;
  }
  .news-card-logo { height: 34px; }
  .news-card-title { font-size: 1.05rem; }
  .news-card-text { font-size: 0.8rem; }
  .news-card-actions { width: 100%; }
  .news-btn { flex: 1 1 0; justify-content: center; padding: 0.5rem 0.6rem; font-size: 0.82rem; }
}
