:root {
  --ink: #2a2016;
  --slate: #5a4530;
  --sage: #3a6ea5;
  --fern: #7fa6cf;
  --navy: #1d2f45;
  --mint: #f6efe7;
  --sand: #fff6ea;
  --sun: #f08a2b;
  --coral: #f3a24f;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(12, 27, 26, 0.12);
  --shadow-soft: 0 12px 28px rgba(12, 27, 26, 0.1);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Franklin Gothic Medium", "Franklin Gothic", "ITC Franklin Gothic", "Arial", sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, #fff5e8 0%, #fffaf2 45%, #f4f7fb 100%);
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(240, 138, 43, 0.14), transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(58, 110, 165, 0.12), transparent 50%),
    radial-gradient(circle at 80% 85%, rgba(243, 162, 79, 0.14), transparent 45%);
  pointer-events: none;
  z-index: -1;
}

img {
  max-width: 100%;
  display: block;
}

picture {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--sage);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: -999px;
  background: var(--sun);
  color: var(--ink);
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  z-index: 10;
}

.skip-link:focus {
  left: 20px;
  top: 20px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(246, 239, 225, 0.86);
  border-bottom: 1px solid rgba(12, 27, 26, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Palatino", "Palatino Linotype", "Book Antiqua", "Palatino LT STD", serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 1.56rem;
  color: #232D4B;
}

.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: inline-block;
}

.brand-text {
  display: inline-block;
}


.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
  width: 44px;
  height: 44px;
  padding: 10px;
  align-items: center;
  justify-content: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
  padding: 0;
  margin: 0;
  align-items: center;
  font-weight: 600;
}

.nav-links a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a:focus {
  border-bottom-color: var(--coral);
}

.nav-links .pill {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--sun);
  color: #1f140a;
}

.hero {
  padding: 96px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-family: "Palatino", "Palatino Linotype", "Book Antiqua", "Palatino LT STD", serif;
  font-size: clamp(2rem, 2.2vw + 1.2rem, 3rem);
  margin: 0 0 18px;
  line-height: 1.05;
}

.hero p {
  font-size: 1.25rem;
  line-height: 1.7;
  margin: 0 0 26px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--sun);
  color: #1f140a;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: rgba(240, 138, 43, 0.35);
  box-shadow: none;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.hero-card {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  display: block;
  max-width: 460px;
  width: 100%;
  justify-self: center;
}

.hero-card img {
  border-radius: 12px;
  width: 100%;
  height: auto;
  object-fit: contain;
  border: 0;
  box-shadow: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(240, 138, 43, 0.12);
  color: var(--slate);
  font-weight: 600;
  font-size: 0.85rem;
}

.section {
  padding: 64px 0;
}

.section h2 {
  font-family: "Palatino", "Palatino Linotype", "Book Antiqua", "Palatino LT STD", serif;
  font-size: clamp(2rem, 2.2vw + 1.2rem, 3rem);
  margin: 0 0 20px;
}

.section-lead {
  max-width: 720px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(12, 27, 26, 0.06);
  display: grid;
  gap: 14px;
}

.card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.card p {
  margin: 0;
  color: var(--slate);
  line-height: 1.6;
}

.card .arrow {
  font-weight: 600;
  color: var(--sage);
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  align-items: start;
}

.panel {
  background: rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(12, 27, 26, 0.08);
}

#about .panel p {
  font-size: 1.1rem;
  line-height: 1.75;
}

.panel img {
  border: 0;
  box-shadow: none;
  border-radius: 12px;
  width: 100%;
  height: auto;
}

.image-panel {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

@media (min-width: 901px) {
  .split {
    align-items: stretch;
  }

  .split > .panel {
    height: 100%;
  }

  .image-panel {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .image-panel img {
    height: 99%;
    object-fit: cover;
  }
}

.list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 12px;
}

.list li {
  padding-left: 24px;
  position: relative;
  line-height: 1.6;
}

.list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--coral);
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(240, 138, 43, 0.14);
  color: var(--slate);
  font-size: 0.75rem;
  font-weight: 600;
}

