:root {
  --assistant-sidebar-width: 240px;
  --assistant-header-height: 64px;
  --assistant-ink: #17352b;
  --assistant-muted: #60716a;
  --assistant-green: #147c4b;
  --assistant-green-dark: #0f633b;
  --assistant-green-soft: #eaf5ee;
  --assistant-border: #e0e9e3;
}

html, body {
  background: #fff;
}

body .btn-primary,
body .btn-success,
body .newsletter-submit,
body.home-page .home-actions .btn-primary {
  color: #fff;
  background-color: var(--assistant-green);
  border-color: var(--assistant-green);
}

body .btn-primary:hover,
body .btn-success:hover,
body .newsletter-submit:hover,
body.home-page .home-actions .btn-primary:hover {
  color: #fff;
  background-color: var(--assistant-green-dark);
  border-color: var(--assistant-green-dark);
}

body .btn-primary:active,
body .btn-success:active,
body .newsletter-submit:active,
body.home-page .home-actions .btn-primary:active {
  color: #fff;
  background-color: #0b5432;
  border-color: #0b5432;
}

body .btn-primary:focus-visible,
body .btn-success:focus-visible,
body .btn-outline-primary:focus-visible,
body .btn-outline-secondary:focus-visible,
body .newsletter-submit:focus-visible {
  outline: 3px solid rgba(20, 124, 75, .28);
  outline-offset: 2px;
  box-shadow: none;
}

body .btn-outline-primary {
  color: var(--assistant-green);
  background-color: #fff;
  border-color: #83b99b;
}

body .btn-outline-primary:hover,
body .btn-outline-primary:active {
  color: #fff;
  background-color: var(--assistant-green);
  border-color: var(--assistant-green);
}

body .btn-outline-secondary {
  color: #3d5d4b;
  background-color: #fff;
  border-color: #b7cbbd;
}

body .btn-outline-secondary:hover,
body .btn-outline-secondary:active {
  color: var(--assistant-green-dark);
  background-color: var(--assistant-green-soft);
  border-color: #83b99b;
}

body .btn:disabled,
body .btn.disabled {
  color: #65756c;
  background-color: #e9eeeb;
  border-color: #d6dfd9;
  opacity: 1;
}

body .form-control,
body .form-select {
  color: #20372b;
  background-color: #fff;
  border-color: #bccdc1;
  border-radius: .65rem;
}

body .form-control::placeholder {
  color: #718078;
  opacity: 1;
}

body .form-control:focus,
body .form-select:focus {
  color: #20372b;
  background-color: #fff;
  border-color: var(--assistant-green);
  outline: 0;
  box-shadow: 0 0 0 .2rem rgba(20, 124, 75, .16);
}

body .form-check-input:checked {
  background-color: var(--assistant-green);
  border-color: var(--assistant-green);
}

body .form-check-input:focus {
  border-color: var(--assistant-green);
  box-shadow: 0 0 0 .2rem rgba(20, 124, 75, .16);
}

body .site-header {
  height: var(--assistant-header-height);
  box-shadow: none;
}

body .site-navbar,
body.home-page .site-navbar {
  min-height: var(--assistant-header-height);
  padding: 0 1.5rem;
  background: #fff;
  border-bottom: 1px solid var(--assistant-border);
}

body .site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

body .site-brand,
body .site-brand:hover,
body .site-brand:focus,
body.home-page .site-brand {
  color: var(--assistant-ink);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

body .site-brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  line-height: 1;
  letter-spacing: -.025em;
}

.site-brand-logo {
  display: block;
  width: auto;
  height: 48px;
  max-width: 100%;
}

body .site-toggler {
  display: none;
  gap: .4rem;
  align-items: center;
  padding: .5rem .75rem;
  color: var(--assistant-ink);
  font-size: .9rem;
  border: 1px solid var(--assistant-border);
  border-radius: .65rem;
}

body .site-navbar .site-sidebar {
  position: fixed;
  top: var(--assistant-header-height);
  bottom: 0;
  left: 0;
  display: block !important;
  width: var(--assistant-sidebar-width);
  overflow-y: auto;
  background: #f8fbf9;
  border-right: 1px solid var(--assistant-border);
}

.site-sidebar-content {
  padding: 1.25rem .75rem 2rem;
}

.site-nav-label {
  margin: 1.1rem .75rem .45rem;
  color: #788981;
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.site-nav-label:first-child {
  margin-top: 0;
}

body .site-navbar .site-nav-links {
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  list-style: none;
}

body .site-nav-links .nav-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 42px;
  margin: 0;
  padding: .6rem .75rem;
  color: #40564c;
  font-size: .88rem;
  font-weight: 500;
  line-height: 1.35;
  border-radius: .65rem;
  text-decoration: none;
}

body .site-nav-links .nav-link:hover,
body .site-nav-links .nav-link:focus-visible,
body .site-nav-links .nav-link.is-active {
  color: #12663f;
  background: #e4f2e9;
  opacity: 1;
}

body .site-nav-links .nav-link:focus-visible,
body .site-brand:focus-visible,
body .site-toggler:focus-visible {
  outline: 2px solid var(--assistant-green);
  outline-offset: 2px;
}

body .site-main,
body .site-footer {
  margin-left: var(--assistant-sidebar-width);
}

body .site-main > .page-shell,
body .site-footer > .page-shell {
  width: min(1120px, calc(100% - 3rem));
}

body.home-page {
  background: #fff;
}

body.home-page .site-main {
  justify-content: center;
  padding: 3rem 0 2rem;
}

