:root {
  color-scheme: light;
  --paper: #f4f6f3;
  --surface: #fff;
  --ink: #17251f;
  --muted: #4e6157;
  --line: #d5e0d8;
  --accent: #006347;
  --accent-dark: #004634;
  --mint: #d8f4e7;
  --hero: #102c25;
  --header-height: 68px;
  --page-width: 1320px;
  --page-gutter: clamp(1rem, 3.5vw, 3rem);
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: Inter, "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", sans-serif;
  font-synthesis: none;
  text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: calc(var(--header-height) + 1rem); }
body { margin: 0; color: var(--ink); background: var(--paper); }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: var(--accent-dark); }
button, input { font: inherit; }
:focus-visible { outline: 3px solid #00855d; outline-offset: 3px; }
img { max-width: 100%; height: auto; }
pre, code, kbd, samp { font-family: var(--mono); }

.visually-hidden,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  z-index: 10;
  top: .6rem;
  left: .6rem;
  padding: .65rem 1rem;
  color: #fff;
  background: var(--accent-dark);
  border-radius: 8px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-height);
  max-width: var(--page-width);
  padding: .65rem var(--page-gutter);
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  flex: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -.035em;
  text-decoration: none;
}

.brand > span:first-child {
  width: 22px;
  height: 22px;
  border: 2px solid var(--accent);
  border-radius: 5px;
  box-shadow: inset 0 0 0 4px var(--surface);
  background: var(--accent);
}


.search { position: relative; width: min(100%, 455px); }
.search input {
  display: block;
  width: 100%;
  height: 42px;
  padding: .55rem .9rem;
  color: var(--ink);
  background: #f2f6f2;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: .93rem;
}

.search input::placeholder { color: var(--muted); }
.search-panel {
  position: absolute;
  inset: calc(100% + 8px) 0 auto;
  max-height: min(62vh, 34rem);
  overflow-y: auto;
  padding: .75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 16px 42px #0b251b28;
}

.search-status { margin: 0; padding: .35rem .55rem; color: var(--muted); font-size: .82rem; }
.search-results { display: grid; gap: .2rem; margin: 0; padding: 0; list-style: none; }
.search-results a {
  display: grid;
  gap: .2rem;
  padding: .5rem .55rem;
  color: var(--ink);
  border-radius: 6px;
  text-decoration: none;
}

