* {
  box-sizing:border-box;
}
body {
  margin:0;
  background:#f6f5ef;
  color:#172f29;
  font:16px/1.4 system-ui,sans-serif;
}
header,main {
  width:min(100% - 56px,1140px);
  margin:auto;
}
header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:15px 0;
  border-bottom:1px solid #c9d1c8;
}
a {
  color:#155d4c;
  text-underline-offset:3px;
}
.brand {
  font:bold 20px Georgia,serif;
  color:#173b31;
  text-decoration:none;
}
nav {
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  margin:15px 0 20px;
}
nav a {
  padding:6px 13px;
  border-radius:18px;
  color:#41564c;
  text-decoration:none;
  font-size:14px;
}
nav a[aria-current=page] {
  background:#244c40;
  color:white;
}
nav a:hover {
  box-shadow:inset 0 0 0 1px #688679;
}
h1,h2,h3,p {
  margin:0;
}
h1 {
  font:600 clamp(29px,3.5vw,45px)/1.07 Georgia,serif;
  letter-spacing:-.035em;
  margin-bottom:8px;
}
h2 {
  font:600 24px/1.15 Georgia,serif;
  margin-bottom:12px;
}
h3 {
  font-size:17px;
  margin-bottom:4px;
}
.context,.muted {
  color:#506359;
}
.context {
  margin-bottom:18px;
}
.grid {
  display:grid;
  grid-template-columns:1.15fr 1fr;
  gap:15px;
}
.panel,.next {
  border:1px solid #cbd4c9;
  border-radius:10px;
  background:#fffefa;
  padding:18px 21px;
}
.row+.row {
  border-top:1px solid #dfe4dc;
  margin-top:10px;
  padding-top:10px;
}
.row p,.panel blockquote {
  margin:4px 0;
}
.next {
  margin:14px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  background:#e8efe7;
}
.next p {
  max-width:650px;
}
.primary,button {
  font:inherit;
  cursor:pointer;
  border:1px solid #8ba398;
  background:white;
  border-radius:6px;
  padding:8px 13px;
  color:#234c3e;
}
.primary {
  background:#175847;
  color:white;
  border-color:#175847;
  font-weight:650;
}
.next button {
  flex-shrink:0;
}
button:disabled {
  opacity:.6;
}
a:focus-visible,button:focus-visible,summary:focus-visible {
  outline:3px solid #548a76;
  outline-offset:3px;
}
.actions {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:12px;
}
.tag {
  display:inline-block;
  font-size:13px;
  font-weight:700;
  padding:2px 9px;
  border-radius:12px;
  background:#e5eee6;
  color:#245441;
  margin-left:9px;
}
.excluded {
  color:#883d2c;
  background:#f8e7db;
}
.source {
  font-size:14px;
}
.panel blockquote {
  padding:10px 13px;
  background:#f3f2e9;
  border-left:3px solid #b78f40;
  font:21px/1.4 Georgia,serif;
}
mark {
  background:#f6dea1;
  padding:1px 2px;
}
.key {
  font:600 25px/1.3 Georgia,serif;
}
.foot {
  font-size:13px;
  color:#596c63;
  margin:12px 0 22px;
}
.foot a {
  margin-left:12px;
}
summary {
  cursor:pointer;
  color:#155d4c;
}
details>p {
  margin-top:5px;
}
.panel:empty,#error:empty {
  display:none;
}
#error {
  color:#942f1e;
}
#work[aria-busy=true] {
  opacity:.7;
}
button:hover {
  filter:brightness(.95);
}
@media(max-width:750px) {
  header,main {
    width:calc(100% - 28px);
  }
  .grid {
    grid-template-columns:1fr;
  }
  .next {
    align-items:start;
    flex-direction:column;
  }
  nav {
    gap:0;
  }
  nav a {
    padding:6px 9px;
  }
  .panel,.next {
    padding:15px;
  }
  .brand {
    font-size:17px;
  }
}
.witness {
  display:inline-block;
  margin:3px 12px 0 0;
  font-size:14px;
}
.row:target {
  background:#fff4ce;
  outline:2px solid #b38b36;
  outline-offset:4px;
  border-radius:3px;
}
h1:focus {
  outline:none;
}

header { flex-wrap:wrap; gap:8px 16px; }
.guide-links { display:flex; flex-wrap:wrap; gap:8px 16px; }