body.home-page .site-main > .page-shell {
  width: min(1120px, calc(100% - 3rem));
}

body.home-page .hero-section {
  padding: 1.5rem 0;
}

body.home-page .hero-content {
  max-width: 740px;
}

body.home-page .hero-badge {
  color: #176d43;
  background: #eaf6ee;
}

body.home-page .hero-content h1 {
  margin-bottom: 1rem;
  color: var(--assistant-ink);
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  line-height: 1.15;
}

body.home-page .hero-lead {
  max-width: 52ch;
  margin-bottom: 2rem;
  color: var(--assistant-muted);
}

body .ai-chat-form {
  max-width: 700px;
}

body .ai-chat-form .form-control,
body.home-page .ai-chat-footer--inline .form-control {
  height: 62px;
  min-height: 62px;
  padding: .75rem 7rem .75rem 1.3rem;
  color: var(--assistant-ink);
  background: #fff;
  border: 1px solid #d6e2d9;
  border-radius: 999px;
  box-shadow: 0 8px 26px rgba(32, 63, 46, .1);
}

body .ai-chat-form .form-control:focus,
body.home-page .ai-chat-footer--inline .form-control:focus {
  border-color: var(--assistant-green);
  box-shadow: 0 0 0 3px rgba(20, 124, 75, .14), 0 8px 26px rgba(32, 63, 46, .1);
}

body .ai-chat-form .btn-primary,
body.home-page .ai-chat-footer--inline .btn-primary {
  color: #fff;
  background: var(--assistant-green);
  border: 0;
}

body .ai-chat-form .btn-outline-secondary,
body.home-page .ai-chat-footer--inline .btn-outline-secondary {
  color: #536a5d;
  background: transparent;
  border-color: transparent;
}

body .ai-chat-footer--fixed {
  left: var(--assistant-sidebar-width);
  width: auto;
  padding: .65rem 1rem calc(.65rem + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(0deg, #fff 60%, rgba(255, 255, 255, .92));
  border: 0;
  box-shadow: none;
}

body.has-fixed-search {
  padding-bottom: 5.5rem;
}

.search-loading:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 1.25rem;
  background: rgba(15, 41, 28, .55);
}

.search-loading__card {
  width: min(100%, 470px);
  padding: 2rem;
  text-align: center;
  color: var(--assistant-ink);
  background: #fff;
  border: 1px solid var(--assistant-border);
  border-radius: 1.25rem;
  box-shadow: 0 20px 60px rgba(15, 41, 28, .2);
}

.search-loading__spinner {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1.25rem;
  border: 4px solid #dcefe2;
  border-top-color: var(--assistant-green);
  border-radius: 50%;
  animation: search-loading-spin .9s linear infinite;
}

.search-loading__card h2 {
  margin: 0 0 .75rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.search-loading__card p {
  margin: 0;
  color: var(--assistant-muted);
  font-size: .92rem;
  line-height: 1.55;
}

.search-loading__card .search-loading__hint {
  margin-top: .9rem;
  font-weight: 600;
}

.search-loading__back {
  display: inline-block;
  margin-top: 1.25rem;
  color: #12663f;
  font-weight: 600;
}

.search-loading__card .search-loading__note {
  margin-top: .4rem;
  font-size: .75rem;
}

@keyframes search-loading-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .search-loading__spinner {
    animation: none;
  }
}

body.home-page .hero-subtitle {
  margin-top: .9rem;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .65rem;
  margin-top: 2rem;
}

.home-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1rem;
  font-size: .9rem;
  font-weight: 600;
  border-radius: .7rem;
}

.home-actions .btn-primary {
  background: var(--assistant-green);
  border-color: var(--assistant-green);
}

.home-actions .btn-outline-primary {
  color: var(--assistant-green);
  border-color: #b6d6c1;
}

body.home-page .home-cta {
  margin-top: 1rem;
}

body .site-footer {
  background: #f8fbf9;
  border-top: 1px solid var(--assistant-border);
}

@media (max-width: 991.98px) {
  body .site-toggler {
    display: inline-flex;
  }

  body .site-navbar .site-sidebar {
    position: fixed;
    top: var(--assistant-header-height);
    bottom: auto;
    left: 0;
    right: 0;
    display: none !important;
    width: auto;
    max-height: calc(100dvh - var(--assistant-header-height));
    margin: 0;
    padding: 0;
    overflow-y: auto;
    background: #fff;
    border: 0;
    border-bottom: 1px solid var(--assistant-border);
    border-radius: 0;
    box-shadow: 0 12px 24px rgba(23, 53, 43, .12);
  }

  body .site-navbar .site-sidebar.show,
  body .site-navbar .site-sidebar.collapsing {
    display: block !important;
  }

  body .site-main,
  body .site-footer {
    margin-left: 0;
  }

  body .ai-chat-footer--fixed {
    left: 0;
  }
}

@media (max-width: 576px) {
  body .site-navbar {
    padding: 0 1rem;
  }

  body .site-main > .page-shell,
  body .site-footer > .page-shell,
  body.home-page .site-main > .page-shell {
    width: calc(100% - 2rem);
  }

  body.home-page .site-main {
    padding: 2rem 0;
  }

  body.home-page .hero-section {
    padding: 1rem 0;
  }

  body .ai-chat-form .form-control,
  body.home-page .ai-chat-footer--inline .form-control {
    height: 56px;
    min-height: 56px;
    padding-left: 1rem;
    padding-right: 6rem;
    font-size: .95rem;
  }
}