.banner {
  background: linear-gradient(135deg, rgba(240, 138, 43, 0.12), rgba(58, 110, 165, 0.12));
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  gap: 14px;
  border: 1px solid rgba(240, 138, 43, 0.2);
}

.banner-white {
  background: #ffffff;
  border: 1px solid rgba(12, 27, 26, 0.12);
}

.compact {
  padding: 42px 0;
}

.trust-grid {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.trust-item {
  color: var(--slate);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  position: relative;
  padding-right: 18px;
}

.trust-item::after {
  content: "•";
  position: absolute;
  right: 6px;
  color: rgba(58, 110, 165, 0.6);
}

.trust-item:last-child::after {
  content: "";
}

.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

.tableau-embed {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(42, 32, 22, 0.12);
  background: #fff;
  padding: 10px;
  text-align: center;
}

.tableau-embed .tableauPlaceholder {
  margin: 0 auto;
  width: 100%;
}

.tableau-embed .tableauViz {
  display: block;
  margin: 0 auto;
}

.dashboard {
  display: grid;
  gap: 20px;
}

.dashboard-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px 20px;
}

.filter-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-wide {
  grid-column: span 2;
}

.filter-range {
  width: 100%;
  grid-column: span 2;
}

.range-inputs {
  display: flex;
  gap: 18px;
  align-items: center;
}

.filter-range + .filter-range {
  margin-top: 0;
}

.range-inputs input[type="range"] {
  width: 100%;
  accent-color: var(--navy);
}

.range-values {
  font-size: 0.9rem;
  color: var(--slate);
}

.range-inputs input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  background: rgba(29, 47, 69, 0.25);
  border-radius: 999px;
}

.range-inputs input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #1d2f45;
  border: 2px solid #ffffff;
  margin-top: -5px;
}

.range-inputs input[type="range"]::-moz-range-track {
  height: 6px;
  background: rgba(29, 47, 69, 0.25);
  border-radius: 999px;
}

.range-inputs input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #1d2f45;
  border: 2px solid #ffffff;
}

.range-inputs input[type="range"]::-ms-track {
  height: 6px;
  background: transparent;
  border-color: transparent;
  color: transparent;
}

.range-inputs input[type="range"]::-ms-fill-lower,
.range-inputs input[type="range"]::-ms-fill-upper {
  background: rgba(29, 47, 69, 0.25);
  border-radius: 999px;
}

.range-inputs input[type="range"]::-ms-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #1d2f45;
  border: 2px solid #ffffff;
}

.dashboard-controls label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.dashboard-controls select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(42, 32, 22, 0.2);
  font-size: 1rem;
  min-width: 220px;
  background: #fffdf8;
}

.multi-select {
  position: relative;
}

.multi-select-toggle {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(42, 32, 22, 0.2);
  background: #fffdf8;
  text-align: left;
  font-size: 1rem;
  cursor: pointer;
}

.multi-select-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 240px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid rgba(42, 32, 22, 0.2);
  border-radius: 10px;
  padding: 8px;
  display: none;
  z-index: 5;
}

.multi-select-search {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(42, 32, 22, 0.2);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.multi-select-panel.is-open {
  display: block;
}

.multi-option {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 6px 4px;
  font-size: 0.95rem;
}

.table-pagination {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 12px;
}

.back-link {
  display: flex;
  justify-content: flex-start;
  margin-top: 16px;
}

.definitions-wrap .back-link {
  padding-left: 20px;
}

.table-pagination button {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(42, 32, 22, 0.2);
  background: #fffdf8;
  cursor: pointer;
}

.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.kpi-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  border: 1px solid rgba(42, 32, 22, 0.1);
}

