/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  background: #f5f7fa;
}

a { color: #2a6496; text-decoration: none; }
a:hover { text-decoration: underline; }

#main {
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  min-height: 100vh;
}

/* ── Header / Masthead ── */
header {
  background: linear-gradient(135deg, #d6eef8 0%, #b8ddf5 100%);
  border-bottom: 2px solid #7bbfdf;
  padding: 0 2rem;
}

#masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

#masthead-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

#chembench-logo {
  display: block;
}

#site-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a4f72;
  letter-spacing: 0.02em;
}

#mml-logo {
  display: block;
  opacity: 0.9;
  transition: opacity 0.2s;
}
#mml-link:hover #mml-logo { opacity: 1; }

/* ── Deprecation Banner ── */
.banner-deprecated {
  background: #fff8e1;
  border-left: 5px solid #f0a500;
  padding: 1rem 2rem;
  font-size: 0.92rem;
  color: #5a4000;
}

.banner-deprecated strong { color: #c67a00; }

.banner-deprecated ul {
  margin: 0.4rem 0 0 1.2rem;
}

.banner-deprecated a { color: #7a5200; }
.banner-deprecated a:hover { color: #c67a00; }

/* ── Main Content ── */
main {
  padding: 1.5rem 2rem 2rem;
}

.lab-link {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.8rem;
}

.intro {
  font-size: 1rem;
  color: #444;
  margin-bottom: 2rem;
  max-width: 780px;
}

/* ── Tool Sections ── */
.tool-section {
  margin-bottom: 2.5rem;
}

.section-heading {
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1a4f72;
  border-bottom: 2px solid #b8ddf5;
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
}

/* ── Tool Grid ── */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.tool-card {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  border: 1px solid #d4e8f5;
  border-radius: 6px;
  background: #f9fcff;
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.18s, border-color 0.18s, background 0.18s;
}

.tool-card:hover {
  border-color: #7bbfdf;
  background: #eef6fc;
  box-shadow: 0 2px 8px rgba(74, 144, 217, 0.15);
  text-decoration: none;
}

.tool-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 4px;
}

.tool-info { flex: 1; min-width: 0; }

.tool-info h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a4f72;
  margin-bottom: 0.1rem;
}

.tool-subtitle {
  font-size: 0.8rem;
  color: #4a90d9;
  font-weight: 400;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.tool-desc {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.45;
}

/* ── Footer ── */
footer {
  padding: 1rem 2rem 1.5rem;
  background: #f5f7fa;
  border-top: 1px solid #dde6ef;
}

footer hr { display: none; }

footer p {
  font-size: 0.88rem;
  color: #555;
  margin-bottom: 0.3rem;
}

.footer-credit {
  font-size: 0.8rem;
  color: #888;
}
