:root {
  color: #17231e;
  background: #f7f4ed;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.55;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  color: #075f4c;
  text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #ef9f32;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  padding: 0.7rem 1rem;
  background: #fff;
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

header,
main,
footer {
  padding: 1.2rem max(1rem, calc((100vw - 72rem) / 2));
}

header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  color: #fff;
  background: #123c32;
}

header a {
  color: inherit;
}

.brand {
  font-weight: 800;
}

nav,
footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.2rem;
}

main {
  min-height: 70vh;
}

h1,
h2 {
  line-height: 1.15;
}

.eyebrow,
.result-meta,
.result-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  color: #52645c;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.filter-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1rem;
  align-items: end;
  margin: 2rem 0;
  padding: 1rem;
  border: 1px solid #c5cec9;
  border-radius: 0.7rem;
  background: #fff;
}

label,
label span {
  display: block;
}

label span {
  margin-bottom: 0.3rem;
  font-weight: 700;
}

input,
select,
button,
.button {
  min-height: 44px;
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid #778981;
  border-radius: 0.35rem;
  font: inherit;
}

button,
.button {
  display: inline-block;
  width: auto;
  color: #fff;
  border-color: #075f4c;
  background: #075f4c;
  cursor: pointer;
  font-weight: 750;
}

.search-results {
  padding: 0;
  list-style: none;
}

.search-results > li {
  margin: 1rem 0;
}

article,
.record-card,
.notice,
.empty-state {
  padding: 1rem 1.2rem;
  border: 1px solid #c5cec9;
  border-radius: 0.7rem;
  background: #fff;
}

article h2 {
  margin: 0.6rem 0;
}

.subtitle {
  color: #52645c;
  font-weight: 650;
}

.notice {
  margin: 1rem 0;
  border-left: 0.4rem solid #ca7a08;
}

.notice.error {
  border-left-color: #a22d28;
}

.record-kind {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  color: #fff;
  background: #52645c;
  font-size: 0.82rem;
  font-weight: 750;
  text-transform: uppercase;
}

.record-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1px;
  overflow-wrap: anywhere;
  background: #d7dfda;
}

.record-fields > div {
  padding: 0.8rem;
  background: #fff;
}

.record-fields dt {
  color: #52645c;
  font-size: 0.82rem;
  font-weight: 750;
  text-transform: uppercase;
}

.record-fields dd {
  margin: 0.25rem 0 0;
}

.record-fields .record-fields {
  margin-top: 0.5rem;
}

.unknown {
  color: #6d5d28;
  font-style: italic;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  align-items: center;
}

.citation {
  background: #fff;
}

details {
  margin: 1rem 0;
  padding: 0.7rem;
  border: 1px solid #d7dfda;
}

summary {
  cursor: pointer;
  font-weight: 700;
}

.pagination {
  margin: 2rem 0;
}

footer {
  align-items: center;
  color: #eaf2ee;
  background: #123c32;
}

footer a {
  color: inherit;
}

@media (forced-colors: active) {
  * {
    forced-color-adjust: auto;
  }
}