.kpi-label {
  display: block;
  font-size: 0.9rem;
  color: var(--slate);
  margin-bottom: 6px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.chart-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(42, 32, 22, 0.1);
}

.chart-card h2 {
  font-size: 1.1rem;
  margin-top: 0;
}

.summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.summary-table th,
.summary-table td {
  border: 1px solid rgba(42, 32, 22, 0.08);
  padding: 10px 12px;
  text-align: left;
}

.summary-table tr:nth-child(even) {
  background: #fdf6ee;
}

.definitions {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 20px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(42, 32, 22, 0.1);
}

.definitions-wrap {
  max-width: 1120px;
  margin: 0 auto;
}

.definitions-wrap .definitions {
  margin: 0;
}

@media (max-width: 900px) {
  .trust-grid {
    gap: 10px 16px;
  }
  .dashboard-controls {
    grid-template-columns: 1fr;
    gap: 18px;
  }

.filter-item,
#filter-type-wrap,
#filter-risk-wrap {
  width: 100%;
}

  #filter-type-wrap,
  #filter-risk-wrap {
    grid-column: 1 / -1;
  }

  .dashboard-controls select {
    min-width: 0;
    width: 100%;
  }

  .dashboard-kpis {
    grid-template-columns: 1fr;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .chart-card {
    padding: 12px;
  }

  .desktop-only {
    display: none;
  }

  .dashboard-kpis {
    display: none;
  }

  .filter-range {
    display: none;
  }
}

@media (max-width: 1000px) {
  .dashboard-kpis {
    grid-template-columns: 1fr;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .filter-range {
    grid-column: auto;
  }

  .range-inputs {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .trust-grid {
    gap: 8px 14px;
  }
}

.banner strong {
  font-size: 1.2rem;
}

.page-hero {
  padding: 72px 0 40px;
}

.page-hero h1 {
  font-family: "Palatino", "Palatino Linotype", "Book Antiqua", "Palatino LT STD", serif;
  font-size: clamp(2.2rem, 2.6vw + 1.2rem, 3.4rem);
  margin: 0 0 16px;
}

.page-hero p {
  max-width: 740px;
  line-height: 1.7;
  font-size: 1.05rem;
  margin: 0;
}

.page-hero .tag {
  margin-bottom: 14px;
}

.content {
  padding-bottom: 60px;
}

.content h2,
.content h3 {
  font-family: "Palatino", "Palatino Linotype", "Book Antiqua", "Palatino LT STD", serif;
}

.content h2 {
  font-size: 1.8rem;
  margin-top: 36px;
}

.content h3 {
  font-size: 1.3rem;
  margin-top: 24px;
}

.content p {
  line-height: 1.7;
}

.content .reference {
  font-size: 0.95rem;
  color: var(--slate);
}

.npi-search {
  margin: 20px 0 10px;
}

.npi-search-org {
  margin-top: 28px;
}

.npi-label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 1rem;
}

.npi-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(42, 32, 22, 0.2);
  font-size: 1.1rem;
  font-family: inherit;
  background: #fffdf8;
}

.form_auto_complete {
  margin-top: 16px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(42, 32, 22, 0.12);
  background: #ffffff;
}

.autocomplete-live {
  display: none;
}

.npi-results-copy {
  margin-top: 12px;
}

.npi-results-copy.is-hidden {
  display: none;
}

.npi-results-copy:empty {
  display: none;
}

.npi-results {
  margin-top: 16px;
}

.npi-results.is-hidden {
  display: none;
}

.npi-results-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  font-size: 0.9rem;
  color: var(--slate);
  border-bottom: 1px solid rgba(42, 32, 22, 0.08);
}

.npi-results-table {
  max-height: 420px;
  overflow: auto;
}

.npi-pagination {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid rgba(42, 32, 22, 0.08);
}

.npi-pagination button {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(42, 32, 22, 0.2);
  background: #fffdf8;
  cursor: pointer;
}

