:root {
  color-scheme: light;
  --bg: #f3f5f1;
  --ink: #263a31;
  --muted: #68776c;
  --line: #dfe5db;
  --action: #225d46;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #946c30;
  outline-offset: 2px;
}
a {
  color: var(--action);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
header,
.topline,
.toolbar,
.domains,
.result-line,
main,
.preview-note {
  margin: auto;
  max-width: 1800px;
  padding-left: 16px;
  padding-right: 16px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 7px;
}
.identity {
  display: flex;
  gap: 8px;
  align-items: center;
}
h1 {
  font-size: 19px;
  font-weight: 600;
}
.mark {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  background: var(--action);
  color: white;
  border-radius: 5px;
  font-size: 19px;
}
.badge,
.reference {
  font-size: 11px;
  color: var(--muted);
}
.badge {
  border: 1px solid var(--line);
  padding: 0 5px;
  border-radius: 3px;
}
.topline {
  font-size: 10px;
  color: var(--muted);
  position: absolute;
  top: 17px;
  right: 170px;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.views {
  display: flex;
  gap: 12px;
}
.views button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  padding: 5px 0;
  color: var(--muted);
  font-size: 12px;
}
.views button[aria-pressed="true"] {
  color: var(--action);
  border-color: var(--action);
  font-weight: 600;
}
.views span {
  font-size: 10px;
}
.filters {
  display: flex;
  gap: 6px;
}
input,
select {
  padding: 4px 7px;
  border: 1px solid #d7dfd2;
  border-radius: 4px;
  background: white;
  font-size: 11px;
  color: var(--ink);
}
input {
  width: 220px;
}
.domains {
  display: flex;
  gap: 15px;
  padding-top: 7px;
}
.domains button {
  padding: 0;
  border: 0;
  background: none;
  font-size: 11px;
  color: var(--muted);
}
.domains button[aria-pressed="true"] {
  color: var(--action);
  font-weight: 600;
}
.result-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
  padding-top: 5px;
  padding-bottom: 7px;
}
.result-line button {
  border: 0;
  background: none;
  font-size: 10px;
  color: var(--action);
}
main {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}
.column {
  min-width: 0;
}
.column-heading {
  margin: 0 2px 7px;
}
.column-heading h2 {
  font-size: 12px;
  font-weight: 600;
}
.column-heading p {
  display: none;
}
.card {
  padding: 8px 11px 3px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 9px;
  min-width: 0;
}
.card h3 {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  padding-bottom: 5px;
  border-bottom: 1px solid #e7ece3;
}
.entry {
  position: relative;
}
.entry + .entry {
  border-top: 1px solid #edf0ea;
}
.entry > details > summary {
  list-style: none;
  cursor: pointer;
  padding: 6px 24px 6px 0;
  min-height: 44px;
}
.entry > details > summary::-webkit-details-marker {
  display: none;
}
.title-line {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.title-line strong {
  font-size: 13px;
  line-height: 17px;
  font-weight: 550;
}
.kind {
  display: none;
}
.summary {
  display: block;
  font-size: 11px;
  line-height: 16px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.entry-source {
  position: absolute;
  right: 0;
  top: 8px;
  font-size: 13px;
  padding: 0 1px;
}
.entry > details[open] > summary {
  color: var(--action);
}
.entry > details[open] > summary .summary {
  white-space: normal;
}
.detail {
  font-size: 12px;
  line-height: 1.8;
  background: #edf3e9;
  border: 1px solid #d6e2d0;
  border-left: 3px solid #789b72;
  border-radius: 4px;
  padding: 10px 11px;
  max-height: min(340px, 55dvh);
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  margin-bottom: 7px;
}
.detail h4 {
  font-size: 11px;
  margin: 10px 0 3px;
  color: #34543d;
}
.detail p {
  margin-bottom: 7px;
}
.source {
  font-size: 11px;
}
.date,
.boundary,
.pending {
  font-size: 11px;
  color: var(--muted);
}
.date {
  display: block;
}
.related {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.related button {
  font-size: 11px;
  background: #f8faf6;
  border: 1px solid #cbd9c6;
  border-radius: 3px;
  color: var(--action);
  padding: 1px 5px;
}
.topic-option {
  padding: 5px 0;
  border-top: 1px solid #d2dfcc;
}
.topic-option button {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  color: var(--action);
  font-size: 11px;
}
.list-view,
.topic-view {
  grid-template-columns: 1fr;
}
.list-view .card {
  margin: 0;
}
.list-view .summary {
  white-space: normal;
}
.list-view .detail {
  max-width: 900px;
}
.topic-card {
  max-width: 900px;
  padding: 12px;
}
.topic-card h3 {
  font-size: 14px;
  color: var(--ink);
}
.topic-card p {
  font-size: 12px;
  margin-top: 8px;
}
.topic-card button {
  border: 0;
  background: none;
  padding: 7px 0;
  color: var(--action);
  font-size: 12px;
}
.empty {
  grid-column: 1/-1;
  padding: 35px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed #ccd6c6;
}
.empty strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}
.preview-note {
  font-size: 10px;
  color: var(--muted);
  padding-top: 12px;
  padding-bottom: 15px;
}
.skip {
  position: fixed;
  top: -70px;
  left: 10px;
  background: var(--action);
  color: white;
  padding: 6px;
  z-index: 5;
}
.skip:focus {
  top: 0;
}
html {
  scrollbar-gutter: stable;
}
@media (max-width: 1050px) {
  main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .topline {
    position: static;
    padding-bottom: 5px;
  }
  .domains {
    gap: 11px;
    flex-wrap: wrap;
  }
}
@media (max-width: 600px) {
  header,
  .topline,
  .toolbar,
  .domains,
  .result-line,
  main,
  .preview-note {
    padding-left: 12px;
    padding-right: 12px;
  }
  .reference {
    display: none;
  }
  .toolbar {
    flex-wrap: wrap;
    gap: 6px;
  }
  .filters {
    width: 100%;
  }
  input {
    flex: 1;
    min-width: 0;
  }
  main {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .domains {
    gap: 5px 12px;
  }
  .card {
    padding: 8px 11px 3px;
  }
  .title-line strong {
    font-size: 14px;
  }
  .summary {
    font-size: 12px;
    line-height: 18px;
  }
  .entry > details > summary {
    padding: 7px 26px 7px 0;
    min-height: 48px;
  }
  .detail {
    max-height: min(300px, 48dvh);
  }
  .column-heading h2 {
    font-size: 13px;
  }
}
