/* index.css — homepage redesign (scoped + cleaned)
   Goals:
   - Prevent collisions with global style.css (.card, .link, .article-title, etc.)
   - Normalize font-weight (avoid 850/950 clamping on system fonts)
   - Fix hover transitions (define on base, not :hover)
   - Keep your exact visual design intent

   IMPORTANT:
   Wrap your homepage template with a unique wrapper:
   <div class="home"> ... existing homepage markup ... </div>

   Then include this stylesheet on the homepage only.
*/

/* -------------------------
   Layout shell
   ------------------------- */
.home .home-container {
  max-width: var(--content-max-width, 1120px);
  margin: 0 auto;
  padding: 0 1rem;
}

.home .muted { color: var(--text-muted, #6b7280); }
.home .tiny { font-size: 0.85rem; }

/* =========================
   HERO
   ========================= */
.home .home-hero {
  padding: 2.5rem 0 1.6rem;
  background:
    radial-gradient(900px 420px at 10% 10%, rgba(244, 180, 0, 0.18), rgba(244, 180, 0, 0) 60%),
    radial-gradient(700px 380px at 85% 15%, rgba(31, 41, 51, 0.06), rgba(31, 41, 51, 0) 60%),
    linear-gradient(180deg, rgba(244, 180, 0, 0.10), rgba(244, 180, 0, 0.00) 62%);
  border-bottom: 1px solid var(--border-subtle, rgba(148,163,184,0.35));
}

.home .home-hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 1.25rem;
  align-items: stretch;
}

.home .hero-kicker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.home .hero-kicker .pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-soft, rgba(244, 180, 0, 0.16));
  color: var(--accent, #1f2933);
  font-weight: 800; /* normalized */
  letter-spacing: 0.02em;
}

.home .hero-kicker .dot { opacity: 0.5; }

.home .hero-title {
  margin: 0;
  font-size: 2.35rem;
  line-height: 1.12;
  color: var(--text-main, #111827);
  letter-spacing: -0.03em;
}

.home .hero-subtitle {
  margin: 0.9rem 0 1.05rem;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--text-muted, #6b7280);
  max-width: 62ch;
}

.home .hero-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0.95rem 0 1rem;
}

/* Buttons (scoped to homepage to avoid global collisions) */
.home .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.05rem;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800; /* normalized */
  border: 1px solid transparent;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease,
    border-color 140ms ease,
    opacity 140ms ease;
  will-change: transform;
}

.home .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.10);
}

.home .btn:active {
  transform: translateY(0px);
  opacity: 0.95;
}

