/* Topic Guide pages (/guides/, /guides/<slug>/) - one topic across the
   whole region (e.g. "Churches in Northern Virginia"), distinct from the
   neighborhood guide's one-specific-place pattern (neighborhood-guide.css).
   Deliberately smaller than that file: a Topic Guide only ever has an
   intro, a business grid and an FAQ, not ten different data-card types. */

/* Matches .blog-hero's blue gradient exactly (see blog.css) - the site
   owner wants one consistent "blue header" look across every content
   type's hero band, not each type keeping its own accent color. */
.topic-guide-hero {
  background: linear-gradient(135deg, var(--ink) 0%, var(--blue) 160%);
  color: #fff;
  padding: 56px 0 44px;
}
.topic-guide-hero .eyebrow {
  color: #9ecbff;
}
.topic-guide-hero h1 {
  color: #fff;
}
/* Only the guide index page's hero (not an individual guide's) has a
   .lead paragraph - needs its own light color against the dark
   background, same as .blog-hero .lead. */
.topic-guide-hero .lead {
  color: #dce6f3;
}
.topic-guide-glance {
  margin: 14px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: #cfd9e8;
}
.topic-guide-glance--empty {
  color: #9fb0c7;
  font-weight: 500;
}

.topic-guide-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}
.topic-guide-intro {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  max-width: 760px;
}
.topic-guide-intro p {
  margin: 0 0 14px;
}
.topic-guide-intro p:last-child {
  margin-bottom: 0;
}

.topic-guide-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
  margin: 0 0 20px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  /* Same reasoning as .topic-guide-sidebar above: stays reachable while
     scrolling a long business grid instead of forcing a scroll back to
     the top every time someone wants to change Type/City - top:100px
     clears the site's own sticky header (top:0, ~84px, z-index:50) the
     same way. Below the header's z-index so it never floats above it. */
  position: sticky;
  top: 100px;
  z-index: 10;
}
.topic-guide-filter {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 180px;
}
.topic-guide-filter span {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.topic-guide-filter select {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink);
  background: var(--white);
}
.topic-guide-filters__clear {
  margin-left: auto;
  border: none;
  background: none;
  padding: 9px 0;
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.topic-guide-filters__clear:hover {
  text-decoration: underline;
}

@media (max-width: 560px) {
  .topic-guide-filters { flex-direction: column; align-items: stretch; }
  .topic-guide-filter { min-width: 0; }
  .topic-guide-filters__clear { margin-left: 0; }
}

.topic-guide-faq {
  margin-top: 32px;
}
.topic-guide-faq h2 {
  margin: 0 0 14px;
  font-size: 20px;
  color: var(--ink);
}
.topic-guide-faq__item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
.topic-guide-faq__item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}
.topic-guide-faq__item p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.topic-guide-sidebar {
  position: sticky;
  /* The site header is itself position:sticky, top:0, ~84px tall (navrow)
     with z-index:50 - matching neighborhood-guide.css's
     .neighborhood-guide-sidebar (top:100px), not the header's own height,
     so this sidebar's sticky offset clears it instead of scrolling
     underneath it and getting its top edge visually clipped. */
  top: 100px;
}
.topic-guide-promo-slot {
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 22px;
  text-align: left;
}
/* A real sold banner (loadAdSlot in app-exports.js) replaces the "Sponsor
   this guide" placeholder text with an .promo-slot__link - drop the dashed
   placeholder chrome once that's what's actually showing. */
.topic-guide-promo-slot:has(.promo-slot__link) {
  background: none;
  border: none;
  padding: 0;
}
.topic-guide-promo-slot__eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--blue);
  margin-bottom: 8px;
}
.topic-guide-promo-slot p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

@media (max-width: 900px) {
  .topic-guide-grid { grid-template-columns: 1fr; }
  .topic-guide-sidebar { position: static; }
}
