/* Quick Guides presentation only. Search, topic counts, grouping, promo
   placement and pagination remain governed by the existing view/template. */
.guides-page {
  color: #193331;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.guides-page .guides-intro {
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: 1.25rem !important;
  background: #f5f7f3;
  border: 1px solid #e2e9e4;
  border-radius: 12px;
}
.guides-page .guides-intro h1 {
  color: #193331;
  font-family: inherit;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -.03em;
}
.guides-page .guides-intro p { max-width: 64ch; line-height: 1.65; font-size: .95rem; }
.guides-page .text-body-secondary,
.guides-page .text-muted { color: #61726b !important; }
.guides-page .card,
.guides-page .card:hover,
.guides-page .card:focus-within,
.guides-page .card:has(.card-body:hover),
.guides-page .card:has(.card-body:focus-within) {
  background: #fff;
  border-color: #e2e9e4;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(25, 51, 49, .035);
}
.guides-page .guides-search-panel .card-body { padding: 1.25rem; }
.guides-page .guides-search-panel h2,
.guides-page .guides-topic-label {
  color: #61726b;
  font-size: .75rem;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.guides-page .guides-search-panel form { margin-bottom: 0 !important; }
.guides-page .guides-search-group { gap: .65rem; flex-wrap: nowrap; }
.guides-page .guides-search-group > * { margin-left: 0 !important; border-radius: 7px !important; }
.guides-page .guides-search-group .form-control {
  min-width: 0;
  min-height: 46px;
  color: #193331;
  border-color: #cbdcd0 !important;
  font-size: 1rem;
  box-shadow: none;
}
.guides-page .guides-search-group .form-control:hover { border-color: #91b69e !important; box-shadow: none; }
.guides-page .guides-search-group .form-control:focus {
  border-color: #146b58 !important;
  outline: 3px solid #31b989;
  outline-offset: 2px;
  box-shadow: none;
}
.guides-page .btn { border-radius: 7px; font-weight: 600; }
.guides-page .btn-primary {
  --bs-btn-bg: #146b58;
  --bs-btn-border-color: #146b58;
  --bs-btn-hover-bg: #105745;
  --bs-btn-hover-border-color: #105745;
  --bs-btn-active-bg: #105745;
  --bs-btn-active-border-color: #105745;
  --bs-btn-focus-shadow-rgb: 20, 107, 88;
  color: #fff;
  background: #146b58;
  border-color: #146b58;
}
.guides-page .btn-primary:hover { background: #105745; border-color: #105745; }
.guides-page .guides-search-group .btn-primary { border-color: #146b58 !important; }
.guides-page .btn-outline-primary,
.guides-page .btn-outline-secondary {
  --bs-btn-active-bg: #e3f1e9;
  --bs-btn-active-color: #175a45;
  --bs-btn-active-border-color: #91b69e;
  --bs-btn-focus-shadow-rgb: 20, 107, 88;
  color: #245744;
  background: #fff;
  border-color: #d5e2d8;
}
.guides-page .btn-outline-primary:hover,
.guides-page .btn-outline-secondary:hover { color: #175a45; background: #eaf3ec; border-color: #91b69e; }
.guides-page .guides-search-group .btn-outline-secondary { border-color: #d5e2d8 !important; }
.guides-page .guides-search-group .btn { min-height: 46px; padding: .65rem 1rem; }
.guides-page .guides-topic-label { margin-bottom: .65rem; }
.guides-page .guides-topic-filters .btn { padding: .5rem .75rem; font-size: .8rem; }
.guides-page .guides-topic-filters .btn-primary .text-body-secondary { color: #fff !important; }
.guides-page > section[id^="intent-"] > h2,
.guides-page > h2 {
  padding-bottom: .65rem;
  color: #193331;
  border-bottom: 1px solid #e2e9e4;
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -.02em;
}
.guides-page .guides-card .card-body { display: flex; flex-direction: column; padding: 1.5rem; }
.guides-page .guides-card h3 { font-size: 1.15rem; font-weight: 650; line-height: 1.4; letter-spacing: -.015em; }
.guides-page .guides-card h3 a { color: #193331; }
.guides-page .guides-card h3 a:hover { color: #146b58; text-decoration: underline; text-underline-offset: 3px; }
.guides-page .guides-card p { font-size: .9rem; line-height: 1.65; }
.guides-page .guides-card .link-primary { margin-top: auto; color: #146b58 !important; font-size: .85rem; font-weight: 600; }
.guides-page .guides-card .badge {
  padding: .4rem .55rem;
  color: #245744 !important;
  background: #edf4ee !important;
  border-color: #dce8dd !important;
  border-radius: 5px !important;
  font-weight: 500;
  white-space: normal;
  line-height: 1.35;
}
/* Keep the promotional content, links and placement; scope its new surface
   here so the shared promotion retains its appearance on other pages. */
.guides-page .directory-promo-card-2 {
  min-height: 0;
  background-color: #193331;
  border-radius: 12px;
  color: #fff;
}
.guides-page .directory-promo-card-2 .card-body { padding: 1.5rem; }
.guides-page .directory-promo-card-2 .flex-grow-1 { max-width: none; padding: 0; margin-top: 0; }
.guides-page .directory-promo-card-2 :is(h1, h2) {
  max-width: 42ch;
  color: #fff;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}
.guides-page .directory-promo-card-2 p {
  display: block;
  max-width: 64ch;
  padding: .75rem 1rem;
  color: #fff;
  background: rgba(15, 31, 27, .72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  font-size: .95rem;
  font-weight: 400;
  line-height: 1.65;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}
.guides-page .directory-promo-card-2 .btn-light {
  --bs-btn-active-bg: #105745;
  --bs-btn-active-color: #fff;
  color: #fff !important;
  background: #146b58;
  border-color: #146b58;
}
.guides-page .directory-promo-card-2 .btn-light:hover { background: #105745; }
.guides-page .pagination {
  --bs-pagination-color: #146b58;
  --bs-pagination-border-color: #d5e2d8;
  --bs-pagination-hover-color: #175a45;
  --bs-pagination-hover-bg: #eaf3ec;
  --bs-pagination-hover-border-color: #91b69e;
  --bs-pagination-focus-color: #175a45;
  --bs-pagination-focus-bg: #eaf3ec;
  --bs-pagination-focus-box-shadow: 0 0 0 .2rem rgba(20, 107, 88, .18);
  --bs-pagination-active-bg: #146b58;
  --bs-pagination-active-border-color: #146b58;
}
.guides-page .pagination .page-item.active > .page-link { color: #fff; background: #146b58; border-color: #146b58; }
.guides-page .page-link { border-radius: 6px; }
.guides-page :is(a, button):focus-visible { outline: 3px solid #31b989; outline-offset: 3px; }
@media (max-width: 575.98px) {
  .guides-page .guides-search-group { flex-wrap: wrap; }
  .guides-page .guides-search-group .form-control { flex-basis: 100%; width: 100%; }
  .guides-page .guides-search-group .btn { flex: 1 1 auto; }
  .guides-page .guides-card .card-body { padding: 1.25rem; }
}
