:root {
  color-scheme: light;
  --paper: #f6f5ed;
  --ink: #172c25;
  --muted: #506258;
  --line: #d8dfd3;
  --forest: #142e27;
  --green: #235f4c;
  --lime: #ddedac;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  scroll-padding-block-start: 1rem;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.75; }
a { color: var(--green); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: .13em; }
:focus-visible { outline: 3px solid #34785e; outline-offset: 4px; }
.wrap { width: min(calc(100% - 2rem), 70rem); margin-inline: auto; }
.skip { position: fixed; top: .75rem; left: .75rem; z-index: 2; transform: translateY(-200%); background: white; padding: .5rem 1rem; }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .1rem 1.5rem; padding-block: .6rem; }
.brand { color: var(--ink); font-size: .94rem; font-weight: 800; text-decoration: none; display: inline-flex; gap: .55rem; align-items: center; }
.brand::before { content: ""; display: block; width: .82rem; height: .82rem; transform: rotate(45deg); background: #3c795e; border: 2px solid var(--paper); outline: 1px solid #3c795e; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0 .95rem; }
.site-nav a { padding: .45rem 0; color: var(--muted); font-size: .86rem; text-decoration: none; white-space: nowrap; }
.site-nav a[aria-current], .site-nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: #3c795e; }
.site-nav .language-switch { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .86rem; white-space: nowrap; }
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--forest); color: #fcfff2; }
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 42rem;
  height: 42rem;
  right: -27rem;
  top: -11rem;
  border-radius: 47% 53% 58% 42%;
  background: repeating-radial-gradient(ellipse at 54% 46%, transparent 0 23px, #bdd79725 24px 25px, transparent 26px 37px);
  transform: rotate(-24deg) scaleY(.76);
  pointer-events: none;
}
.hero .wrap { padding-block: clamp(1.75rem, 5.8vw, 4.4rem); }
h1, h2, h3, p { margin-block: 0; }
h1 { max-width: 17.5em; font-size: clamp(1.84rem, 5vw, 3.8rem); line-height: 1.22; letter-spacing: -.045em; }
.hero h1 span { color: var(--lime); }
.intro { max-width: 44rem; margin-top: .95rem; color: #e2eddf; }
.hero h1 a, .hero .intro a { color: var(--lime); }
.hero :focus-visible { outline-color: var(--lime); }
.hero-tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 1rem 0 0; padding: 0; }
.hero-tags li { padding: .1rem .6rem; border: 1px solid #bdd79766; border-radius: 1rem; color: #e2eddf; font-size: .85rem; }
.hero-updated { margin-top: .85rem; color: #e2eddf; font-size: .85rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0 .65rem; }
.download-button, .secondary-button { display: inline-flex; align-items: center; min-height: 2.75rem; margin-top: .65rem; padding: .35rem 1rem; border-radius: .35rem; font-weight: 800; text-decoration: none; }
.download-button { background: var(--lime); color: var(--forest); }
.download-button:hover { background: #f0f6c9; text-decoration: underline; }
.secondary-button { border: 1px solid var(--lime); color: var(--lime); }
.secondary-button:hover { text-decoration: underline; }
.notice { max-width: 44rem; margin-top: 1.05rem; padding: .65rem .85rem; border-inline-start: 3px solid var(--lime); border-radius: 0 .3rem .3rem 0; background: #263e34; font-size: .9rem; color: #f2f7e9; }
.notice strong { color: var(--lime); margin-inline-end: .35em; }
.layout { display: grid; gap: 1.9rem; padding-block: 1.5rem 3.2rem; }
.toc { padding: .9rem 1rem; align-self: start; border: 1px solid var(--line); border-radius: .55rem; background: #fafaf4; }
.toc p { font-size: .86rem; font-weight: 750; margin-bottom: .35rem; }
.toc ul { display: flex; flex-wrap: wrap; gap: .1rem .95rem; list-style: none; margin: 0; padding: 0; }
.toc a { display: inline-block; padding-block: .2rem; font-size: .88rem; }
article { min-width: 0; max-width: 50rem; }
article section + section { margin-top: 1.8rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
h2 { font-size: clamp(1.23rem, 3.4vw, 1.75rem); line-height: 1.4; margin-bottom: .65rem; letter-spacing: -.025em; }
h3 { font-size: 1rem; line-height: 1.5; }
article p + p, article h3 + p { margin-top: .45rem; }
article h3:not(:first-child) { margin-top: 1rem; }
article ul, article ol { margin: .5rem 0 0; padding-inline-start: 1.35rem; }
article li + li { margin-top: .3rem; }
article li::marker { color: var(--green); }
.source { color: var(--muted); font-size: .86rem; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-block: .8rem; }
.stats > div { padding: .7rem .8rem; background: #eaf0df; border-radius: .4rem; }
.stats dt { font-size: .86rem; color: var(--muted); }
.stats dd { margin: .1rem 0 0; font-weight: 800; font-size: clamp(1.03rem, 3.7vw, 1.45rem); color: var(--green); }
.table-frame { margin-top: 1rem; border: 1px solid var(--line); border-radius: .45rem; overflow: hidden; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; font-size: .87rem; overflow-wrap: anywhere; }
caption { padding: .65rem .7rem; text-align: left; font-size: .85rem; color: var(--muted); background: #fdfdf8; }
th, td { padding: .6rem .52rem; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { background: #e1ebd9; color: var(--ink); }
thead th:first-child { width: 22%; }
tbody tr:nth-child(even) { background: #fafaf4; }
tbody tr:last-child > * { border-bottom: 0; }
code { font-size: .9em; overflow-wrap: anywhere; background: #e9eee4; padding: .05em .22em; border-radius: .2em; }
.next { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); display: grid; gap: .6rem; }
.next a { display: flex; justify-content: space-between; align-items: center; gap: .75rem; border: 1px solid var(--line); border-radius: .45rem; padding: .7rem .85rem; background: #fafaf4; font-weight: 650; text-decoration: none; }
.next a:hover { background: #eaf0df; text-decoration: underline; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .83rem; padding-block: 1rem 1.3rem; }
@media (min-width: 38rem) {
  .wrap { width: min(calc(100% - 3rem), 70rem); }
  .hero::after { right: -17rem; }
  th, td { padding: .7rem .8rem; }
  .next { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 54rem) {
  .layout { grid-template-columns: 14rem minmax(0, 1fr); gap: 3rem; padding-top: 2rem; }
  .toc { position: sticky; top: 1.25rem; }
  .toc ul { display: block; }
  .hero::after { right: -9rem; }
  .site-nav { gap: 1.5rem; }
}

.breadcrumb { margin-block: .75rem 0; font-size: .85rem; color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-inline-end: .35rem; color: var(--muted); }
.project-table { overflow-x: auto; }
.project-table table { min-width: 54rem; table-layout: auto; }
.project-table thead th:first-child { width: 13%; }
.project-table td { min-width: 7rem; }
.project-table caption { text-wrap: pretty; }
.project-row-link { position: relative; }
.project-row-link th a::after { content: ""; position: absolute; inset: 0; }
.project-row-link:hover > *, .project-row-link:focus-within > * { background: #eaf0df; }
.table-frame + p { margin-top: .65rem; }

@media (max-width: 23rem) {
  .hero .wrap { padding-block: 1.25rem; }
  .hero h1 { font-size: 1.65rem; }
  .intro { margin-top: .75rem; line-height: 1.6; }
}

.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .2rem 1.4rem; }
.guide-footer { display: flex; flex-wrap: wrap; gap: .2rem 1rem; margin-bottom: .55rem; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1rem; }
.footer-links a, .settings-link { display: inline-flex; align-items: center; min-height: 2.75rem; }
.settings-link { border: 0; padding: 0; background: transparent; color: var(--green); font: inherit; text-decoration: underline; text-underline-offset: .22em; cursor: pointer; }
.settings-link[hidden] { display: none; }
.info-content { padding-block: 1.8rem 3.2rem; }
.consent-banner { border-bottom: 1px solid var(--line); background: #eaf0df; }
.consent-banner-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; padding-block: .8rem; }
.consent-banner-inner > div:first-child { flex: 1 1 25rem; }
.consent-banner h2 { font-size: 1rem; margin-bottom: .2rem; }
.consent-banner p, .consent-dialog p { font-size: .9rem; }
.consent-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.consent-actions button, .consent-close {
  min-height: 2.75rem;
  padding: .4rem .8rem;
  border: 1px solid var(--green);
  border-radius: .35rem;
  background: #fafaf4;
  color: var(--ink);
  font: inherit;
  font-size: .9rem;
  font-weight: 650;
  cursor: pointer;
}
.consent-actions button:hover, .consent-close:hover { background: #eaf0df; }
.consent-dialog {
  width: min(calc(100% - 2rem), 34rem);
  max-height: calc(100% - 2rem);
  margin: auto;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: var(--paper);
  color: var(--ink);
}
.consent-dialog::backdrop { background: #142e2780; }
.consent-dialog .consent-status { margin-block: .6rem; }
.consent-dialog form { margin-top: .75rem; }
.consent-error { color: #873129; }
.consent-error:not(:empty) { margin-block: .4rem; }
