* {
  box-sizing: border-box;
}
:root {
  color-scheme: light;
  --ink: #203b34;
  --green: #235746;
  --muted: #596c62;
  --line: #d5dfd5;
  --paper: #f3f4ec;
}
body {
  margin: 0;
  font: 16px/1.75 system-ui,"Microsoft YaHei",sans-serif;
  color: var(--ink);
  background: var(--paper);
}
a {
  color: var(--green);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,input,textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible {
  outline: 3px solid #c48d36;
  outline-offset: 2px;
}
.wrap {
  max-width: 1200px;
  width: calc(100% - 48px);
  margin: auto;
}
header {
  background: #fffdf6;
  border-bottom: 1px solid var(--line);
}
.mast {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 23px;
  font-weight: 800;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
}
.edition,.muted {
  color: var(--muted);
  font-size: 13px;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
nav a {
  font-size: 14px;
  font-weight: 600;
}
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 46px 0 32px;
}
.hero img {
  width: 100%;
  height: auto;
  border-radius: 20px;
}
h1,h2,h3,p {
  overflow-wrap: anywhere;
}
h1 {
  font-size: clamp(26px,4vw,44px);
  line-height: 1.25;
  margin: 12px 0;
  letter-spacing: -1px;
}
h2 {
  font-size: 25px;
  line-height: 1.4;
  margin: 8px 0 14px;
}
h3 {
  line-height: 1.5;
}
.eyebrow {
  color: #527461;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}
.cta {
  display: inline-block;
  background: var(--green);
  color: white;
  border: 0;
  padding: 10px 20px;
  border-radius: 6px;
}
.panel {
  border: 1px solid var(--line);
  background: #fffdf7;
  border-radius: 16px;
  padding: 25px;
  min-width: 0;
}
.workspace {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 20px;
}
.sectionhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.controls {
  display: flex;
  gap: 5px;
}
button {
  border: 1px solid var(--line);
  background: #f8f8ee;
  color: var(--ink);
  border-radius: 6px;
  padding: 6px 12px;
}
.week,.days {
  display: grid;
  grid-template-columns: repeat(7,minmax(0,1fr));
  gap: 5px;
}
.week {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.days button {
  min-height: 48px;
  padding: 4px;
  position: relative;
}
.days .weekend {
  background: #e6e9e3;
  color: #59645e;
}
.days .marked::after {
  content: "";
  width: 6px;
  height: 6px;
  background: #b37a34;
  border-radius: 50%;
  position: absolute;
  bottom: 5px;
  left: calc(50% - 3px);
}
.days .active {
  background: var(--green);
  color: white;
}
.timeline p {
  margin: 0;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.timeline b {
  display: inline-block;
  width: 64px;
  color: #31634d;
}
.events,.journal,.guides {
  margin-top: 24px;
}
.event {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.journal form {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 12px;
}
label {
  display: grid;
  gap: 5px;
  font-weight: 600;
  min-width: 0;
}
input,textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #aab9aa;
  border-radius: 6px;
  padding: 10px;
  background: white;
}
.wide {
  grid-column: 1/-1;
}
.guidegrid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 14px;
}
.guide {
  display: block;
  padding: 20px;
  background: #e6ede1;
  border-radius: 12px;
  border-top: 3px solid #7a9d82;
}
.guide small {
  color: var(--muted);
}
.guide h3 {
  margin: 8px 0;
}
.guide span {
  font-size: 13px;
  font-weight: 700;
}
.article {
  max-width: 820px;
  margin: 35px auto;
  padding: 35px;
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.article h2 {
  margin-top: 32px;
}
.lead {
  font-size: 19px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}
.related {
  display: grid;
  gap: 10px;
}
footer {
  margin-top: 42px;
  background: #183c33;
  color: #e7f0df;
  padding: 28px 0;
}
footer a {
  color: #f5e3b1;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 10px;
  top: 10px;
  background: white;
}
.note {
  border-top: 1px solid var(--line);
  padding: 10px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media(max-width:760px) {
  .wrap {
    width: calc(100% - 28px);
  }
  .hero,.workspace,.guidegrid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 25px 0;
    gap: 16px;
  }
  .panel,.article {
    padding: 18px;
  }
  .event {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .journal form {
    grid-template-columns: 1fr;
  }
  .edition {
    font-size: 11px;
  }
  .brand {
    font-size: 19px;
  }
  .days button {
    min-height: 40px;
  }
  nav {
    gap: 8px 18px;
  }
}

/* Official source directory and article tools */
.sources { margin-bottom: 24px; }
.sourcegrid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.sourcegrid p { margin: 6px 0 0; font-size: 14px; }
.article table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.article th, .article td { border: 1px solid var(--line); text-align: left; padding: 10px; overflow-wrap: anywhere; }
.article th { background: #e6ede1; }
.article form { display: grid; gap: 12px; padding: 18px; background: #e6ede1; border-radius: 10px; }
.article select { font: inherit; padding: 8px; max-width: 100%; }
.article output { font-weight: 700; }
@media (max-width: 760px) {
  .sourcegrid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sourcegrid .guide { padding: 12px; }
  .mast { flex-wrap: wrap; gap: 8px; }
}
