:root {
  color-scheme: light;
  --ink: #14241e;
  --quiet: #465c53;
  --green: #195c43;
  --green-dark: #104632;
  --paper: #f5f7f5;
  --line: #d4ded7;
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; }
p { margin: 0; }
.wrap { width: min(100% - 96px, 1240px); margin-inline: auto; }
.header { border-bottom: 1px solid var(--line); }
.bar, .footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.bar { min-height: 80px; }
.brand { display: inline-flex; align-items: center; gap: 0; font-size: 1.72rem; line-height: 1; font-weight: 760; letter-spacing: -.07em; text-decoration: none; white-space: nowrap; }
.brand > span:last-child { color: var(--green); }
.mark { display: grid; place-items: center; width: 34px; height: 34px; margin-right: 9px; border-radius: 9px; background: var(--green); color: #effaf1; font-size: 1.22rem; letter-spacing: 0; }
nav, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
nav a { font-size: .95rem; text-decoration: none; font-weight: 650; }
.nav-example:hover, .subtle:hover { color: var(--green-dark); text-decoration-thickness: 2px; }
.button { display: inline-flex; border: 1px solid transparent; border-radius: 9px; min-height: 52px; align-items: center; justify-content: center; padding: 12px 19px; background: var(--green); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--green-dark); }
.button:disabled { opacity: .7; cursor: wait; }
.button.small { min-height: 43px; padding: 8px 15px; font-size: .95rem; }
.button.light { background: #e5efe7; color: var(--green-dark); border-color: #cfdfd3; }
.button.light:hover { background: #d8e9dc; }
.subtle { text-underline-offset: 4px; color: var(--green); font-weight: 700; }
:focus-visible { outline: 3px solid #ae6419; outline-offset: 4px; }
.skip { position: absolute; left: 10px; top: 10px; z-index: 2; transform: translateY(-150%); padding: 10px; background: #fff; }
.skip:focus { transform: none; }
.hero { display: grid; grid-template-columns: 1fr 1.02fr; align-items: center; gap: clamp(25px, 4.4vw, 68px); padding-block: 58px 64px; }
.eyebrow { color: var(--green); font-weight: 750; font-size: .93rem; margin-bottom: 18px; }
h1, h2 { margin: 0; letter-spacing: -.062em; line-height: 1.02; font-weight: 750; }
h1 { font-size: clamp(2.65rem, 5.2vw, 5.15rem); text-wrap: pretty; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.23rem); line-height: 1.55; color: var(--quiet); margin-top: 23px; max-width: 39ch; }
.actions { margin-top: 25px; gap: 16px 21px; }
.pricing { margin-top: 14px; color: var(--quiet); font-size: .9rem; line-height: 1.5; max-width: 52ch; }
.showcase { position: relative; display: grid; align-items: end; overflow: hidden; isolation: isolate; min-height: 530px; border-radius: 22px; padding: 120px 24px 24px; background: #23413b; scroll-margin-top: 20px; }
.showcase-photo { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.notice { background: #fff; border: 1px solid #dbe5df; border-radius: 15px; padding: 22px; box-shadow: 0 12px 35px #0b18194d; }
.notice-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; color: var(--green); font-size: .88rem; font-weight: 720; }
.notice-head span { color: #634c2f; background: #f4ece0; border-radius: 6px; padding: 5px 8px; }
.notice h2 { font-size: clamp(1.45rem, 2.55vw, 2.15rem); letter-spacing: -.05em; }
.notice-desc { color: var(--quiet); margin-top: 8px; line-height: 1.45; }
dl { display: grid; grid-template-columns: 1.25fr .8fr 1fr; gap: 12px; margin: 16px 0; padding-top: 13px; border-top: 1px solid var(--line); }
dt { color: var(--quiet); font-size: .875rem; }
dd { margin: 4px 0 0; font-weight: 680; font-size: .93rem; }
.match { background: #edf5ed; color: #214e3d; padding: 11px 13px; border-left: 3px solid #679b7d; border-radius: 5px; font-size: .92rem; line-height: 1.45; margin-bottom: 14px; }
.match p { margin-top: 3px; }
.notice > a { font-size: .93rem; }
.pilot-section { background: #e9f0ea; border-block: 1px solid #dae5dc; scroll-margin-top: 0; }
.pilot-grid { display: grid; grid-template-columns: .68fr 1fr; align-items: start; gap: clamp(30px, 8vw, 116px); padding-block: 64px; }
.pilot-intro h2 { font-size: clamp(2.5rem, 4.2vw, 4rem); }
.pilot-intro p { color: var(--quiet); line-height: 1.6; margin-top: 17px; max-width: 44ch; }
.pilot-intro .trial { border-top: 1px solid #c8d8cb; margin-top: 23px; padding-top: 19px; }
.trial strong { color: var(--ink); }
form { background: #fff; border: 1px solid #d3ded5; border-radius: 16px; padding: clamp(18px, 3vw, 30px); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.fields > div { min-width: 0; }
label, legend { font-weight: 680; }
input:not([type=checkbox]) { margin-top: 7px; width: 100%; min-height: 47px; border: 1px solid #8b9e93; border-radius: 7px; padding: 9px 10px; font: inherit; color: inherit; }
fieldset { border: 0; margin: 20px 0 19px; padding: 0; min-inline-size: 0; }
legend { padding: 0; }
.hint, .form-note { color: var(--quiet); font-size: .89rem; line-height: 1.5; }
.hint { margin: 5px 0 9px; }
.counties { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 7px; }
.counties label { display: flex; align-items: center; gap: 7px; min-height: 37px; font-size: .91rem; font-weight: 530; cursor: pointer; }
.counties input { flex: none; width: 17px; height: 17px; margin: 0; accent-color: var(--green); }
form .button { width: 100%; }
.form-note { margin-top: 10px; }
.feedback:not(:empty), .error:not([hidden]) { margin-top: 11px; line-height: 1.45; font-weight: 650; }
.error, .feedback[data-error] { color: #a22d24; }
.feedback[data-success] { color: var(--green-dark); }
.footer { min-height: 90px; }
.footer p { font-size: .94rem; color: var(--quiet); }
@media (max-width: 1000px) {
  .wrap { width: min(100% - 48px, 1240px); }
  .hero { gap: 25px; }
  .showcase { padding: 108px 16px 16px; min-height: 470px; }
  .notice { padding: 16px; }
  .pilot-grid { gap: 30px; }
}
@media (max-width: 760px) {
  .hero, .pilot-grid { grid-template-columns: 1fr; padding-block: 34px; }
  .hero { gap: 29px; }
  h1 { max-width: 15ch; font-size: clamp(2.6rem, 8.4vw, 4.1rem); }
  .bar { min-height: 66px; }
  .showcase { min-height: 0; }
  .nav-example { display: none; }
}
@media (max-width: 440px) {
  .wrap { width: calc(100% - 32px); }
  .showcase { padding: 90px 11px 11px; border-radius: 15px; }
  .notice { padding: 14px; }
  .fields, .counties { grid-template-columns: 1fr 1fr; }
  .fields { grid-template-columns: 1fr; }
  .footer { align-items: start; flex-direction: column; justify-content: center; padding-block: 20px; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.example-page h1 {
  font-size: clamp(2.65rem, 5vw, 4.5rem);
}
.example-page .lead {
  max-width: 43ch;
}

[hidden] { display: none !important; }
.directory-hero { min-height: 460px; }
.directory-hero h1 { max-width: 10ch; }
.directory-panel { padding: clamp(22px, 4vw, 46px); border-radius: 20px; background: #e2eee5; border: 1px solid #cdded2; }
.directory-panel h2 { font-size: clamp(1.55rem, 3vw, 2.5rem); letter-spacing: -.045em; }
.quick-groups { list-style: none; padding: 0; margin: 19px 0; }
.quick-groups li + li { border-top: 1px solid #c6d9cc; }
.quick-groups a { display: flex; align-items: center; gap: 13px; padding: 12px 0; min-height: 47px; font-weight: 690; text-decoration: none; }
.quick-groups a:hover { text-decoration: underline; text-underline-offset: 4px; }
.quick-groups span, .item-code, .code-kicker { font-family: "SFMono-Regular", Consolas, monospace; font-variant-numeric: tabular-nums; color: var(--green-dark); }
.quick-groups span { border-radius: 6px; background: #f6faf7; padding: 5px 7px; }
.directory-size { margin-top: 13px; font-size: .9rem; color: var(--quiet); }
.catalog-search { background: transparent; border: 0; border-radius: 0; padding: 0; margin-top: 23px; max-width: 720px; }
.catalog-search label { display: block; margin-bottom: 8px; }
.search-line { display: flex; align-items: stretch; gap: 9px; }
.search-line input:not([type=checkbox]) { flex: 1; min-width: 0; margin-top: 0; background: #fff; }
.search-line .button { flex: 0 0 auto; width: auto; }
.catalog-top { padding-top: clamp(23px, 5vw, 55px); padding-bottom: 32px; }
.catalog-top h1 { font-size: clamp(2.55rem, 5.5vw, 4.7rem); overflow-wrap: anywhere; }
.catalog-lead { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--quiet); line-height: 1.55; max-width: 64ch; margin-top: 16px; }
.breadcrumbs { display: block; margin-bottom: clamp(18px, 3vw, 32px); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 10px; list-style: none; margin: 0; padding: 0; font-size: .9rem; color: var(--quiet); }
.breadcrumbs li:not(:first-child)::before { content: "/"; margin-right: 10px; color: var(--quiet); }
.breadcrumbs a { text-decoration: underline; text-underline-offset: 3px; }
.catalog-section { padding: 22px 0 34px; scroll-margin-top: 14px; }
.catalog-section h2, .catalog-results h2 { font-size: clamp(1.55rem, 3.5vw, 2.5rem); letter-spacing: -.045em; margin-bottom: 12px; }
.section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 24px; margin-bottom: 18px; }
.section-heading p, .catalog-note, .catalog-help p, #cpv-status { color: var(--quiet); line-height: 1.55; }
.catalog-note, .catalog-help p { margin-top: 13px; }
.catalog-help p { max-width: 75ch; }
.source-links { display: flex; flex-wrap: wrap; gap: 11px 19px; }
.source-links a { color: var(--green); text-underline-offset: 4px; }
.code-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; list-style: none; margin: 0; padding: 0; }
.code-list a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; height: 100%; min-height: 48px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-decoration: none; }
.code-list a:hover { border-color: var(--green); background: #edf5ed; text-decoration: underline; text-underline-offset: 4px; }
.item-code { font-size: .86rem; font-weight: 650; white-space: nowrap; }
.code-kicker { display: inline-block; padding: 7px 10px; margin-bottom: 13px; border-radius: 7px; background: #e5efe7; font-weight: 700; }
.code-top h1 { max-width: 27ch; }
.catalog-results { padding-top: 29px; }
#cpv-status { margin-bottom: 14px; }
#cpv-more { margin-top: 14px; }
.section-links { margin-top: 22px; gap: 8px; }
.section-links a { padding: 8px 12px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.profile-field { margin-top: 15px; }
.profile-field textarea { display: block; width: 100%; color: inherit; font: inherit; padding: 9px 10px; border: 1px solid #8b9e93; border-radius: 7px; margin-top: 7px; resize: vertical; }
.profile-field label .hint { font-weight: 450; }
.county-all { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 3px 0; }
.county-all input { flex: none; width: 17px; height: 17px; margin: 0; accent-color: var(--green); }
@media (max-width: 760px) {
  .directory-hero { min-height: 0; }
  .code-list { grid-template-columns: 1fr; }
}
@media (max-width: 440px) {
  .bar nav { gap: 10px; }
  .bar .button.small { padding-inline: 9px; }
  .bar .brand { font-size: 1.4rem; }
  .bar .mark { width: 26px; height: 26px; margin-right: 6px; }
}

.admin-page {
  padding-block: 2rem 4rem;
}

.admin-page h1 {
  font-size: clamp(1.75rem, 5vw, 3rem);
}

.admin-page form {
  margin-block: .75rem;
}

.admin-page label {
  display: block;
}

.admin-page input {
  display: block;
  margin-block: .5rem;
  max-width: 100%;
}

.admin-list {
  list-style: none;
  padding: 0;
}

.admin-card {
  border: 1px solid currentColor;
  border-radius: .75rem;
  margin-block: 1rem;
  overflow-wrap: anywhere;
  padding: 1rem;
}

.admin-card dd {
  margin: 0 0 .5rem;
}

.admin-card dt {
  font-weight: 700;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.mcp-setup {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.mcp-panel {
  min-width: 0;
  padding: clamp(1rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.mcp-panel h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
.mcp-panel p { margin-top: .85rem; line-height: 1.55; }
.mcp-panel a { color: var(--green); }
.mcp-endpoint, .mcp-panel pre {
  padding: .85rem;
  border-radius: 8px;
  background: var(--paper);
}

.mcp-endpoint { overflow-wrap: anywhere; }
.mcp-panel pre { overflow: auto; }
.mcp-prompts { padding-inline-start: 1.25rem; line-height: 1.6; }
.mcp-prompts li + li { margin-top: .4rem; }

.code-search-tip { max-width: 68ch; line-height: 1.55; }
.code-search-tip a, .code-choices a { color: var(--green); text-underline-offset: 3px; }
.code-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  max-width: 74rem;
  gap: .75rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.code-choices li {
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.code-choices a { font-weight: 700; }
.code-choices p { margin-top: .35rem; }

.supplement-group + .supplement-group { margin-top: 1.5rem; }
.supplement-group h3 { margin: 0 0 .7rem; }
.code-guide a { color: var(--green); text-underline-offset: 3px; }