.npi-pagination button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ndc-search {
  margin: 24px 0 16px;
  display: grid;
  gap: 16px;
  background: #ffffff;
  border-radius: 18px;
  padding: 20px 22px;
  border: 1px solid rgba(12, 27, 26, 0.08);
  box-shadow: var(--shadow-soft);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.ndc-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.ndc-field label {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--slate);
}

.ndc-select {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(42, 32, 22, 0.2);
  font-size: 1rem;
  background: #fffdf8;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}

.ndc-row .npi-input {
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}

.ndc-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.ndc-actions {
  display: flex;
  justify-content: flex-start;
}

@media (max-width: 900px) {
  .ndc-row {
    grid-template-columns: 1fr;
  }

  .ndc-actions {
    justify-content: stretch;
  }

.ndc-actions .button {
  width: 100%;
}
}

.loinc-tool {
  margin: 24px 0 16px;
  display: grid;
  gap: 18px;
}

.loinc-form-shell {
  background: #ffffff;
  border-radius: 18px;
  padding: 20px 22px;
  border: 1px solid rgba(12, 27, 26, 0.08);
  box-shadow: var(--shadow-soft);
}

.loinc-type {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.loinc-radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--slate);
}

.loinc-search-row {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.loinc-input {
  display: grid;
  gap: 8px;
  min-width: 260px;
  flex: 1;
}

.loinc-input label {
  font-weight: 600;
  color: var(--slate);
}

.loinc-input .npi-input {
  font-size: 1.1rem;
}

.loinc-status {
  display: none;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
}

.loinc-status.is-visible {
  display: block;
}

.status-info {
  background: rgba(58, 110, 165, 0.12);
  color: var(--navy);
}

.status-success {
  background: rgba(51, 127, 92, 0.15);
  color: #1d5b3b;
}

.status-error {
  background: rgba(180, 35, 24, 0.12);
  color: #8a1c14;
}

.loinc-results {
  display: grid;
  gap: 16px;
}

.loinc-results.is-hidden {
  display: none;
}

.loinc-panel {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(12, 27, 26, 0.08);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.loinc-card {
  display: grid;
  gap: 16px;
}

.loinc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.loinc-table th,
.loinc-table td {
  border: 1px solid rgba(12, 27, 26, 0.08);
  padding: 10px 12px;
  text-align: left;
}

.loinc-table th {
  background: rgba(229, 114, 0, 0.16);
  color: #2a2016;
}

.loinc-answer h3 {
  margin: 0 0 12px;
}

@media (max-width: 700px) {
  .loinc-search-row {
    flex-direction: column;
    align-items: stretch;
  }

  .loinc-input {
    min-width: 0;
  }

.loinc-search-row .button {
  width: 100%;
}
}

.neighborhood-tool {
  margin-top: 24px;
  display: grid;
  gap: 24px;
}

.neighborhood-form {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
  background: #ffffff;
  border-radius: 18px;
  padding: 22px 24px;
  border: 1px solid rgba(12, 27, 26, 0.08);
  box-shadow: var(--shadow-soft);
}

.neighborhood-form label {
  font-weight: 600;
  font-size: 1rem;
}

.neighborhood-form input[type="text"] {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(42, 32, 22, 0.2);
  font-size: 1.05rem;
  font-family: inherit;
  background: #fffdf8;
}

.neighborhood-form input[type="text"]:focus {
  border-color: var(--sun);
  outline: none;
}

.neighborhood-actions {
  display: flex;
  justify-content: center;
}

.neighborhood-actions .button {
  min-width: 180px;
  justify-content: center;
}

.error-text {
  color: #b42318;
  font-weight: 600;
}

.neighborhood-results {
  display: grid;
  gap: 12px;
  background: #ffffff;
  border-radius: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(12, 27, 26, 0.08);
  box-shadow: var(--shadow-soft);
}

.neighborhood-results.is-hidden {
  display: none;
}

.neighborhood-results #resultsTable {
  display: none;
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.neighborhood-results th {
  background: rgba(229, 114, 0, 0.16);
  color: #2a2016;
}

.neighborhood-results td,
.neighborhood-results th {
  padding: 12px 16px;
  text-align: left;
  border: 1px solid rgba(12, 27, 26, 0.1);
  font-size: 0.95rem;
}

.neighborhood-results tr:nth-child(even) {
  background: #fdf6ee;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(12, 27, 26, 0.08);
  background: #ffffff;
}

.info-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  padding: 4px 2px 8px;
  border-bottom: 1px solid rgba(12, 27, 26, 0.08);
}

#searchCount {
  display: none;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.pagination button,
.pagination input,
.pagination span {
  display: inline-block;
  background-color: transparent;
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink);
}