.home .btn-primary {
  background: var(--accent, #1f2933);
  color: #fff;
  box-shadow: 0 10px 22px rgba(31, 41, 51, 0.18);
}

.home .btn-ghost {
  background: rgba(255,255,255,0.72);
  color: var(--text-main, #111827);
  border-color: rgba(148,163,184,0.38);
}

.home .btn-small {
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  font-weight: 800; /* normalized */
}

.home .hero-trust {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.home .trust-item {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  color: var(--text-main, #111827);
  font-size: 0.98rem;
}

.home .trust-icon {
  width: 1.35rem;
  text-align: center;
  opacity: 0.95;
}

.home .hero-follow {
  margin-top: 1.05rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.home .follow-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.home .follow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.34);
  background: rgba(255,255,255,0.72);
  text-decoration: none;
  color: var(--text-main, #111827);
  font-weight: 800; /* normalized */
  font-size: 0.92rem;
}

.home .follow-link img {
  width: 16px;
  height: 16px;
  display: block;
}

/* Hero Panel */
.home .home-hero-panel .panel-card {
  height: 100%;
  background: var(--card-bg, #fff);
  border: 1px solid rgba(148,163,184,0.28);
  border-radius: var(--radius-xl, 18px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.home .panel-top {
  display: flex;
  justify-content: flex-start;
}

.home .status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 0.62rem;
  border-radius: 999px;
  font-weight: 900; /* normalized */
  font-size: 0.88rem;
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(255,255,255,0.78);
}

.home .status-healthy { border-color: rgba(22,163,74,0.35); }
.home .status-degraded { border-color: rgba(249,115,22,0.40); }
.home .status-offline  { border-color: rgba(220,38,38,0.40); }
.home .status-unknown  { opacity: 0.95; }

.home .panel-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.home .metric-label {
  color: var(--text-muted, #6b7280);
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.home .metric-value {
  font-size: 1.05rem;
  font-weight: 900; /* normalized */
  color: var(--text-main, #111827);
}

.home .panel-divider {
  height: 1px;
  background: rgba(148,163,184,0.28);
}

.home .panel-mini .mini-title {
  font-weight: 900; /* normalized */
  margin-bottom: 0.2rem;
}

.home .panel-mini .mini-value {
  font-size: 1.25rem;
  font-weight: 900; /* normalized */
  margin-bottom: 0.2rem;
}

.home .panel-mini .mini-note {
  color: var(--text-muted, #6b7280);
  font-size: 0.92rem;
}

.home .panel-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: auto;
}

/* Optional “Live” dot */
.home .live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-left: 0.45rem;
  background: #16a34a;
  box-shadow: 0 0 0 4px rgba(22,163,74,0.12);
}

/* =========================
   MAIN GRID
   ========================= */
.home .home-main {
  padding: 1.35rem 0 2.25rem;
}

.home .home-grid {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: 1.25rem;
  align-items: start;
}

/* Cards (scoped; does not override global .card) */
.home .home-card {
  background: var(--card-bg, #fff);
  border: 1px solid rgba(148,163,184,0.28);
  border-radius: var(--radius-xl, 18px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  padding: 1.05rem 1.1rem;
  margin-bottom: 1.1rem;
}

.home .home-card-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}

.home .home-card-title {
  font-size: 1.15rem;
  font-weight: 900; /* normalized */
  color: var(--text-main, #111827);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.home .home-card-subtitle {
  color: var(--text-muted, #6b7280);
  margin-top: 0.25rem;
  font-size: 0.98rem;
}

.home .home-card-head-right {
  text-align: right;
  min-width: 180px;
}

.home .home-link {
  color: var(--text-main, #111827);
  font-weight: 800; /* normalized */
  text-decoration: none;
  border-bottom: 1px solid rgba(31,41,51,0.25);
  padding-bottom: 2px;
}

.home .home-link:hover {
  border-bottom-color: rgba(31,41,51,0.55);
}

.home .home-card-foot {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(148,163,184,0.28);
}

/* =========================
   CALL LISTS
   ========================= */
.home .call-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.home .call-row {
  border: 1px solid rgba(148,163,184,0.26);
  border-radius: 14px;
  padding-top: 1px;
  padding-left: 10px;
  padding-bottom: 1px;
  background: rgba(255,255,255,0.75);
  overflow: hidden;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.home .call-link {
  display: block;
  padding: 0.78rem 0.9rem;
  text-decoration: none;
  color: inherit;
}

.home .call-row:hover {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
  transform: translateY(-1px);
}

.home .call-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.home .call-type {
  font-weight: 900; /* normalized */
  color: var(--text-main, #111827);
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.home .call-badge {
  font-size: 0.76rem;
  font-weight: 900; /* normalized */
  padding: 0.22rem 0.52rem;
  border-radius: 999px;
  border: 1px solid rgba(244, 180, 0, 0.35);
  background: rgba(244, 180, 0, 0.10);
}

.home .call-loc {
  color: var(--text-muted, #6b7280);
  margin: 0.2rem 0 0.25rem;
  line-height: 1.35;
  font-size: 0.96rem;
}

.home .call-meta {
  color: var(--text-muted, #6b7280);
  font-size: 0.88rem;
}

.home .call-row-empty {
  padding: 0.78rem 0.9rem;
}

.home .call-list-compact .call-row {
  border-radius: 12px;
}

/* =========================
   SNAPSHOT
   ========================= */
.home .snapshot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.home .snapshot {
  border: 1px solid rgba(148,163,184,0.26);
  border-radius: 14px;
  padding: 0.85rem 0.9rem;
  background: rgba(255,255,255,0.75);
}

.home .snap-label {
  color: var(--text-muted, #6b7280);
  font-weight: 800; /* normalized */
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.home .snap-value {
  font-size: 1.7rem;
  font-weight: 900; /* normalized */
  letter-spacing: -0.03em;
  color: var(--text-main, #111827);
}

.home .snap-note {
  margin-top: 0.25rem;
  color: var(--text-muted, #6b7280);
  font-size: 0.9rem;
  line-height: 1.35;
}

.home .mini-feed {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148,163,184,0.28);
}

.home .mini-feed-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 0.65rem;
}

.home .mini-feed-title {
  font-weight: 900; /* normalized */
  color: var(--text-main, #111827);
}

/* =========================
   ARTICLES
   ========================= */
.home .article-list {
  display: grid;
  gap: 0.75rem;
}

.home .article-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(148,163,184,0.26);
  border-radius: 14px;
  background: rgba(255,255,255,0.75);
  overflow: hidden;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.home .article-thumb {
  height: 120px;
  width: 120px;
  background: rgba(148,163,184,0.12);
}

.home .article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home .article-body {
  padding: 0.9rem 1rem 0.65rem 0.2rem;
}

.home .article-meta {
  color: var(--text-muted, #6b7280);
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}

.home .article-title {
  font-weight: 900; /* normalized */
  line-height: 1.25;
  margin-bottom: 0.25rem;
  color: var(--text-main, #111827);
}

.home .article-summary {
  color: var(--text-muted, #6b7280);
  font-size: 0.92rem;
  line-height: 1.35;
}

.home .article-item:hover {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
  transform: translateY(-1px);
}

/* =========================
   GALLERY
   ========================= */
.home .gallery-feature {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(148,163,184,0.26);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.75);
}

.home .gallery-feature img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.home .gallery-caption {
  padding: 0.65rem 0.8rem;
  font-weight: 800; /* normalized */
  color: var(--text-main, #111827);
}

/* =========================
   SAFETY LIST
   ========================= */
.home .safety-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-main, #111827);
}

.home .safety-list li {
  margin: 0.55rem 0;
  line-height: 1.45;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 980px) {
  .home .home-hero-grid {
    grid-template-columns: 1fr;
  }
  .home .home-grid {
    grid-template-columns: 1fr;
  }
  .home .home-card-head-right {
    text-align: left;
    min-width: 0;
  }
  .home .snapshot-grid {
    grid-template-columns: 1fr;
  }
  .home .article-item {
    grid-template-columns: 80px 1fr;
  }
  .home .article-thumb {
    width: 80px;
    height: 80px;
  }
}

/* -----------------------------------------
   TEMP: HOMEPAGE CONTEXT CARD (until AdSense approval)
   ----------------------------------------- */

.editorial-body p {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 0.8rem 0;
}

.editorial-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.editorial-pill {
  height: 100%;
}

@media (max-width: 900px) {
  .editorial-pills {
    grid-template-columns: 1fr;
  }
}


/* Responsive: match your grid collapse behavior */
@media (max-width: 900px) {
  .editorial-grid {
    grid-template-columns: 1fr;
  }
}

.three-col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.three-col-card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: 1.25rem;

    min-height: 440px; /* adjust to taste */

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Tablet */
@media (max-width: 900px) {
  .three-col-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 560px) {
  .three-col-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-feature {
  display: block;
  min-height: 440px;
  margin-top: 0.75rem;
  border-radius: 12px;
  overflow: hidden;
}

.gallery-feature img {
  width: 100%;
  min-height: 440px;
  height: auto;
  display: block;
}

.gallery-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.twitter-card { overflow: hidden; }

.twitter-embed-wrap {
  margin-top: 0.75rem;
  border-radius: 12px;
  overflow: hidden;
}

/* Twitter injects an iframe; this helps constrain it */
.twitter-embed-wrap iframe {
  width: 100% !important;
  max-width: 100% !important;
}