/* Canadian Electrical Library — en-CA hub & book pages */
.ce-hub, .ce-book-wrap { font-family: "Segoe UI", system-ui, -apple-system, sans-serif; }
.ce-hub-hero {
  background: linear-gradient(135deg, #0b1f3a 0%, #123d6b 45%, #0d9488 100%);
  color: #f8fafc;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 20px 50px rgba(11, 31, 58, 0.25);
}
.ce-hub-hero h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); line-height: 1.15; margin: 0 0 1rem; }
.ce-hub-hero p { font-size: 1.05rem; opacity: 0.92; max-width: 52rem; line-height: 1.65; }
.ce-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.ce-badge {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}
.ce-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.ce-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.25rem;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.ce-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  border-color: #0d9488;
}
.ce-card-tag { font-size: 0.72rem; font-weight: 700; color: #0d9488; text-transform: uppercase; letter-spacing: 0.04em; }
.ce-card h3 { font-size: 1rem; line-height: 1.35; margin: 0; color: #0f172a; }
.ce-card h3 a { color: inherit; text-decoration: none; }
.ce-card h3 a:hover { color: #1d4ed8; }
.ce-card-meta { font-size: 0.78rem; color: #64748b; }
.ce-card-actions { margin-top: auto; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.ce-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}
.ce-btn-primary { background: #1d4ed8; color: #fff; }
.ce-btn-secondary { background: #ecfdf5; color: #0f766e; border: 1px solid #99f6e4; }
.ce-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0; }
.ce-filter {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
  color: #334155;
}
.ce-filter.is-active, .ce-filter:hover { background: #1e3a8a; color: #fff; border-color: #1e3a8a; }
.ce-book-body { max-width: 720px; line-height: 1.7; color: #1e293b; }
.ce-book-body .ce-lead { font-size: 1.1rem; }
.ce-specs dl { display: grid; grid-template-columns: 120px 1fr; gap: 0.35rem 1rem; font-size: 0.92rem; }
.ce-specs dt { font-weight: 700; color: #475569; }
.ce-topics { padding-left: 1.25rem; }
.ce-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.ce-strip-title { font-size: 1.15rem; font-weight: 800; color: #0f172a; margin: 2rem 0 1rem; }
.ce-mini { padding: 1rem; border-radius: 12px; background: #f1f5f9; border: 1px solid #e2e8f0; }
.ce-mini a { font-weight: 600; color: #1d4ed8; text-decoration: none; font-size: 0.9rem; }
.ce-mini span { display: block; font-size: 0.75rem; color: #64748b; margin-top: 0.25rem; }
