/* TeachAgent v1 — plain, crawlable, chatbot-friendly */
:root {
  --ink: #1a1f2e;
  --muted: #4a5568;
  --bg: #faf9f7;
  --card: #ffffff;
  --accent: #0d6e6e;
  --accent-hover: #0a5555;
  --border: #e2e8f0;
  --badge-verified: #065f46;
  --badge-likely: #92400e;
  --badge-unverified: #6b7280;
  --example: #fef3c7;
  --max: 720px;
  --wide: 960px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 18px; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: var(--max); }

/* Header */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}
.logo {
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--ink);
}
.logo span { color: var(--accent); }
.nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.1rem; }
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }

/* Main */
main { padding: 2rem 0 3rem; }
h1 {
  font-size: 1.85rem;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}
h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.6rem;
  line-height: 1.3;
}
h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.4rem;
}
p { margin: 0 0 1rem; }
.lead { font-size: 1.1rem; color: var(--muted); }
.meta { font-size: 0.9rem; color: var(--muted); }

/* Cards / lists */
.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin: 1.5rem 0;
}
@media (min-width: 640px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.1rem 1.25rem;
}
.card h3 { margin-top: 0; }
.card a { text-decoration: none; }
.card a:hover { text-decoration: underline; }

.recipe-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.recipe-list li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}
.recipe-list li h2 { margin: 0 0 0.35rem; font-size: 1.15rem; }
.recipe-list li h2 a { text-decoration: none; color: var(--ink); }
.recipe-list li h2 a:hover { color: var(--accent); }

/* Badges */
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  color: #fff;
}
.badge-verified { background: var(--badge-verified); }
.badge-likely { background: var(--badge-likely); }
.badge-unverified { background: var(--badge-unverified); }

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.5rem 0; }
.tag {
  font-size: 0.8rem;
  background: #edf2f7;
  color: var(--muted);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}

/* Prompt example box */
.example-prompt {
  background: var(--example);
  border: 1px solid #f59e0b;
  border-radius: 8px;
  padding: 1rem 1.15rem;
  margin: 1rem 0;
}
.example-prompt .label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #92400e;
  margin: 0 0 0.5rem;
}
.example-prompt pre {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Steps */
.steps { padding-left: 1.25rem; }
.steps li { margin-bottom: 0.5rem; }

/* FAQ */
details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}
details summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 0.5rem; }

/* CTA / forms */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  padding: 0.6rem 1.15rem;
  border-radius: 6px;
  border: none;
  font-size: 0.95rem;
  cursor: pointer;
}
.btn:hover { background: var(--accent-hover); }
.btn-secondary {
  background: transparent;
  color: var(--accent) !important;
  border: 2px solid var(--accent);
}
.btn-secondary:hover { background: #e6f4f4; }

.stub-box {
  background: var(--card);
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.stub-box p:last-child { margin-bottom: 0; }

form label {
  display: block;
  font-weight: 600;
  margin: 1rem 0 0.35rem;
}
form input, form textarea, form select {
  width: 100%;
  max-width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  background: var(--card);
}
form textarea { min-height: 140px; resize: vertical; }
form .hint { font-size: 0.85rem; color: var(--muted); margin: 0.25rem 0 0; }

/* Glossary once */
.glossary {
  background: #f0f4f8;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.glossary dt { font-weight: 700; margin-top: 0.5rem; }
.glossary dd { margin: 0.15rem 0 0.5rem; color: var(--muted); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
  font-size: 0.9rem;
  color: var(--muted);
  background: var(--card);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}
.site-footer a { color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; }

.filter-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
