/* =========================================================================
   EITS Fresh Look 2026
   A sitewide visual refresh layer. Loaded LAST on every public page, so it
   safely wins over legacy rules without deleting or renaming anything —
   nothing already deployed can break by including this file.
   Built entirely from the existing brand tokens in css/styles.css.
   ========================================================================= */

/* ---- Global rhythm ---- */
body { text-rendering: optimizeLegibility; }
.eits-card p, .article-body p { color: #33415a; }

/* ---- Hero: richer depth, subtle texture, calmer gradient ---- */
.eits-hero {
  background:
    radial-gradient(circle at 12% 8%, rgba(255,255,255,.10), transparent 34%),
    radial-gradient(circle at 88% 0%, rgba(249,115,22,.28), transparent 40%),
    linear-gradient(150deg, var(--primary-dark) 0%, var(--primary) 55%, #0e6e63 120%);
}
.eits-hero::before { display: none; }
.eits-hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  pointer-events: none;
}
.eits-hero h1 { text-shadow: 0 2px 24px rgba(0,0,0,.18); }
.eits-hero-meta span { backdrop-filter: blur(6px); }

/* ---- Cards: crisper edge, calmer shadow, gentle lift ---- */
.eits-card {
  border-radius: 22px;
  box-shadow: 0 1px 2px rgba(13,27,62,.04), 0 10px 30px -14px rgba(13,27,62,.14);
  transition: box-shadow .25s ease, border-color .25s ease;
}
.eits-card:hover { box-shadow: 0 4px 10px rgba(13,27,62,.05), 0 18px 40px -16px rgba(13,27,62,.18); }
.eits-card h2 { position: relative; padding-bottom: 4px; }
.eits-card > h2:first-child::after,
.eits-card .section-label + h2::after {
  content: ''; display: block; width: 46px; height: 4px; margin-top: 12px;
  border-radius: 999px; background: linear-gradient(90deg, var(--accent), #fbbf24);
}
.section-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 800; letter-spacing: .08em;
}
.section-label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---- Article / topic cards on hubs and homepage ---- */
.article-card, .eits-card-grid .eits-card {
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(13,27,62,.04), 0 8px 24px -14px rgba(13,27,62,.16);
}
.article-card:hover { box-shadow: 0 6px 16px -6px rgba(13,27,62,.10), 0 22px 44px -18px rgba(13,27,62,.22); }
.article-cat { letter-spacing: .04em; font-weight: 800; }

/* ---- Topic diagrams: give the SVG a real "designed" frame instead of floating loose ---- */
.eits-topic-diagram {
  margin: 0 0 8px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--primary-light), #fff);
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(13,27,62,.04), 0 14px 34px -18px rgba(13,27,62,.18);
}
.eits-topic-diagram img { display: block; width: 100%; height: auto; }

/* ---- Buttons: slightly more tactile ---- */
.btn, .cta-button, .eits-btn, button[type="submit"] {
  box-shadow: 0 1px 2px rgba(13,27,62,.06);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover, .cta-button:hover, .eits-btn:hover { transform: translateY(-1px); filter: brightness(1.03); }

/* ---- Tables: cleaner separation ---- */
.planet-fact-table, table { border-radius: 16px; overflow: hidden; }
.planet-fact-table th, .planet-fact-table td { border-color: var(--border); }

/* ---- Sidebar cards ---- */
.eits-side-card {
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(13,27,62,.04), 0 10px 26px -16px rgba(13,27,62,.16);
}

@media (max-width: 700px) {
  .eits-hero::after { background-size: 30px 30px; }
}
