/* ==== AI by Example — gobyexample.com-inspired styles ==== */

/* ---- Reset Material chrome ---- */
.md-header {
  background-color: #fff;
  color: #333;
  box-shadow: 0 1px 0 #e0e0e0;
}
.md-header__title {
  font-weight: 700;
  color: #333;
}

/* Hide Material sidebar on example pages — we use top nav only */
@media screen and (min-width: 76.25em) {
  .md-sidebar--primary { display: none; }
}

/* ---- Two-column layout ---- */
/* 
 * Convention: on example pages, prose <p> and code <pre> blocks alternate.
 * We use CSS grid on .two-col divs to place them side by side.
 */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2rem;
  align-items: start;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 1.5rem;
}

.two-col .col-left {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #333;
  padding-top: 0.3rem;
}

.two-col .col-right {
  background: #f7f7f7;
  border-radius: 6px;
  overflow-x: auto;
}

.two-col .col-right pre {
  margin: 0;
  padding: 1rem;
  background: #f7f7f7;
  font-size: 0.85rem;
  line-height: 1.6;
}

.two-col .col-right code {
  background: transparent;
}

/* ---- Responsive: stack on mobile ---- */
@media screen and (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

/* ---- Homepage ---- */
.example-list {
  list-style: none;
  padding: 0;
  max-width: 600px;
}

.example-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.example-list li a {
  color: #1a73e8;
  text-decoration: none;
  font-size: 1.05rem;
}

.example-list li a:hover {
  text-decoration: underline;
}

.example-list .example-num {
  display: inline-block;
  width: 2rem;
  color: #999;
  font-size: 0.9rem;
}

/* ---- Page title ---- */
.example-page h1 {
  font-size: 1.6rem;
  border-bottom: 2px solid #333;
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
}

/* ---- Labels for prompt/response blocks ---- */
.block-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
  margin-bottom: 0.25rem;
}

.block-label.prompt { color: #1a73e8; }
.block-label.response { color: #0d9488; }

/* ---- Tagline ---- */
.tagline {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
}

/* ---- Clean up content area ---- */
.md-content__inner {
  max-width: 960px;
}