.pagination button {
  cursor: pointer;
  border: 1px solid rgba(12, 27, 26, 0.1);
}

.pagination input {
  width: 60px;
  text-align: center;
  border: 1px solid rgba(240, 138, 43, 0.4);
}

.pagination button.active {
  background-color: var(--sun);
  color: #1f140a;
  border-color: transparent;
}

.pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.clickable-text {
  cursor: pointer;
}

.plain-text {
  cursor: default;
}

.pac-container {
  width: min(100% - 40px, 720px) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  box-sizing: border-box;
}

.pac-item,
.pac-item-query {
  white-space: normal !important;
  word-wrap: break-word !important;
  line-height: 1.3 !important;
}

@media (max-width: 700px) {
  .neighborhood-form {
    max-width: 100%;
    padding: 18px;
  }

  .neighborhood-actions {
    justify-content: stretch;
  }

  .neighborhood-actions .button {
    width: 100%;
  }
}

@media (min-width: 900px) {
  .neighborhood-tool {
    grid-template-columns: minmax(280px, 360px) 1fr;
    align-items: start;
  }

  .neighborhood-form {
    margin: 0;
    position: sticky;
    top: 120px;
  }

  .neighborhood-results {
    min-height: 520px;
  }
}

.form_auto_complete .auto_complete {
  display: block;
  width: 100%;
}

.form_auto_complete #completionOptionsScroller {
  max-height: 420px;
  overflow-y: auto;
}

.form_auto_complete #moreResults,
.form_auto_complete #searchCount,
.form_auto_complete #searchHint {
  padding: 10px 12px;
  font-size: 0.9rem;
  color: var(--slate);
  border-top: 1px solid rgba(42, 32, 22, 0.08);
}

.form_auto_complete table {
  width: 100%;
  border-collapse: collapse;
}

.form_auto_complete td,
.form_auto_complete th {
  border: 1px solid rgba(42, 32, 22, 0.08);
  padding: 10px 12px;
  text-align: left;
  font-size: 0.95rem;
}

.form_auto_complete tr:nth-child(even) {
  background: #fdf6ee;
}

.embed {
  min-height: 320px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.8);
  border: 1px dashed rgba(12, 27, 26, 0.2);
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
}

.embed iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: var(--radius-sm);
}

.embed.embed-full {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  display: block;
  text-align: left;
}

.embed.embed-full iframe {
  display: block;
  width: 100%;
  min-height: 70vh;
  height: 80vh;
  border-radius: 10px;
}

.embed .placeholder {
  max-width: 520px;
  line-height: 1.7;
}

.chat-shell {
  background: linear-gradient(135deg, rgba(63, 97, 85, 0.12), rgba(224, 122, 95, 0.1));
  border: 1px solid rgba(63, 97, 85, 0.2);
}

.chatbot-layout {
  display: grid;
  gap: 14px;
}

.chatbot-shell {
  width: 100%;
  min-height: 560px;
  height: min(72vh, 760px);
  background: #fff;
  border: 1px solid rgba(12, 27, 26, 0.1);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(12, 27, 26, 0.08);
  background: linear-gradient(90deg, rgba(229, 114, 0, 0.12), rgba(35, 45, 75, 0.08));
}

