/* Life Routes - Routes Expansion (stable)
   Styles for routes-expansion.html (classes prefixed with rex-) */

:root{
  --rex-ink:#0f172a;
  --rex-muted:#334155;
  --rex-muted2:#64748b;
  --rex-border:rgba(2,6,23,.14);
  --rex-card:rgba(255,255,255,.90);
  --rex-card2:rgba(255,255,255,.72);
  --rex-shadow:0 18px 40px rgba(2,6,23,.12);
  --rex-shadow2:0 10px 24px rgba(2,6,23,.10);
  --rex-radius:20px;
  --rex-radius2:16px;
  --rex-max:1200px;
  --rex-accent:#2563eb;
}

html,body{ height:100%; }
body{
  margin:0;
  color:var(--rex-ink);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  line-height:1.35;
}

a{ color:var(--rex-accent); }
a:hover{ text-decoration:none; }

.rex-wrap{
  max-width:var(--rex-max);
  margin:0 auto;
  padding:28px 18px 60px;
}

.rex-hero{
  margin:0 auto 18px;
  padding:18px 16px;
}

.rex-hero h1{
  margin:0 0 10px;
  font-size:40px;
  letter-spacing:-.02em;
}

.rex-hero p{
  margin:0 0 12px;
  color:var(--rex-muted);
  font-weight:520;
}

.rex-actions{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

.rex-btn{
  display:inline-flex;
  gap:10px;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid var(--rex-border);
  background:rgba(255,255,255,.78);
  color:var(--rex-ink);
  font-weight:700;
  text-decoration:none;
  box-shadow:var(--rex-shadow2);
}
.rex-btn:hover{
  background:rgba(255,255,255,.92);
}

.rex-section{
  margin-top:14px;
}

.rex-section h2{
  margin:12px 0 10px;
  font-size:18px;
  color:var(--rex-muted);
  letter-spacing:.01em;
}

.rex-warn{
  display:none;
  margin-top:12px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(239,68,68,.25);
  background:rgba(254,226,226,.75);
  color:#7f1d1d;
  font-weight:700;
}
.rex-warn.show{ display:block; }

.rex-chip{
  border:1px solid var(--rex-border);
  background:rgba(255,255,255,.72);
  color:var(--rex-ink);
  padding:8px 10px;
  border-radius:999px;
  font-weight:750;
  cursor:pointer;
}
.rex-chip:hover{ background:rgba(255,255,255,.92); }
.rex-chip.active{
  border-color:rgba(37,99,235,.35);
  box-shadow:0 0 0 4px rgba(37,99,235,.12);
}

.rex-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:16px;
  margin-top:10px;
}

@media (max-width: 920px){
  .rex-hero h1{ font-size:32px; }
  .rex-grid{ grid-template-columns:1fr; }
}

.rex-card{
  border:1px solid var(--rex-border);
  border-radius:var(--rex-radius);
  background:var(--rex-card);
  box-shadow:var(--rex-shadow);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-height:520px;
}

.rex-cover{
  width:100%;
  height:200px;
  object-fit:cover;
  background:linear-gradient(135deg, rgba(2,6,23,.06), rgba(2,6,23,.02));
  border-bottom:1px solid rgba(2,6,23,.10);
}

.rex-body{
  padding:14px 14px 16px;
  display:flex;
  flex-direction:column;
  gap:10px;
  flex:1;
}

.rex-title{
  margin:0;
  font-size:20px;
  letter-spacing:-.01em;
}

.rex-tags{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.rex-tag{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(2,6,23,.10);
  background:rgba(255,255,255,.70);
  color:var(--rex-muted);
  font-weight:750;
  font-size:13px;
}

.rex-divider{
  height:1px;
  width:100%;
  background:rgba(2,6,23,.10);
  margin:4px 0 0;
}

.rex-block h4{
  margin:0 0 6px;
  font-size:14px;
  color:var(--rex-muted);
  display:flex;
  align-items:center;
  gap:10px;
  letter-spacing:.02em;
}
.rex-dot{
  width:10px;
  height:10px;
  border-radius:999px;
  background:rgba(37,99,235,.75);
  box-shadow:0 0 0 4px rgba(37,99,235,.12);
  display:inline-block;
}

.rex-block ul{
  margin:0;
  padding-left:18px;
  color:var(--rex-muted);
  font-weight:600;
}

.rex-block li{ margin:6px 0; }