.search-results a:hover, .search-results a:focus-visible { background: var(--mint); }
.search-results strong { font-size: .95rem; line-height: 1.4; }
.search-snippet {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: .79rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hero {
  background:
    radial-gradient(ellipse at 77% 52%, #46857050, transparent 62%),
    var(--hero);
  color: #fff;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 5vw, 4.5rem);
  min-height: 320px;
  max-width: var(--page-width);
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 4.25rem) var(--page-gutter);
}

.hero h1 {
  max-width: 21ch;
  margin: 0;
  font-size: clamp(2.12rem, 4.6vw, 4.15rem);
  line-height: 1.12;
  letter-spacing: -.055em;
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.hero p {
  max-width: 44ch;
  margin: 1.1rem 0 0;
  color: #d3e8df;
  font-size: clamp(.96rem, 1.55vw, 1.13rem);
  line-height: 1.72;
}

.hero a { color: #a2f5cb; }
.hero-photo { flex: 0 1 38%; min-width: 0; text-align: center; }
.hero-photo img {
  display: block;
  max-height: 328px;
  width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 16px #071b13b0);
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(180px, 225px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.25rem, 4vw, 4rem);
  max-width: var(--page-width);
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 3.75rem) var(--page-gutter) 4rem;
}

.guide-aside { position: sticky; top: calc(var(--header-height) + 1.25rem); }
.guide-contents {
  max-height: calc(100vh - var(--header-height) - 2.5rem);
  overflow-y: auto;
  padding: .7rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  scrollbar-color: #aac1b2 transparent;
}

.guide-contents summary {
  padding: .4rem .55rem .6rem;
  color: var(--ink);
  font-size: .94rem;
  font-weight: 750;
  cursor: pointer;
}

.guide-contents ol { margin: 0; padding: 0; list-style: none; }
.guide-contents ol ol { margin: 0 0 .3rem .8rem; padding-left: .36rem; border-left: 1px solid var(--line); }
.guide-contents a {
  display: block;
  padding: .36rem .5rem;
  color: var(--muted);
  border-radius: 5px;
  font-size: .86rem;
  line-height: 1.43;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.guide-contents a:hover, .guide-contents a[aria-current="location"] {
  color: var(--accent-dark);
  background: var(--mint);
}

.guide-contents nav > ol > li > a { font-weight: 700; }
#guide-article { min-width: 0; font-size: 1rem; line-height: 1.72; overflow-wrap: anywhere; }
#guide-article h2, #guide-article h3, #guide-article h4 { color: var(--ink); line-height: 1.35; }
#guide-article h2 {
  margin: 2.8rem 0 1.1rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--line);
  font-size: clamp(1.5rem, 2.7vw, 2.15rem);
  letter-spacing: -.026em;
}

#guide-article h2:first-child { margin-top: 0; }
#guide-article h3 { margin: 2.05rem 0 .75rem; font-size: clamp(1.22rem, 2vw, 1.47rem); }
#guide-article h4 { margin: 1.6rem 0 .6rem; font-size: 1.11rem; }
#guide-article p, #guide-article ul, #guide-article ol { margin: .7rem 0 1.05rem; }
#guide-article ul, #guide-article ol { padding-inline-start: 1.65rem; }
#guide-article li + li { margin-top: .25rem; }
#guide-article li > :last-child { margin-bottom: .25rem; }
#guide-article hr { margin: 2rem 0; border: 0; border-top: 1px solid var(--line); }
#guide-article blockquote {
  margin: 1rem 0;
  padding: .65rem 1rem;
  background: #fff4d7;
  border-left: 4px solid #98620c;
  border-radius: 0 8px 8px 0;
}

#guide-article blockquote > :first-child { margin-top: 0; }
#guide-article blockquote > :last-child { margin-bottom: 0; }
#guide-article pre {
  overflow: auto;
  margin: 1rem 0;
  padding: .9rem 1rem;
  background: #102c25;
  color: #f1fff7;
  border-radius: 8px;
  font-size: .86rem;
}

#guide-article :not(pre) > code {
  padding: .12em .28em;
  border-radius: 4px;
  background: #e0ede5;
  color: #104734;
  font-size: .91em;
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  margin: 1.05rem 0 1.7rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}

#guide-article table {
  width: 100%;
  min-width: min(29rem, 120vw);
  border-spacing: 0;
  border-collapse: collapse;
  font-size: .92rem;
  line-height: 1.55;
}

#guide-article caption { padding: .65rem .9rem; text-align: left; font-weight: 700; }
#guide-article th, #guide-article td { padding: .65rem .85rem; text-align: start; vertical-align: top; }
#guide-article th { color: #163b2d; background: #e1eee7; font-weight: 750; }
#guide-article td { border-top: 1px solid var(--line); }
#guide-article tbody tr:nth-child(even) { background: #f6f9f6; }
#guide-article tbody tr:hover { background: #eef8f1; }
#guide-article tbody tr:target, #guide-article tbody tr.search-target { background: #c9f1dc; }
#guide-article tbody tr:target td:first-child, #guide-article tbody tr.search-target td:first-child {
  box-shadow: inset 4px 0 var(--accent);
}

#guide-article :is(h2, h3, h4):target { color: var(--accent-dark); }
#guide-article figure {
  max-width: 100%;
  margin: 1.15rem 0 1.65rem;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

