* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f8f7f2;
  color: #1e302b;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.8;
}
a {
  color: inherit;
  text-underline-offset: 5px;
}
button,
input,
select,
textarea {
  font: inherit;
}
:where(a, button, input, select, textarea, summary, [tabindex], [role="button"]):focus {
  outline: none;
}
:root :is(input, select, textarea):focus {
  border-color: #526e5d;
  box-shadow: inset 0 0 0 1px #526e5d;
}
:root :is(button, .button, [role="button"]):focus-visible {
  outline: 2px solid #526e5d;
  outline-offset: 2px;
  text-decoration: none;
}
:root a:focus-visible,
:root summary:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}
:root input:is([type="checkbox"], [type="radio"]):focus-visible {
  outline: 2px solid #526e5d;
  outline-offset: 2px;
  box-shadow: none;
}
.skip {
  position: absolute;
  top: -100px;
}
.skip:focus {
  top: 0;
  background: white;
  z-index: 5;
}
.edition {
  background: #193d33;
  color: #f0f1df;
  padding: 9px max(5vw, calc((100vw - 1200px) / 2));
  font-size: 12px;
  letter-spacing: 2px;
  display: flex;
  justify-content: space-between;
}
header,
main,
footer {
  max-width: 1200px;
  margin: auto;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #cdd4c9;
  padding: 28px 0;
}
.brand {
  font-size: 22px;
  font-weight: 650;
  text-decoration: none;
  line-height: 1.3;
}
.brand span {
  display: block;
  font-family: serif;
  font-size: 30px;
  letter-spacing: 3px;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 3px;
  font-weight: 400;
  margin-top: 9px;
}
nav {
  display: flex;
  gap: 32px;
}
nav a {
  text-decoration: none;
  font-size: 14px;
  padding: 14px 0;
  border-bottom: 2px solid transparent;
}
nav a.active {
  border-color: #204b3c;
  color: #204b3c;
}
main {
  min-height: 60vh;
  padding: 44px 0 64px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.5;
}
h1 {
  font-family: serif;
  font-size: 48px;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 20px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  color: #6e796b;
  font-weight: 600;
}
.hero {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 64px;
  margin: 12px 0 40px;
  align-items: center;
}
.hero p {
  color: #647266;
  font-size: 15px;
  max-width: 620px;
}
.side-note {
  padding: 22px 28px;
  background: #e9ede3;
  border-left: 3px solid #5e7963;
  font-size: 14px;
}
.side-note p {
  margin: 12px 0;
  color: #435a4b;
}
.toolbar {
  border-top: 1px solid #bec8ba;
  border-bottom: 1px solid #cdd4c9;
  padding: 20px 0;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.search {
  flex: 1;
  display: flex;
  gap: 8px;
  min-width: 220px;
}
input,
select,
textarea {
  border: 1px solid #bec8ba;
  border-radius: 4px;
  background: #fffefa;
  color: #243b30;
  padding: 10px 12px;
  max-width: 100%;
}
.search input {
  width: 100%;
  min-width: 0;
}
select:not([multiple]):not([size]),
select[size="1"] {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23445e50' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
}
button,
.button {
  border: 1px solid #234f3e;
  background: #234f3e;
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}
button.secondary,
.button.secondary {
  background: transparent;
  color: #234f3e;
  border-color: #c2cbbc;
}
.filter {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.results-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #738071;
  font-size: 12px;
  margin: 20px 0;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.card {
  background: #fffefa;
  border: 1px solid #dfe2d7;
  border-radius: 5px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 330px;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: #8a9f8a;
}
.card h2 {
  font-size: 21px;
  font-family: serif;
  margin: 19px 0 16px;
}
.card h2 a {
  text-decoration: none;
}
.card p {
  color: #697264;
  font-size: 14px;
}
.card .label {
  font-size: 11px;
  letter-spacing: 1px;
  color: #5b6f5e;
}
.card .bottom {
  border-top: 1px solid #e4e6dd;
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: #657262;
}
.tag {
  display: inline-block;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 3px;
  background: #edf0e6;
  color: #50674d;
  margin-right: 7px;
}
.tag.lead {
  background: #f7edda;
  color: #826031;
}
.muted {
  color: #74806e;
  font-size: 13px;
}
.empty {
  padding: 60px 20px;
  text-align: center;
  border: 1px dashed #aebca5;
  border-radius: 8px;
}
.detail {
  max-width: 820px;
  margin: auto;
}
.back {
  font-size: 13px;
  color: #61715e;
}
.detail h1 {
  font-size: 38px;
  margin: 28px 0 20px;
}
.intro {
  font-size: 18px;
  color: #5b6c59;
}
.factbox {
  padding: 22px 28px;
  background: #e9ede3;
  border-left: 3px solid #68825c;
  margin: 30px 0;
}
.factbox p {
  margin: 8px 0;
}
.body-copy {
  font-size: 16px;
  white-space: pre-line;
  line-height: 2.05;
}
.source-box {
  border-top: 1px solid #c8d1c2;
  padding: 25px 0;
  margin: 30px 0;
}
.source-box a {
  overflow-wrap: anywhere;
}
.detail .button {
  margin: 12px 0;
}
footer {
  border-top: 1px solid #c5cebf;
  padding: 32px 0 44px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #64745f;
}
footer p {
  margin: 10px 0;
}
footer strong {
  color: #284a35;
}
#notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #214936;
  color: white;
  border-radius: 4px;
  padding: 10px 24px;
  display: none;
}
.editor-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
}
.editor-list button {
  display: block;
  width: 100%;
  text-align: left;
  white-space: normal;
  margin-bottom: 12px;
  background: #fffefa;
  color: #243c30;
  border-color: #cbd5c4;
}
.editor-form label {
  display: block;
  margin: 16px 0 4px;
  font-size: 14px;
}
.editor-form input,
.editor-form textarea,
.editor-form select {
  width: 100%;
}
.editor-form textarea {
  min-height: 100px;
}
.editor-form .large {
  min-height: 320px;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.error {
  color: #962e23;
  padding: 12px;
  background: #faeee4;
  white-space: pre-line;
}
.status {
  padding: 16px;
  background: #edf0e6;
}
#preview {
  margin: 25px 0;
  padding: 24px;
  border: 1px solid #c5cfbb;
  white-space: pre-wrap;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
@media (max-width: 1260px) {
  header,
  main,
  footer {
    margin-left: 5vw;
    margin-right: 5vw;
  }
}
@media (max-width: 760px) {
  .edition {
    font-size: 10px;
    letter-spacing: 0;
    padding: 8px 5vw;
  }
  header {
    display: block;
    padding: 22px 0 0;
  }
  .brand {
    font-size: 17px;
  }
  .brand span {
    display: inline;
    font-size: 22px;
    letter-spacing: 1px;
  }
  .brand small {
    font-size: 8px;
  }
  nav {
    gap: 0;
    justify-content: space-between;
    margin-top: 15px;
  }
  nav a {
    font-size: 13px;
  }
  main {
    padding-top: 26px;
  }
  .hero {
    display: block;
    margin-top: 0;
  }
  .hero h1 {
    font-size: 34px;
  }
  .side-note {
    padding: 16px 20px;
    margin-top: 25px;
  }
  .side-note p {
    margin: 6px 0;
  }
  .toolbar {
    gap: 10px;
  }
  .search {
    flex-basis: 100%;
  }
  .filter select {
    max-width: 160px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .card {
    min-height: 260px;
    padding: 25px;
  }
  .card h2 {
    font-size: 23px;
  }
  .detail h1 {
    font-size: 30px;
  }
  .intro {
    font-size: 16px;
  }
  .factbox {
    padding: 18px;
  }
  .editor-layout {
    grid-template-columns: 1fr;
  }
  .editor-list {
    max-height: 220px;
    overflow: auto;
  }
  footer {
    display: block;
  }
  footer > div + div {
    margin-top: 24px;
  }
  .results-meta {
    align-items: flex-start;
    gap: 20px;
  }
  h1 {
    font-size: 32px;
  }
}
@media (max-width: 760px) {
  .hero {
    margin-bottom: 24px;
  }
  .hero h1 {
    font-size: 30px;
    line-height: 1.35;
  }
  .hero .eyebrow {
    display: none;
  }
  .hero p {
    font-size: 14px;
  }
  .hero .side-note {
    display: none;
  }
}

.card {
  text-decoration: none;
  cursor: pointer;
}
:root .card:focus-visible {
  border-color: #526e5d;
  box-shadow: inset 0 0 0 1px #526e5d;
  text-decoration: none;
}
.card .bottom {
  flex-wrap: wrap;
}
.detail-link {
  color: #234f3e;
  font-weight: 600;
}
.detail-intro-label {
  font-size: 13px;
  color: #60735e;
  border-bottom: 1px solid #d8dece;
  padding-bottom: 12px;
}
.reading-section h2 {
  font-family: serif;
  font-size: 23px;
  margin: 30px 0 12px;
}
.reading-section p {
  white-space: pre-line;
  margin-bottom: 24px;
}
[hidden] {
  display: none !important;
}
