:root {
  font-family: Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  color: #263a36;
  background: #f5f5f0;
  font-synthesis: none;
  --green: #255a4c;
  --line: #dce2d9;
  --muted: #697a73;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
}

a {
  color: inherit;
}

button,input {
  font: inherit;
}

a:focus-visible,summary:focus-visible,input:focus-visible {
  outline: 3px solid #d69351;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 10;
  background: white;
  padding: 12px;
}

.skip-link:focus {
  top: 10px;
}

.sidebar {
  width: 264px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #172c29;
  color: #dce6df;
  display: flex;
  flex-direction: column;
  padding: 32px 22px 18px;
  z-index: 5;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: 2px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 44px;
  border: 1px solid #77968c;
  border-radius: 10px;
  color: #e0bb83;
  font-family: serif;
  font-size: 27px;
}

.brand small {
  display: block;
  font-size: 11px;
  letter-spacing: 3px;
  color: #9aafa7;
  font-weight: 400;
  margin-top: 5px;
}

.search {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 32px 0 10px;
  background: #ffffff09;
  border: 1px solid #ffffff24;
  border-radius: 7px;
  padding: 10px;
  color: #9aafa7;
}

.search input {
  width: 100%;
  min-width: 0;
  background: none;
  border: 0;
  color: white;
  font-size: 12px;
  outline-offset: 6px;
}

.search input::placeholder {
  color: #a6b8b0;
}

.search>span {
  font-size: 23px;
  line-height: 16px;
}

nav {
  overflow: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: #536e63 transparent;
  padding: 0 1px;
}

nav .nav-group {
  font-size: 10px;
  color: #8aa69b;
  letter-spacing: 2px;
  margin: 24px 10px 8px;
}

nav>a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  margin: 2px 0;
  border-radius: 5px;
  text-decoration: none;
  font-size: 13px;
  color: #c0cfc7;
  border-left: 2px solid transparent;
}

nav>a span {
  color: #728c80;
  font-size: 10px;
  align-self: center;
}

nav>a:hover {
  background: #ffffff0a;
  color: white;
}

nav>a.active {
  background: #385549;
  color: #fff;
  border-left-color: #dab27a;
}

nav>a.active span {
  color: #cfc0a5;
}

.sidebar-bottom {
  border-top: 1px solid #ffffff1c;
  padding: 17px 10px 0;
  margin-top: 16px;
}

.sidebar-bottom>a {
  display: flex;
  justify-content: space-between;
  text-decoration: none;
  font-size: 13px;
  color: #e0bb83;
}

.sidebar-bottom p {
  color: #90a79a;
  font-size: 10px;
  margin-bottom: 0;
}

.reading-area {
  margin-left: 264px;
}

.topbar {
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 3;
  background: #f5f5f0ee;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 44px;
  font-size: 12px;
}

.breadcrumb {
  color: #8b9690;
  margin-left: 8px;
}

.topbar>a {
  text-decoration: none;
  color: var(--green);
}

main {
  max-width: 1140px;
  padding: 35px 44px 0;
  margin: auto;
}

.chapter {
  scroll-margin-top: 90px;
  padding: 50px 0;
  border-bottom: 1px solid var(--line);
}

.welcome {
  padding-top: 0;
}

.manual-video {
  margin-bottom: 20px;
  padding: 16px clamp(18px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #eef4ef;
}

.manual-video h2 {
  margin: 0 0 6px;
  font-size: 15px;
}

.manual-video a {
  color: var(--green);
  font-weight: 650;
  text-underline-offset: 3px;
}

.manual-video a span {
  font-size: 13px;
  font-weight: 400;
}

.manual-risk {
  margin-bottom: 36px;
  padding: clamp(18px, 4vw, 36px);
  border: 1px solid #e4d3b5;
  border-left: 4px solid #b98042;
  border-radius: 10px;
  background: #fff9ed;
  line-height: 1.8;
}

.manual-risk h3 {
  margin: 24px 0 8px;
}

.manual-risk ul, .manual-reading-links {
  padding-left: 1.5em;
}

.manual-reading-links li + li {
  margin-top: 7px;
}

.manual-reading-links a {
  color: var(--green);
  text-underline-offset: 3px;
}

.hero {
  position: relative;
  background: #23483e;
  color: #f4f4e9;
  border-radius: 12px;
  padding: 45px 44px 40px;
  overflow: hidden;
}

.hero:after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border: 1px solid #d0dfcc19;
  border-radius: 50%;
  right: -140px;
  top: -110px;
  box-shadow: 0 0 0 42px #d0dfcc08,0 0 0 84px #d0dfcc06;
  pointer-events: none;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 2px;
  color: #6c8175;
  margin: 0 0 15px;
}

.hero .eyebrow {
  color: #d8bc8d;
}

