:root {
  font:
    16px/1.55 Inter,
    system-ui,
    sans-serif;
  color: #17392f;
  background: #f4f6f2;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
header {
  background: #fff;
  border-bottom: 1px solid #d2ded7;
  min-height: 66px;
  padding: 12px clamp(18px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.logo {
  font-weight: 750;
  font-size: 26px;
  letter-spacing: -1px;
}
.logo span {
  color: #367959;
  font-size: 32px;
  vertical-align: -2px;
}
#account {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #446254;
  font-size: 0.9rem;
}
button {
  cursor: pointer;
  border: 1px solid #aabfb2;
  border-radius: 8px;
  padding: 8px 15px;
  background: white;
  color: #204d3e;
  font-weight: 600;
}
button:hover {
  background: #e9f1eb;
}
button:focus-visible,
a:focus-visible,
:is(input, textarea, select):focus-visible {
  outline: 3px solid #167795;
  outline-offset: 2px;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
.primary {
  background: #226349;
  color: white;
  border-color: #226349;
}
.primary:hover {
  background: #184935;
}
main {
  max-width: 1510px;
  margin: auto;
}
.layout {
  display: grid;
  grid-template-columns: minmax(200px, 245px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 50px);
  padding: 32px clamp(18px, 4vw, 64px);
}
nav h2,
.eyebrow {
  font-size: 0.83rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #506e5e;
  margin: 0 0 14px;
}
nav button {
  text-align: left;
  display: block;
  width: 100%;
  margin: 4px 0;
  padding: 11px 12px;
  line-height: 1.32;
  border: 1px solid transparent;
  background: transparent;
}
nav button[aria-current="true"] {
  background: #e2eee6;
  border-color: #b2cbb8;
}
nav button small {
  display: block;
  font-weight: 450;
  color: #476759;
  margin: 4px 0 0;
}
h1 {
  font-size: clamp(1.85rem, 3.2vw, 2.7rem);
  letter-spacing: -0.045em;
  line-height: 1.13;
  margin: 0 0 8px;
}
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 12px;
}
h2 {
  font-size: 1.32rem;
}
h3 {
  font-size: 1.02rem;
}
p {
  margin: 6px 0 12px;
}
.muted,
small {
  color: #496455;
}
.surface,
.evidence article {
  background: #fff;
  border: 1px solid #d3dfd5;
  border-radius: 12px;
  padding: clamp(14px, 2vw, 24px);
  margin: 16px 0;
}
.evidence {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.evidence article {
  margin: 0;
  font-size: 0.92rem;
  padding: 14px;
}
.evidence p {
  overflow-wrap: anywhere;
}
.source {
  margin-bottom: 12px;
}
.source:last-child {
  margin-bottom: 0;
}
.bar,
.controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.controls {
  justify-content: flex-start;
}
.pill {
  background: #e8f1e9;
  color: #305940;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 650;
}
.formgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.full {
  grid-column: 1/-1;
}
label {
  display: block;
  font-weight: 600;
}
input,
textarea,
select {
  padding: 9px;
  border: 1px solid #a8bfaf;
  border-radius: 7px;
  background: #fff;
  color: inherit;
  width: 100%;
  margin: 4px 0 0;
}
textarea {
  resize: vertical;
}
select {
  width: auto;
}
.evidence select {
  font-size: 0.85rem;
  width: 100%;
}
label select {
  font-weight: normal;
}
a {
  color: #176246;
}
details {
  margin: 10px 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
}
.callout {
  padding: 12px 15px;
  background: #edf3ee;
  border-left: 3px solid #69937c;
  margin: 10px 0;
}
.warn {
  border-color: #a86d27;
  background: #fff5e2;
}
#notice:not(:empty) {
  position: fixed;
  z-index: 2;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: #17392f;
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  max-width: min(92vw, 700px);
}
.entry {
  max-width: 650px;
  margin: 10vh auto;
  padding: 30px;
  background: white;
  border-radius: 12px;
  border: 1px solid #d3dfd5;
}
.entries {
  padding-left: 1.2rem;
}
.entries li {
  margin: 6px 0;
}
.review {
  margin: 14px 0;
}
.error {
  color: #8a3724;
}
.diff {
  white-space: pre-wrap;
  border: 1px solid #d1b39c;
  padding: 10px;
}
.saved {
  margin-left: auto;
  font-size: 0.9rem;
  color: #496455;
}
@media (max-width: 870px) {
  .evidence {
    grid-template-columns: 1fr;
  }
  .layout {
    grid-template-columns: 185px 1fr;
  }
}
@media (max-width: 680px) {
  .layout {
    display: block;
    padding: 15px;
  }
  nav {
    margin-bottom: 20px;
  }
  nav button {
    display: inline-block;
    width: auto;
    margin: 2px;
    padding: 6px 9px;
  }
  nav button small {
    display: none;
  }
  .formgrid {
    grid-template-columns: 1fr;
  }
  .entry {
    margin: 30px 15px;
  }
  header {
    padding: 10px 15px;
  }
  #account {
    flex-wrap: wrap;
    justify-content: end;
    font-size: 0.78rem;
  }
}
.tick {
  width: auto;
  margin: 0 0.4rem 0 0;
}
.surface label:has(.tick) {
  margin: 10px 0 14px;
}
.formgrid .callout {
  margin: 0;
}
.entry {
  width: min(480px, calc(100% - 32px));
  margin: clamp(28px, 9vh, 90px) auto;
  padding: clamp(22px, 4vw, 36px);
}
.entry h1 { font-size: clamp(1.85rem, 3vw, 2.25rem); }
.entry-intro { margin: 14px 0 22px; overflow-wrap: anywhere; }
.entry form input { padding: 11px 12px; }
.entry input[aria-invalid="true"] { border-color: #954532; }
.entry input[name="code"] { font-variant-numeric: tabular-nums; letter-spacing: .14em; }
.entry-help, .entry-status, .entry-footer { font-size: .92rem; color: #496455; }
.entry-help { margin: 6px 0 18px; }
.entry form .primary { width: 100%; padding: 11px 16px; }
.entry-status:not(:empty) { margin-top: 12px; }
.entry .error:empty { margin: 0; }
.entry-footer, .entry-links {
  margin-top: 24px;
  border-top: 1px solid #d3dfd5;
  padding-top: 12px;
}
.entry-links { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.text-button { background: transparent; border: 0; text-decoration: underline; text-underline-offset: 3px; padding: 8px 2px; }
.text-button:disabled { text-decoration: none; opacity: .8; }

.publisher-picker { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 18px; }
.publisher-picker button { padding: 5px 12px; font-size: .92rem; }
.publisher-picker [aria-pressed="true"] { background: #225d45; border-color: #225d45; color: #fff; }
.contacts h3 { margin: 10px 0 4px; }
.contact-email { font-size: 1.12rem; font-weight: 650; overflow-wrap: anywhere; }
.recipient-note { color: #496455; font-size: .92rem; }
.recipient-note p { margin: 0; }
.recipient-note button { margin-top: 6px; overflow-wrap: anywhere; }

.replacement { max-width: 75ch; line-height: 1.65; overflow-wrap: anywhere; }
.replacement h1 { font-size: 1.5rem; }
.replacement h2 { margin-top: 1.6em; }
.replacement table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.replacement :is(th, td) { border-bottom: 1px solid #cad8cf; padding: .55em; text-align: start; vertical-align: top; }
.replacement th { background: #eef4ef; }
#pageContent { min-width: 0; }