.chatbot-title {
  display: grid;
  gap: 2px;
}

.chatbot-title strong {
  font-size: 1.06rem;
}

.chatbot-title span {
  font-size: 0.92rem;
  color: var(--slate);
}

.chatbot-reset {
  border: 1px solid rgba(35, 45, 75, 0.2);
  background: #fff;
  color: #232d4b;
  font-weight: 600;
  border-radius: 8px;
  padding: 7px 10px;
  cursor: pointer;
}

.chatbot-messages {
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.chat-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.chat-row.user {
  justify-content: flex-end;
}

.chat-avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  background: #232d4b;
}

.chat-row.user .chat-avatar {
  display: none;
}

.chat-bubble {
  max-width: min(88%, 760px);
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(12, 27, 26, 0.08);
  background: #fdf6ee;
  line-height: 1.55;
  font-size: 0.98rem;
  white-space: pre-wrap;
  min-width: 0;
}

.chat-row.assistant .chat-bubble {
  max-width: calc(100% - 40px);
}

.chat-row.user .chat-bubble {
  background: #232d4b;
  color: #fff;
  border-color: #232d4b;
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.chat-chip {
  border: 1px solid rgba(229, 114, 0, 0.45);
  background: #fff;
  color: #2a2016;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.9rem;
  cursor: pointer;
}

.chatbot-table {
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(12, 27, 26, 0.1);
  overflow: hidden;
  width: 100%;
}

.chatbot-table-actions {
  display: flex;
  justify-content: flex-end;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(12, 27, 26, 0.08);
  background: #f8fafc;
}

.chatbot-table-actions button {
  border: 1px solid rgba(35, 45, 75, 0.25);
  border-radius: 8px;
  background: #fff;
  color: #232d4b;
  font-weight: 600;
  padding: 6px 10px;
  cursor: pointer;
}

.chatbot-table-scroll {
  overflow: auto;
  max-height: 300px;
  width: 100%;
}

.chatbot-table table,
.chatbot-table .data-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.chatbot-table th,
.chatbot-table td {
  border: 1px solid rgba(12, 27, 26, 0.08);
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
}

.chatbot-table th {
  position: sticky;
  top: 0;
  background: #f8e6d2;
  opacity: 1;
  z-index: 1;
}

.chatbot-chart {
  width: 100%;
  border: 1px solid rgba(12, 27, 26, 0.1);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}

.chatbot-typing {
  display: inline-flex;
  gap: 4px;
  padding: 8px 10px;
}

.chatbot-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(42, 32, 22, 0.5);
  animation: chatbot-dot 1s infinite ease-in-out;
}

.chatbot-typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.chatbot-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes chatbot-dot {
  0%,
  80%,
  100% {
    transform: scale(0.8);
    opacity: 0.45;
  }
  40% {
    transform: scale(1.15);
    opacity: 1;
  }
}

.chatbot-input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
  padding: 12px 16px;
  border-top: 1px solid rgba(12, 27, 26, 0.08);
  background: #fff;
}

.chatbot-input textarea {
  resize: none;
  min-height: 48px;
  max-height: 120px;
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(42, 32, 22, 0.2);
  padding: 11px 12px;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.45;
  background: #fffdf8;
}

.chatbot-input textarea:focus {
  outline: none;
  border-color: var(--sun);
}

.chatbot-send {
  border: none;
  border-radius: 10px;
  background: var(--sun);
  color: #1f140a;
  font-weight: 700;
  padding: 12px 14px;
  min-width: 86px;
  cursor: pointer;
}

.chatbot-send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.chatbot-meta {
  margin: 0;
  font-size: 0.92rem;
  color: var(--slate);
  max-width: 980px;
}

.chatbot-back {
  margin: 0;
}