.hero h1 {
  font-size: clamp(30px,3.5vw,47px);
  line-height: 1.42;
  letter-spacing: 1px;
  font-weight: 600;
  margin: 0 0 19px;
  position: relative;
  z-index: 1;
}

.hero-description {
  font-size: 14px;
  line-height: 1.9;
  max-width: 500px;
  color: #c4d5c9;
  margin: 0 0 25px;
}

.hero-button {
  display: inline-flex;
  gap: 30px;
  text-decoration: none;
  padding: 11px 16px;
  border-radius: 5px;
  background: #e2bf88;
  color: #243e32;
  font-size: 12px;
  font-weight: 650;
}

.intro {
  padding: 37px 0 20px;
}

.intro h2 {
  font-size: 24px;
  letter-spacing: -.6px;
  line-height: 1.5;
  margin: 0 0 13px;
}

.intro>p:last-child,.chapter-summary {
  color: #65746d;
  line-height: 1.9;
  font-size: 14px;
  max-width: 790px;
  margin: 0;
}

.intro strong {
  color: #39534a;
  font-weight: 550;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 22px;
}

.benefits article {
  border-top: 2px solid #bbcbb9;
  padding-top: 18px;
}

.benefits article>span {
  font-size: 10px;
  letter-spacing: 1px;
  color: #718274;
}

.benefits h3 {
  font-size: 15px;
  line-height: 1.6;
  margin: 10px 0 8px;
}

.benefits p {
  font-size: 12px;
  line-height: 1.9;
  color: #6b7972;
  margin: 0;
}

.reading-path {
  margin: 33px 0 22px;
  padding: 25px;
  background: #e9ede4;
  border-radius: 9px;
}

.reading-path .eyebrow {
  margin-bottom: 8px;
}

.reading-path h3 {
  font-size: 16px;
  margin: 0 0 21px;
}

.reading-path ol {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  padding: 0;
  list-style: none;
  gap: 14px;
  margin: 0;
  counter-reset: path;
}

.reading-path li {
  counter-increment: path;
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.reading-path li:before {
  content: "0" counter(path);
  font-size: 10px;
  color: #8b9c8b;
}

.reading-path a {
  font-size: 12px;
  text-decoration: none;
  line-height: 1.8;
}

.reading-path a:hover {
  text-decoration: underline;
}

.reading-path small {
  display: block;
  color: #788579;
  font-size: 10px;
}

.quiet-note {
  font-size: 11px;
  color: #849086;
  line-height: 1.9;
  margin: 0;
}

.chapter-heading {
  display: flex;
  gap: 17px;
  align-items: baseline;
  margin-bottom: 14px;
}

.chapter-number {
  font-size: 13px;
  color: #9b9e83;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.chapter-heading h2 {
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -.5px;
  margin: 0;
}

.chapter .eyebrow {
  margin-bottom: 11px;
}

.chapter-summary {
  margin-bottom: 25px;
}

.steps {
  list-style: none;
  counter-reset: steps;
  display: grid;
  gap: 15px;
  padding: 0;
  margin: 22px 0 26px;
}

.steps li {
  counter-increment: steps;
  display: flex;
  gap: 13px;
  font-size: 13px;
  line-height: 1.9;
  color: #50645a;
}

.steps li:before {
  content: counter(steps);
  display: grid;
  place-items: center;
  flex: none;
  align-self: flex-start;
  width: 23px;
  height: 23px;
  border: 1px solid #bfcfc1;
  border-radius: 50%;
  font-size: 11px;
  color: var(--green);
  margin-top: 1px;
}

.step-content {
  flex: 1;
  min-width: 0;
}

.step-content > p {
  margin: 0;
}

.manual-screenshot {
  margin: 12px 0 4px;
}

.manual-screenshot-portrait {
  max-width: 460px;
}

.manual-screenshot a {
  display: block;
  border: 1px solid #bfcfc1;
  border-radius: 10px;
  overflow: hidden;
  background: #edf2ed;
  color: var(--green);
}

.manual-screenshot img {
  display: block;
  width: 100%;
  height: auto;
}

.screenshot-preview {
  position: relative;
  display: block;
}

.screenshot-highlight {
  position: absolute;
  border: 2px solid #ff4747;
  border-radius: 3px;
  pointer-events: none;
}

.screenshot-link {
  display: block;
  padding: 4px 12px;
  text-align: right;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.manual-screenshot figcaption {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.65;
}

.subheading {
  font-size: 12px;
  letter-spacing: 1px;
  margin: 25px 0 14px;
  color: #465e51;
}

.tips {
  border-left: 3px solid #bd9a63;
  background: #f0ede4;
  padding: 14px 18px;
  margin: 22px 0;
  font-size: 12px;
  color: #766744;
  line-height: 1.9;
}

.tips p {
  margin: 5px 0;
}

.reference {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 12px 0;
  overflow: hidden;
}

.reference summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px;
  font-size: 14px;
  font-weight: 550;
  list-style: none;
}

.reference summary::-webkit-details-marker {
  display: none;
}

.reference summary:after {
  content: "＋";
  color: #809385;
  font-weight: 400;
}

.reference[open] summary:after {
  content: "−";
}

.reference[open] summary {
  border-bottom: 1px solid #edf0ea;
}

.reference summary small {
  font-size: 11px;
  color: #82917f;
  font-weight: 400;
  margin-left: 8px;
}

.reference table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  line-height: 1.9;
  table-layout: fixed;
}

