/* Brands library hub styles — externalized from templates/brands-library.html (RZ-109).
   The template shares base styles with brand-v2 (body, sections, nav chrome) and adds
   a grid of brand cards specific to the /brands/ hub. */

html, body { margin: 0; padding: 0; }
body.site-page { background: #fafafa !important; color: #0f0f0f !important; font-family: Inter, system-ui, sans-serif !important; }

main.site-brand-v2 {
  display: block !important;
  max-width: 1120px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 13rem 1.5rem 2rem !important;
  box-sizing: border-box !important;
}

main.site-brand-v2 .site-crumbs {
  font-family: "Roboto Mono", ui-monospace, monospace !important;
  font-size: 0.75rem !important; text-transform: uppercase !important; letter-spacing: 0.08em !important;
  color: #6e6e73 !important; margin: 0 0 1.25rem !important;
}
main.site-brand-v2 .site-crumbs a { color: #6e6e73 !important; text-decoration: none !important; }
main.site-brand-v2 .site-crumbs-sep { color: #e5e5e6 !important; margin: 0 0.35rem !important; }

.site-agent-ribbon {
  display: flex; align-items: center; gap: 0.6rem;
  background: #efecff; border: 1px solid #d9d3ff; color: #2b218f;
  padding: 0.6rem 1rem; border-radius: 8px;
  font-family: "Roboto Mono", ui-monospace, monospace; font-size: 0.78rem; letter-spacing: 0.02em;
  margin-bottom: 2rem;
}
.site-agent-ribbon strong { font-weight: 600; }
.site-agent-ribbon a { color: #2b218f; }

.site-brand-header { display: flex; gap: 1.25rem; align-items: flex-start; margin-bottom: 2.5rem; }
.site-brand-header .site-brand-logo {
  width: 84px; height: 84px; border-radius: 12px; background: #fff;
  border: 1px solid #e5e5e6; flex: 0 0 84px; object-fit: cover;
}
.site-brand-header h1 {
  font-family: Epilogue, Inter, sans-serif !important;
  font-size: 2.25rem !important; line-height: 1.1 !important; font-weight: 600 !important;
  margin: 0 0 0.4rem !important; color: #0f0f0f !important;
}
.site-brand-header .site-brand-meta {
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: #6e6e73;
  margin: 0 0 0.6rem;
}
.site-brand-header .site-brand-meta a { color: #6e6e73; text-decoration: none; border-bottom: 1px dashed #c8c8cc; }
.site-brand-header .site-brand-meta a:hover { color: #5047eb; border-bottom-color: #5047eb; }
.site-brand-header .site-brand-lede {
  font-size: 1.0625rem; color: #3e3e41; line-height: 1.6; margin: 0; max-width: 70ch;
}

/* Section headings */
.site-section { background: #fff; border: 1px solid #e5e5e6; border-radius: 12px; padding: 1.75rem; margin: 0 0 2rem; }
.site-section h2 {
  font-family: Epilogue, Inter, sans-serif;
  font-size: 1.4rem; font-weight: 600; letter-spacing: 0; margin: 0 0 1.25rem; color: #0f0f0f;
}
.site-section-note { font-size: 0.9rem; color: #6e6e73; line-height: 1.5; margin: 0 0 1.5rem; }
.site-section-bare { background: transparent; border: none; padding: 0; margin: 0 0 1.5rem; }

/* Brands hub grid — logo-first cards linking to each brand page. */
.brand-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}
.brand-library-card {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid #ececef;
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.brand-library-card:hover {
  border-color: #5047eb;
  box-shadow: 0 2px 8px rgba(80, 71, 235, 0.08);
}
.brand-library-logo {
  width: 48px; height: 48px; border-radius: 8px;
  object-fit: contain; background: #fff; padding: 4px;
  border: 1px solid #ececef;
  margin-bottom: 0.75rem;
}
.brand-library-logo-fallback {
  display: flex; align-items: center; justify-content: center;
  font-family: Epilogue, Inter, sans-serif; font-weight: 700;
  color: #5047eb; font-size: 1.25rem;
  background: #f5f4ff;
}
.brand-library-name {
  font-family: Inter, sans-serif; font-size: 0.95rem; font-weight: 600;
  color: #0f0f0f; margin-bottom: 0.2rem; line-height: 1.3;
}
.brand-library-industry {
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: #6e6e73;
}

@media (max-width: 720px) {
  main.site-brand-v2 { padding: 10rem 1rem 2rem !important; }
  .site-brand-header h1 { font-size: 1.8rem !important; }
}
