:root {
  color-scheme: light;
  --bs-font-sans-serif: "Roboto", Arial, sans-serif;
  --bs-body-color: #000;
  --bs-body-color-rgb: 0, 0, 0;
  --bs-body-bg: #fff;
  --bs-body-bg-rgb: 255, 255, 255;
  --bs-primary: #007e46;
  --bs-primary-rgb: 0, 126, 70;
  --bs-secondary: #607a83;
  --bs-secondary-rgb: 96, 122, 131;
  --bs-link-color: #007e46;
  --bs-link-color-rgb: 0, 126, 70;
  --bs-link-hover-color: #006438;
  --bs-link-hover-color-rgb: 0, 100, 56;
  --bs-border-color: #d3dcdf;
  --green-900: #006438;
  --green-700: #007e46;
  --muted: #555;
}

body {
  min-width: 320px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

.btn {
  --bs-btn-font-size: 0.875rem;
  --bs-btn-font-weight: 500;
  --bs-btn-padding-x: 0.875rem;
  --bs-btn-padding-y: 0.375rem;
  --bs-btn-border-radius: 0.25rem;
  --bs-btn-focus-shadow-rgb: 0, 126, 70;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  gap: 8px;
}

.btn-primary {
  --bs-btn-bg: var(--green-700);
  --bs-btn-border-color: var(--green-700);
  --bs-btn-hover-bg: var(--green-900);
  --bs-btn-hover-border-color: var(--green-900);
  --bs-btn-active-bg: var(--green-900);
  --bs-btn-active-border-color: var(--green-900);
  --bs-btn-disabled-bg: var(--green-700);
  --bs-btn-disabled-border-color: var(--green-700);
}

.btn-outline-primary {
  --bs-btn-color: var(--green-900);
  --bs-btn-border-color: var(--green-700);
  --bs-btn-hover-color: white;
  --bs-btn-hover-bg: var(--green-900);
  --bs-btn-hover-border-color: var(--green-900);
  --bs-btn-active-color: white;
  --bs-btn-active-bg: var(--green-700);
  --bs-btn-active-border-color: var(--green-700);
  --bs-btn-disabled-color: var(--green-700);
  --bs-btn-disabled-border-color: var(--green-700);
}

.btn:focus-visible,
.nav-link:focus-visible,
a:focus-visible,
summary:focus-visible,
.question-info-toggle:focus-visible,
.btn-check:focus-visible + .btn {
  outline: 3px solid #e0a528;
  outline-offset: 3px;
}

.alert {
  margin: 24px 0;
  line-height: 1.5;
}

.alert-info {
  --bs-alert-color: #4e646c;
  --bs-alert-bg: #f0f3f4;
  --bs-alert-border-color: #d3dcdf;
}

.alert-danger {
  --bs-alert-color: #812c22;
  --bs-alert-bg: #fff3f1;
  --bs-alert-border-color: #e5b7b2;
}

.page-shell {
  max-width: 1120px;
  flex: 1;
  padding: 48px 24px 64px;
}

.loading-message {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

h1 {
  max-width: 760px;
  margin-bottom: 16px;
  color: var(--bs-body-color);
  font-size: 1.625rem;
  font-weight: 500;
  line-height: 1.3;
}

h2 {
  color: var(--bs-body-color);
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.3;
}

h3 {
  font-size: 1.125rem;
  font-weight: 500;
}

.intro-copy,
.section-copy {
  max-width: 720px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.card {
  --bs-card-bg: white;
  --bs-card-border-radius: 0.25rem;
}

.category-sidebar {
  position: sticky;
  top: 16px;
  align-self: flex-start;
  z-index: 10;
}

.category-panel {
  min-width: 0;
  padding: 15px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}

.category-panel h2 {
  margin-bottom: 18px;
  font-size: 1rem;
}

.category-list {
  --bs-nav-link-color: var(--muted);
  --bs-nav-link-hover-color: var(--green-900);
  --bs-nav-pills-link-active-color: white;
  --bs-nav-pills-link-active-bg: var(--green-700);
  --bs-nav-pills-border-radius: 0.25rem;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-list .nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  text-align: left;
  font-size: 14px;
  padding: 6px 10px;
}

.category-count {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}

.category-list .nav-link.active {
  font-weight: 700;
}

.survey-content {
  min-width: 0;
}

.progress-row {
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.progress-track {
  --bs-progress-height: 8px;
  --bs-progress-bg: #f0f3f4;
  --bs-progress-bar-bg: var(--green-700);
  margin-bottom: 32px;
}

.question-card {
  display: block;
  min-inline-size: 0;
  margin: 20px 0;
  padding: 22px;
}

.question-group {
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.question-card .question-number {
  float: none;
  width: auto;
  margin: 0;
  padding: 0 6px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
}

.question-text {
  margin: 0;
  color: var(--bs-body-color);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}

.question-inactive {
  --bs-card-bg: #f0f3f4;
}

.question-inactive .question-text,
.question-inactive .question-number,
.question-inactive .question-condition,
.question-inactive .question-info,
.question-inactive .question-info summary,
.question-inactive .question-info-toggle {
  color: #868686;
}

.question-inactive .btn-outline-primary {
  --bs-btn-disabled-color: #868686;
  --bs-btn-disabled-bg: #e8e8e8;
  --bs-btn-disabled-border-color: #b8b8b8;
  --bs-btn-disabled-opacity: 1;
}

.question-condition {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.question-info-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-left: 4px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--green-900);
  vertical-align: middle;
}

.question-info-toggle .fa-circle-info {
  font-size: 17px;
}

.question-info-toggle:hover,
.question-info-toggle[aria-expanded="true"] {
  background: #f0f3f4;
}

.answer-option .btn {
  min-width: 88px;
  font-size: 14px;
  font-weight: 400;
}

.btn-check:checked + .btn {
  font-weight: 700;
}

.validation-message {
  min-height: 24px;
  margin: 4px 0 16px;
  color: #8a4c10;
  font-size: 14px;
}

.form-actions {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.result-card {
  max-width: 760px;
  margin-top: 24px;
  padding: 28px;
}

.site-footer {
  padding: 18px 24px;
  border-top: 1px solid var(--bs-border-color);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.small-copy {
  font-size: 14px;
}

.question-info {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.question-info summary {
  display: flex;
  align-items: baseline;
  gap: 8px;
  width: fit-content;
  list-style: none;
  color: var(--green-900);
  cursor: pointer;
}

.question-info summary::-webkit-details-marker {
  display: none;
}

.question-info-chevron {
  flex-shrink: 0;
  font-size: 0.75em;
}

.question-info[open] .question-info-chevron {
  transform: rotate(90deg);
}

.question-info p,
.recommendation p {
  margin-top: 12px;
}

.category-results {
  margin-bottom: 0;
}

.category-results > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--bs-border-color);
}

.category-results dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
}

.answer-summary {
  padding-left: 26px;
}

.answer-category {
  margin-top: 20px;
}

.answer-summary li {
  padding: 8px 0;
  border-bottom: 1px solid var(--bs-border-color);
  line-height: 1.4;
}

.answer-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px;
  gap: 12px;
}

.answer-summary-row strong {
  font-size: 0.875rem;
  text-align: right;
}

.recommendation {
  padding: 18px 0;
  border-bottom: 1px solid var(--bs-border-color);
  line-height: 1.6;
}

.answer-summary li p {
  margin: 0;
}

.recommendation h3 {
  font-size: 16px;
}

.result-actions {
  flex-wrap: wrap;
  justify-content: flex-start;
}

@media (max-width: 767.98px) {
  .category-sidebar {
    position: static;
  }

  .answer-summary-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .page-shell {
    padding: 32px 18px 44px;
  }

  .category-panel {
    padding: 16px;
    max-height: none;
    overflow: visible;
  }

  .category-panel h2 {
    margin-bottom: 12px;
  }

  .question-card {
    padding: 18px;
  }
}

@media print {
  .category-sidebar {
    position: static;
  }

  .category-panel {
    max-height: none;
    overflow: visible;
  }

  body {
    --bs-body-bg: white;
    --bs-body-color: black;
    display: block;
    min-width: 0;
    background: white;
    color: black;
    font-size: 11pt;
  }

  .page-shell {
    width: 100%;
    max-width: none;
    padding: 24px 0;
  }

  .result-card {
    display: block;
    max-width: none;
    padding: 0;
    border: 0;
  }

  .result-actions,
  .site-footer {
    display: none;
  }

  .recommendations {
    break-before: page;
  }

  .answer-summary li,
  .recommendation {
    break-inside: avoid;
  }

  h1 {
    font-size: 24pt;
  }

  h2 {
    font-size: 18pt;
  }
}
