/* HaMiEN Accessible Pink & Midnight Blue Theme */
:root {
  --bg-main: #0f121b;       /* Midnight navy-tinted charcoal (Accessible Base) */
  --bg-card: #181c2b;       /* Slightly lighter blue-gray cards */
  --border-color: #272d42;  /* Clean structural borders */
  --text-primary: #f8fafc;  /* High-contrast bright silver-white */
  --text-muted: #cbd5e1;    /* Highly legible secondary slate-gray */
  --accent: #f472b6;        /* Subtle brand accent pink */
  --accent-link: #fb7185;   /* Brighter, highly visible WCAG compliant link pink (6.3:1) */
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

/* Clear, non-destructive header link wrapper */
.header-brand-link {
  text-decoration: none !important;
  color: inherit !important;
  cursor: pointer;
}

.heading-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-logo {
  height: 55px;
  width: auto;
  display: block;
}

.brand-text-wrapper {
  display: flex;
  flex-direction: column;
}

.network-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.network-title span {
  color: var(--accent);
}

.network-acronym {
  font-size: 0.9rem;
  font-family: monospace;
  color: var(--text-muted);
  letter-spacing: 3px;
  margin-top: 2px;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 24px;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s, border-bottom 0.2s;
  padding-bottom: 4px;
}

nav a:hover, nav a.active { 
  color: var(--text-primary);
  border-bottom: 2px solid var(--accent);
}

main { 
  max-width: 1100px; 
  margin: 0 auto; 
  padding: 50px 20px 100px 20px; 
}

.about-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
}

.about-text { flex: 1; }

.large-feature-logo {
  width: 220px;
  height: auto;
  background: var(--bg-card);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.card-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 24px; }
.custom-card {
  background: var(--bg-card);
  padding: 28px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.filter-container { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.filter-btn {
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--accent);
  color: #0f121b;
  border-color: var(--accent);
}

h1, h2, h3 { font-weight: 700; color: var(--text-primary); }
p { color: var(--text-muted); font-size: 1.05rem; }
a { color: var(--accent-link); text-decoration: none; font-weight: 500; }
a:hover { text-decoration: underline; }
.hidden { display: none !important; }

@media(max-width: 768px) {
  header { flex-direction: column; align-items: flex-start; gap: 20px; }
  nav { margin-left: -24px; }
  .about-hero { flex-direction: column-reverse; }
  .large-feature-logo { width: 140px; margin-bottom: 10px; }
}