/* Extracted from ai-helpers.html inline styles */
:root {
  --bg: #ffffff;
  --bg-soft: #fafbff;
  --panel: #ffffff;
  --accent: #3b82f6;
  --accent-2: #6366f1;
  --text: #0b1020;
  --muted: #475569;
  --border: #e8edf6;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
}

/* Links on this page follow site-wide style: inherit color; underline on hover */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Topbar styles are provided by common.css (.book-topbar and children). */

.page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 16px 56px;
}

.page h1 {
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 10px 0 6px;
}

.intro {
  color: var(--muted);
  margin: 0 0 18px;
}

.tech-details {
  color: var(--muted);
  margin: 8px 0 24px;
  line-height: 1.6;
  font-size: 15px;
  background: transparent;
  padding: 0;
  border-radius: 0;
  border: none;
  max-width: 100%;
}

/* Add space between the cards grid and the information block */
.ai-helpers-grid + .tech-details {
  margin-top: 16px;
}

.ai-helpers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 100%;
}

/* Ensure section headers span full grid width so cards start on a new line */
.ai-helpers-grid > h2 {
  grid-column: 1 / -1;
}

.card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 14px 16px;
}

.name {
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 4px;
}

.name-link {
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 4px;
  color: inherit;
  text-decoration: none;
}

.name-link:hover {
  text-decoration: underline;
}

.affil {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}

.ai-helpers {
  margin-top: 18px;
}

@media (max-width: 760px) {
  .ai-helpers-grid {
    grid-template-columns: 1fr;
  }
}
