/* KinderCanvas guides — article layer on top of styles.css tokens.
   Only guide pages load this; the landing page never does. */

.guide-page { background: var(--cream); }

/* nav: guides pages are simple — solid bar, no scroll choreography */
.guide-nav {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: var(--cream);
  border-bottom: 3px solid var(--ink);
  z-index: 10;
}
.guide-nav .nav-links { display: flex; align-items: center; gap: 18px; font-weight: 700; }
.guide-nav .nav-links a { text-decoration: none; }
.guide-nav .nav-cta {
  background: var(--coral);
  color: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 900;
  font-size: 13px;
}
.guide-nav .nav-cta:hover { color: var(--cream); filter: brightness(1.05); }
.guide-nav .hero-logo { display: none; }

.guide-main { max-width: 720px; margin: 0 auto; padding: 40px 20px 24px; }

/* article typography */
.guide-article h1 { font-size: clamp(30px, 5vw, 42px); font-weight: 900; line-height: 1.15; margin: 12px 0 16px; }
.guide-article h2 { font-size: clamp(22px, 3.5vw, 28px); font-weight: 800; margin: 36px 0 12px; }
.guide-article h3 { font-size: 19px; font-weight: 800; margin: 24px 0 8px; }
.guide-article p { margin: 0 0 14px; line-height: 1.65; font-size: 17px; }
.guide-article ul, .guide-article ol { margin: 0 0 16px; padding-left: 24px; line-height: 1.6; font-size: 17px; }
.guide-article li { margin-bottom: 6px; }
.guide-article img { max-width: 100%; height: auto; border: 3px solid var(--ink); border-radius: 12px; }
.guide-article blockquote {
  margin: 0 0 16px;
  padding: 10px 16px;
  border-left: 4px solid var(--teal);
  background: #eef5f6;
  border-radius: 0 8px 8px 0;
}
.guide-article code { background: #eef5f6; padding: 1px 5px; border-radius: 4px; font-size: 0.92em; }

/* tables — the citable-asset workhorse */
.guide-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: 15.5px;
  display: block;
  overflow-x: auto;
}
.guide-article th, .guide-article td { border: 2px solid var(--ink); padding: 8px 12px; text-align: left; vertical-align: top; }
.guide-article th { background: var(--blue-light); font-weight: 800; }
.guide-article tr:nth-child(even) td { background: #f8fbfb; }

/* byline + breadcrumb */
.guide-breadcrumb { font-weight: 700; margin-bottom: 8px; }
.guide-breadcrumb a { text-decoration: none; }
.guide-byline {
  font-size: 14px;
  color: var(--muted);
  border-bottom: 2px solid var(--blue-light);
  padding-bottom: 14px;
  margin-bottom: 20px;
  line-height: 1.6;
}
.guide-author { font-weight: 800; color: var(--ink); }
.guide-updated { font-weight: 700; }

/* CTA blocks — end-of-page section + inline mid-piece aside */
.guide-cta {
  max-width: 720px;
  margin: 24px auto 40px;
  padding: 28px 24px;
  background: var(--blue-pale);
  border: 3px solid var(--ink);
  border-radius: 20px;
  text-align: center;
}
.guide-cta h2, .guide-cta-heading { font-size: 24px; font-weight: 900; margin: 0 0 8px; }
.guide-cta p { margin: 0 0 16px; line-height: 1.5; }
.guide-cta .email-pill {
  display: flex;
  gap: 8px;
  max-width: 440px;
  margin: 0 auto 12px;
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 5px;
}
.guide-cta .email-pill input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 15px;
  outline: none;
}
.guide-cta .email-pill .btn-coral {
  background: var(--coral);
  color: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 8px 18px;
  font-family: inherit;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.guide-cta .hero-checks { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; font-size: 13px; font-weight: 700; }
.guide-cta-inline { margin: 28px 0; }

/* guides index */
.guide-index-intro { font-size: 18px; color: var(--ink); margin-bottom: 24px; }
.guide-index-empty { font-weight: 700; color: var(--muted); }
.guide-list { list-style: none; padding: 0; margin: 0; }
.guide-list li { border: 3px solid var(--ink); border-radius: 16px; padding: 18px 20px; margin-bottom: 16px; background: #fff; }
.guide-list li a { text-decoration: none; font-size: 20px; }
.guide-list li p { margin: 6px 0; }

.guide-footer { text-align: center; padding: 20px 0 32px; font-size: 14px; color: var(--muted); }

@media (max-width: 640px) {
  .guide-nav { flex-wrap: wrap; }
  .guide-nav .nav-links { gap: 12px; font-size: 14px; }
  .guide-cta .email-pill { flex-direction: column; border-radius: 20px; }
  .guide-cta .email-pill .btn-coral { width: 100%; }
}
