:root {
  color-scheme: light;
  --ink: #172923;
  --muted: #52635b;
  --paper: #f8faf7;
  --line: #dce5dd;
  --green: #14684b;
  --deep: #0c5038;
  --wash: #eaf3ec;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; }
a { color: var(--green); text-underline-offset: .25em; }
a:hover { color: var(--deep); }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #398864; outline-offset: 3px; }
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.header-inner {
  width: min(1120px, calc(100% - 44px));
  min-height: 69px;
  margin: auto;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 750; white-space: nowrap; }
.brand-icon { display: inline-grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; background: var(--green); }
.brand-icon::before { content: ""; width: 10px; height: 10px; border: 2px solid white; border-radius: 50%; transform: translate(-1px, -1px); }
.brand-icon::after { content: ""; width: 6px; height: 2px; background: white; border-radius: 2px; position: absolute; transform: translate(5px, 5px) rotate(45deg); }
nav { display: flex; align-items: center; gap: 20px; }
nav a { color: var(--muted); text-decoration: none; font-size: 14px; white-space: nowrap; }
nav a[aria-current] { color: var(--green); font-weight: 700; }
.layout { width: min(760px, calc(100% - 44px)); margin-inline: auto; }
.search-layout { flex: 1; }
.search-panel { padding-top: clamp(82px, 16vh, 164px); text-align: center; }
h1 { margin: 0 0 26px; font-size: clamp(34px, 7vw, 56px); line-height: 1.16; letter-spacing: -.055em; }
.search-form {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid #cadad0;
  border-radius: 15px;
  padding: 7px 7px 7px 19px;
  background: #fff;
  box-shadow: 0 10px 28px #1d3b2910;
}
.search-form:focus-within { border-color: #428769; box-shadow: 0 0 0 3px #14684b16; }
.magnifier { width: 16px; height: 16px; flex: 0 0 auto; border: 1.8px solid #668074; border-radius: 50%; position: relative; }
.magnifier::after { content: ""; position: absolute; right: -5px; bottom: -3px; width: 6px; height: 1.8px; border-radius: 2px; background: #668074; transform: rotate(45deg); }
.search-form input { width: 100%; min-width: 0; padding: 10px 0; border: 0; outline: 0; color: var(--ink); background: transparent; }
.search-form input::placeholder { color: #5e7168; }
button { border: 0; border-radius: 9px; padding: 12px 24px; background: var(--green); color: white; font-weight: 700; cursor: pointer; white-space: nowrap; }
button:hover { background: var(--deep); }
.hint { font-size: 13px; color: var(--muted); }
.hint a { margin-left: .35em; }
.has-query .search-panel, .search-layout:has(.notice) .search-panel { padding-top: 54px; text-align: left; }
.has-query h1, .search-layout:has(.notice) h1 { font-size: 36px; margin-bottom: 19px; }
.results { margin: 34px 0 64px; }
.results-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.results-heading h2 { margin: 0; font-size: 16px; }
.results-heading span { color: var(--muted); font-size: 13px; }
.result-list { list-style-type: none; margin: 0; padding: 0; }
.result { padding: 22px 0; border-top: 1px solid var(--line); }
.result h3 { margin: 0 0 7px; font-size: 19px; line-height: 1.45; overflow-wrap: anywhere; }
.result h3 a { text-decoration: none; color: var(--ink); }
.result h3 a:hover { color: var(--green); text-decoration: underline; }
.metadata { display: flex; flex-wrap: wrap; gap: 6px 15px; color: var(--muted); margin: 0; font-size: 13px; }
.summary { margin: 9px 0 0; color: #384b41; line-height: 1.7; font-size: 14px; overflow-wrap: anywhere; }
.result-link { display: inline-block; margin-top: 10px; font-size: 13px; }
.fallback { color: var(--muted); }
.notice { background: #fff4df; color: #694708; border: 1px solid #e9d6a8; padding: 13px 15px; border-radius: 8px; line-height: 1.5; }
.empty { padding: 26px 0; border-top: 1px solid var(--line); color: var(--muted); }
footer { color: var(--muted); font-size: 12px; padding: 20px 0; border-top: 1px solid var(--line); }
.document { margin-top: 56px; margin-bottom: 55px; }
.document h1 { font-size: clamp(33px, 6vw, 43px); }
.document h2 { margin: 0 0 12px; font-size: 21px; }
.document p { line-height: 1.75; }
.document section { margin-top: 30px; padding-top: 23px; border-top: 1px solid var(--line); }
.primary-link { display: inline-block; padding: 9px 13px; border-radius: 8px; background: var(--wash); font-weight: 600; }
pre { background: #eaf1ec; padding: 14px 16px; border-radius: 8px; overflow-x: auto; line-height: 1.6; }
pre, code { font-family: ui-monospace, monospace; font-size: .9em; }
pre code { font-size: inherit; }
.key-form { display: grid; gap: 10px; max-width: 410px; margin-top: 26px; }
.key-form label, .key-result label { font-size: 14px; font-weight: 600; }
.key-form input, .key-result input { width: 100%; padding: 12px; border: 1px solid #b8cbbf; border-radius: 8px; background: white; color: var(--ink); }
.key-form input { margin-bottom: 9px; }
.key-form button { justify-self: start; }
.key-result input { display: block; margin: 7px 0; font-family: ui-monospace, monospace; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 430px) {
  .header-inner, .layout { width: calc(100% - 32px); }
  .header-inner { min-height: 62px; }
  nav { gap: 12px; }
  nav a { font-size: 13px; }
  .brand { font-size: 14px; gap: 6px; }
  .brand-icon { width: 25px; height: 25px; }
  .search-form { gap: 11px; padding-left: 13px; }
  .search-form button { padding-inline: 16px; }
  .has-query .search-panel, .document { padding-top: 0; margin-top: 34px; }
}
