/* Styles for the generated guide pages. Builds on assets/site.css (a copy of index.html's styles). */

.guide { padding-bottom: 40px; }
.guide .page-head { padding-bottom: 36px; }
.guide .page-head h1 { max-width: 980px; }
.crumb {
  display: block; width: fit-content; margin-bottom: 26px; font-size: 14px; font-weight: 500;
  color: var(--terra); border-bottom: 1.5px solid transparent; transition: border-color 0.15s;
}
.crumb:hover { border-bottom-color: var(--terra); }
.head-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 22px; }
.head-chips .pill-soft { padding: 7px 14px; font-size: 12.5px; }

/* jump links (A-Z bar, section links) */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.jump a {
  min-width: 38px; text-align: center; padding: 8px 14px; border-radius: 100px;
  background: var(--cream-soft); color: var(--ink-soft); font-size: 13px; font-weight: 600;
  transition: background 0.15s, color 0.15s;
}
.jump a:hover { background: var(--terra); color: var(--cream); }

/* article text */
.prose-wrap { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.prose { max-width: 820px; margin: 0; padding: 0 0 56px; }
.prose.wide { max-width: 1240px; margin: 0 auto; padding: 0 40px 56px; }
.prose h2 {
  font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: clamp(30px, 3.6vw, 40px);
  line-height: 1.1; letter-spacing: -0.01em; margin: 56px 0 18px; scroll-margin-top: 90px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; font-weight: 600; line-height: 1.35; margin: 34px 0 10px; scroll-margin-top: 90px; }
.prose h4 { font-size: 17px; font-weight: 600; line-height: 1.4; margin: 28px 0 8px; }
.prose p { font-size: 17px; line-height: 1.75; color: var(--ink-soft); margin: 0 0 16px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--terra-deep); border-bottom: 1.5px solid rgba(194,111,61,0.45); }
.prose a:hover { border-bottom-color: var(--terra); }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 1.3em; }
.prose li { font-size: 17px; line-height: 1.7; color: var(--ink-soft); margin-bottom: 8px; padding-left: 4px; }
.prose li::marker { color: var(--terra); }
.prose em { font-style: italic; }
.prose > p:last-child em, .fineprint { font-size: 14px; color: var(--muted); }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 40px 0; }

.table-wrap { overflow-x: auto; margin: 22px 0 26px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.55; }
.prose th { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--terra); font-weight: 600; background: var(--cream-soft); }
.prose tr:last-child td { border-bottom: none; }
.prose td { color: var(--ink-soft); }
.prose td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }

/* section split on the first-time buyer page */
.part { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line); }
.part-title { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.05; margin: 0 0 18px; }
.part h3 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 30px; margin: 44px 0 6px; padding-top: 0; }

/* glossary */
.glossary h2 {
  display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px;
  background: var(--terra); color: var(--cream); font-size: 30px; margin: 52px 0 20px;
}
.glossary p { padding: 16px 0; margin: 0; border-bottom: 1px solid var(--line); font-size: 16.5px; }
.glossary p:last-child { border-bottom: none; }
.glossary p strong { color: var(--terra-deep); }

/* neighborhoods hub */
.hood-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-bottom: 8px; }
.hood-search {
  flex: 1 1 320px; max-width: 460px; padding: 15px 24px; border: 1.5px solid var(--beige-deep); border-radius: 100px;
  background: #fff; font-family: inherit; font-size: 15px; color: var(--ink); outline: none; transition: border-color 0.15s;
}
.hood-search:focus { border-color: var(--terra); }
.hood-count { font-size: 14px; color: var(--muted); }
.prose .hood-region h2 { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-family: 'Inter', sans-serif; font-weight: 600; color: var(--terra); margin: 44px 0 16px; }
.hood-region[hidden], .hood-card[hidden] { display: none; }
.hood-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.prose a.hood-card {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 20px 46px 20px 22px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); border-bottom-color: var(--line);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.prose a.hood-card:hover { transform: translateY(-2px); border-color: var(--terra); box-shadow: 0 8px 22px rgba(44,42,38,0.08); }
.hood-card-name { font-family: 'Cormorant Garamond', serif; font-size: 25px; font-weight: 500; line-height: 1.1; }
.hood-card-sub { font-size: 13px; color: var(--muted); }
.hood-card-go { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--terra); font-size: 18px; }
.hood-empty { font-size: 16px; color: var(--ink-soft); margin-top: 30px; }

/* related links */
.related { max-width: 1240px; margin: 0 auto; padding: 36px 40px 64px; border-top: 1px solid var(--line); }
.related-lbl { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--terra); margin-bottom: 16px; }
.related-links { display: flex; flex-wrap: wrap; gap: 10px; }
a.pill-link { transition: background 0.15s, color 0.15s; }
a.pill-link:hover { background: var(--terra); color: var(--cream); }

@media (max-width: 860px) {
  .prose-wrap { padding: 0 20px; }
  .prose { padding: 0 0 44px; }
  .prose.wide { padding: 0 20px 44px; }
  .related { padding: 30px 20px 48px; }
  .prose p, .prose li { font-size: 16.5px; }
  .hood-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .hood-cards { grid-template-columns: 1fr; }
  .prose td:first-child { white-space: normal; }
}