#guide-article figure > img { display: block; margin: auto; }
.board-map-photo {
  position: relative;
  isolation: isolate;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.board-map-photo > img { display: block; }
.board-map .hotspot {
  position: absolute;
  z-index: 1;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  min-width: 2rem;
  min-height: 2rem;
  padding: .12rem .33rem;
  border: 2px solid #fff;
  border-radius: 8px;
  box-shadow: 0 2px 7px #0007;
  background: #006347;
  color: #fff;
  font: 750 clamp(.58rem, 1.2vw, .8rem)/1.15 var(--mono);
  white-space: nowrap;
  text-decoration: none;
}

.board-map .hotspot:hover, .board-map .hotspot:focus-visible {
  z-index: 2;
  background: #fff;
  border-color: var(--accent);
  color: var(--accent-dark);
}

#guide-article figcaption {
  padding: .65rem .9rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .88rem;
}

.site-footer {
  max-width: var(--page-width);
  margin-inline: auto;
  padding: 0 var(--page-gutter) 2.75rem;
}

.site-footer a {
  display: block;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: .88rem;
}

@media (max-width: 830px) {
  .guide-aside { position: static; }
  .guide-layout { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
  .guide-contents { max-height: min(55vh, 25rem); }
  .hero-inner { min-height: 255px; }
}

@media (max-width: 580px) {
  :root { --header-height: 60px; }
  .header-inner { gap: .8rem; }
  .brand { gap: .35rem; font-size: 1rem; }
  .brand > span:first-child { display: none; }
  .search { flex: 1; min-width: 0; }
  .search input { font-size: 16px; }
  .search-panel { left: auto; width: min(calc(100vw - 2 * var(--page-gutter)), 28rem); }
  .hero-inner { flex-direction: column; align-items: stretch; }
  .hero-photo img { max-height: 225px; }
  #guide-article th, #guide-article td { padding: .55rem .6rem; }
  .board-map .hotspot { min-width: 1.5rem; min-height: 1.5rem; border-width: 1px; }
}

@media print {
  :root { color-scheme: light; }
  body, .hero, .table-scroll, #guide-article tbody tr:nth-child(even) { color: #000; background: #fff; }
  .site-header, .guide-aside, .site-footer, .skip-link { display: none !important; }
  .hero-inner, .guide-layout { display: block; min-height: 0; padding: 0; }
  .hero h1 { max-width: none; font-size: 24pt; }
  .hero p { max-width: none; color: #000; }
  .hero-photo { display: none; }
  .table-scroll { overflow: visible; margin: .55rem 0 1rem; }
  #guide-article table { min-width: 0; font-size: 9pt; }
  #guide-article td, #guide-article th { padding: .24rem .4rem; }
  #guide-article thead { display: table-header-group; }
  #guide-article tr, #guide-article figure { break-inside: avoid; }
  #guide-article h2, #guide-article h3, #guide-article h4 { break-after: avoid; }
  #guide-article figure > img, .board-map-photo > img { max-height: 95mm; width: auto; }
  .board-map .hotspot { print-color-adjust: exact; }
}

.hotspot[data-map-point="1"] { --x: 14%; --y: 10%; }
.hotspot[data-map-point="2"] { --x: 77%; --y: 9%; }
.hotspot[data-map-point="3"] { --x: 10%; --y: 55%; }
.hotspot[data-map-point="4"] { --x: 49%; --y: 44%; }
.hotspot[data-map-point="5"] { --x: 55%; --y: 60%; }
.hotspot[data-map-point="6"] { --x: 92%; --y: 53%; }
.hotspot[data-map-point="7"] { --x: 6%; --y: 84%; }
.hotspot[data-map-point="8"] { --x: 17%; --y: 92%; }
.hotspot[data-map-point="9"] { --x: 30%; --y: 92%; }
.hotspot[data-map-point="10"] { --x: 41%; --y: 92%; }
.hotspot[data-map-point="11"] { --x: 54%; --y: 92%; }
.hotspot[data-map-point="12"] { --x: 70%; --y: 89%; }
.hotspot[data-map-point="13"] { --x: 86%; --y: 92%; }