.chatbot-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(12, 27, 26, 0.7);
  z-index: 100;
  padding: 20px;
}

.chatbot-modal.is-open {
  display: flex;
}

.chatbot-modal-panel {
  background: #fff;
  width: min(1100px, 100%);
  max-height: 90dvh;
  border-radius: 14px;
  border: 1px solid rgba(12, 27, 26, 0.1);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.chatbot-modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(12, 27, 26, 0.08);
}

.chatbot-modal-close {
  border: 1px solid rgba(12, 27, 26, 0.18);
  background: #fff;
  border-radius: 8px;
  padding: 6px 9px;
  cursor: pointer;
}

.chatbot-modal-content {
  overflow: auto;
  padding: 0;
}

.chatbot-modal-content .data-table {
  width: max-content;
  min-width: 100%;
}

@media (max-width: 900px) {
  .chatbot-shell {
    height: 65vh;
    min-height: 460px;
  }

  .chatbot-header {
    align-items: flex-start;
    gap: 10px;
  }

  .chatbot-title span {
    display: none;
  }

  .chatbot-messages {
    padding: 12px;
    gap: 10px;
  }

  .chat-bubble {
    max-width: 100%;
    font-size: 0.95rem;
  }

  .chat-row.assistant .chat-bubble {
    max-width: calc(100% - 36px);
  }

  .chat-avatar {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
    font-size: 0.72rem;
  }

  .chatbot-input {
    grid-template-columns: 1fr;
    padding: 10px 12px;
  }

  .chatbot-send {
    width: 100%;
  }

  .chatbot-table-scroll {
    max-height: 260px;
  }

  .chatbot-back .button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .chatbot-shell {
    height: 66vh;
    min-height: 440px;
  }

  .chatbot-header {
    padding: 12px;
  }

  .chatbot-title strong {
    font-size: 0.98rem;
  }

  .chatbot-reset {
    padding: 6px 9px;
    font-size: 0.9rem;
  }

  .chat-chip {
    font-size: 0.86rem;
    padding: 6px 9px;
  }
}

.footer {
  padding: 40px 0 60px;
  border-top: 1px solid rgba(12, 27, 26, 0.08);
  background: rgba(255, 255, 255, 0.65);
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.footer-grid > div:first-child {
  order: 3;
  display: flex;
  flex-direction: column;
}

.footer-grid > div:nth-child(2) {
  order: 2;
}

.footer-grid > div:nth-child(3) {
  order: 1;
}

.footer-grid > div:first-child > p {
  order: 2;
  margin: 0;
}

.footer-grid > div:first-child > .brand-footer {
  order: 1;
  margin-bottom: 12px;
}

.footer strong {
  display: block;
  margin-bottom: 12px;
}

.footer p {
  margin: 0;
}

.footer .brand-footer {
  color: #E57200;
  font-size: 1rem;
  letter-spacing: 0.02em;
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero-grid,
  .split,
  .grid-3,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 70px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    inset: 70px 20px auto;
    background: rgba(255, 255, 255, 0.82);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    flex-direction: column;
    gap: 14px;
    display: none;
    align-items: flex-end;
    text-align: right;
  }

  .nav-links.is-open {
    display: flex;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 28px, var(--max-width));
  }

  header .nav {
    position: relative;
    justify-content: center;
  }

  .brand {
    font-size: 1.7rem;
    font-weight: 800;
  }

  .nav-toggle {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
  }

  .nav-toggle::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 2px;
    background: var(--navy);
    box-shadow: 0 6px 0 var(--navy), 0 12px 0 var(--navy);
    border-radius: 2px;
  }

  .nav-links {
    inset: 70px 20px auto 20px;
    align-items: flex-start;
    text-align: left;
  }

  .hero-card img {
    height: auto;
  }
}

@media (max-width: 768px) {
  .embed.embed-full iframe {
    min-height: 80vh;
    height: 88vh;
    border-radius: 10px;
  }
}