.reference th,.reference td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #edf0ea;
  padding: 13px 20px;
  overflow-wrap: anywhere;
}

.reference tr:last-child>* {
  border-bottom: 0;
}

.reference th {
  width: 28%;
  font-weight: 550;
  color: #365249;
  background: #fafbf8;
}

.reference td {
  color: #64756a;
}

.settings-ref {
  background: #e9efe7;
  border: 1px solid #d8e2d3;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
}

.settings-ref h3 {
  font-size: 13px;
  margin: 0 0 12px;
}

.settings-ref dl {
  margin: 0;
  font-size: 12px;
  line-height: 1.9;
}

.settings-ref dt {
  font-weight: 550;
  color: #43604f;
  margin-top: 13px;
}

.settings-ref dd {
  margin: 3px 0 0;
  color: #6b7d6c;
}

.settings-ref .settings-link {
  display: inline-block;
  font-size: 11px;
  margin-top: 16px;
  color: var(--green);
}

.load-state {
  padding: 30px;
  background: #e9ede4;
  border-radius: 8px;
  line-height: 1.8;
  font-size: 14px;
}

.search-status:not(:empty) {
  padding: 12px 16px;
  border-radius: 6px;
  background: #e9ede4;
  font-size: 12px;
  margin-bottom: 24px;
}

.search-status:empty {
  display: none;
}

.footer {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #83907f;
  padding: 27px 0 35px;
}

.footer a {
  text-decoration: none;
}

[hidden] {
  display: none;
}

@media (min-width:1500px) {
  main {
    padding-top: 45px;
  }
  .hero {
    padding: 55px;
  }
  .hero h1 {
    font-size: 50px;
  }
}

@media (max-width:1050px) {
  .sidebar {
    width: 226px;
    padding: 25px 16px 16px;
  }
  .reading-area {
    margin-left: 226px;
  }
  main {
    padding: 25px 26px 0;
  }
  .topbar {
    padding: 0 26px;
  }
  .hero {
    padding: 32px 28px;
  }
  .benefits {
    gap: 15px;
  }
  .reading-path {
    padding: 20px;
  }
  .reading-path ol {
    grid-template-columns: repeat(2,1fr);
  }
}

@media (max-width:720px) {
  html {
    scroll-padding-top: 22px;
  }
  .sidebar {
    position: relative;
    width: auto;
    padding: 20px;
    gap: 0;
  }
  .brand {
    font-size: 18px;
  }
  .brand small {
    display: inline;
    margin-left: 14px;
    font-size: 10px;
  }
  .brand-mark {
    width: 31px;
    height: 35px;
    font-size: 22px;
  }
  .search {
    margin: 20px 0 12px;
  }
  .sidebar nav {
    display: flex;
    gap: 5px;
    overflow: auto;
    flex: none;
    padding-bottom: 5px;
  }
  .sidebar nav .nav-group {
    display: none;
  }
  .sidebar nav>a {
    white-space: nowrap;
    padding: 9px 12px;
    font-size: 12px;
  }
  .sidebar nav>a>span {
    display: none;
  }
  .sidebar-bottom {
    display: none;
  }
  .reading-area {
    margin: 0;
  }
  .topbar {
    position: relative;
    height: 48px;
    padding: 0 20px;
    font-size: 10px;
  }
  main {
    padding: 20px 20px 0;
  }
  .hero {
    padding: 30px 25px;
  }
  .hero h1 {
    font-size: 30px;
  }
  .hero-description {
    font-size: 12px;
  }
  .intro {
    padding-top: 30px;
  }
  .intro h2 {
    font-size: 21px;
  }
  .intro>p:last-child {
    font-size: 13px;
  }
  .benefits {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .benefits h3 {
    margin-top: 6px;
  }
  .reading-path h3 {
    font-size: 14px;
  }
  .chapter {
    padding: 35px 0;
    scroll-margin-top: 20px;
  }
  .chapter-heading {
    gap: 12px;
  }
  .chapter-heading h2 {
    font-size: 25px;
  }
  .reference th,.reference td {
    padding: 12px;
  }
  .reference th {
    width: 34%;
  }
  .reference summary {
    padding: 15px;
  }
  .steps li {
    font-size: 12px;
  }
  .footer {
    font-size: 10px;
  }
  .chapter-summary {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
}
