/* Hides the static guide footer once the inline boot script marks the
   document as JS. This is a file, not a <style> block: Vite rewrites inline
   styles in index.html, so a CSP hash of the source would not match the
   document the browser receives. */
html.js #crawl-guides {
  display: none !important;
}

/* Homepage no-JS block. Scoped to .home-seo so /about, /app, and the guide
   documents keep the styles their own style block already sets. The boot
   script adds `js` before this node is parsed, so a JS visitor never sees it.
   An inline style here would be rewritten by Vite and miss the CSP hash. */
html.js #seo-content.home-seo {
  display: none !important;
}

html:not(.js) body:has(#seo-content.home-seo) {
  margin: 0;
  background: #faf8f4;
}

/* index.css gives #root height: 100% so the app fills the viewport. That
   stylesheet is a plain link in the built document, so it still applies
   with JS off. The empty #root then takes a viewport and opens a gap
   between #seo-content and #crawl-guides on /, /about, /app, and the
   city-month pages. Collapse it on every page while JS has not booted and
   #root has no children. The boot script adds `js` before paint, and a
   mounted app is not :empty, so the running app keeps height: 100%. */
html:not(.js) #root:empty {
  height: auto;
}

#seo-content.home-seo {
  margin: 0;
  background: #faf8f4;
  color: #1a1a18;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#seo-content.home-seo main {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* Same ink as #crawl-guides a. Those footer links keep the browser
   underline; these (/guides and /app) need that same affordance. */
#seo-content.home-seo a {
  color: #1a1a18;
  text-decoration: underline;
}

#seo-content.home-seo header {
  margin-bottom: 32px;
}

#seo-content.home-seo h1 {
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin: 0 0 12px;
}

#seo-content.home-seo .sub {
  font-size: 16px;
  color: #55524a;
  line-height: 1.5;
  margin: 0;
}

#seo-content.home-seo h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: -0.2px;
}

#seo-content.home-seo section {
  margin-top: 28px;
}

#seo-content.home-seo p {
  font-size: 16px;
  line-height: 1.55;
  color: #55524a;
}

#seo-content.home-seo footer {
  margin-top: 48px;
  font-size: 13px;
}

#seo-content.home-seo footer a + a {
  margin-left: 16px;
}

#crawl-guides {
  margin: 0;
  padding: 28px 24px 36px;
  background: #faf8f4;
  color: #55524a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.7;
}

#crawl-guides nav {
  max-width: 960px;
  margin: 0 auto;
}

#crawl-guides nav + nav {
  margin-top: 8px;
}

#crawl-guides a {
  color: #1a1a18;
  margin-right: 14px;
  white-space: nowrap;
}
