:root {
  color-scheme: light;
  --ink: #152729;
  --muted: #4e6265;
  --accent: #075e56;
  --accent-dark: #104c46;
  --line: #d5e2df;
  --paper: #fff;
  --canvas: #f0f5f4;
  --tint: #f0f7f5;
  --sans: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC",
    "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.6rem; }
body { margin: 0; color: var(--ink); background: var(--canvas); font: 16px/1.84 var(--sans); }
a { color: var(--accent); text-underline-offset: .21em; text-decoration-thickness: .08em; }
a:hover { color: var(--accent-dark); text-decoration-thickness: .13em; }
a:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
.skip { position: fixed; top: .65rem; left: .65rem; z-index: 2; padding: .4rem .8rem;
  transform: translateY(-200%); background: var(--paper); border-radius: .3rem; }
.skip:focus { transform: translateY(0); }
.masthead { background: #142e2b; border-top: 5px solid #379287; color: #f7fdfc; }
.masthead-inner, .layout { width: min(100% - 3.5rem, 76rem); margin-inline: auto; }
.masthead-inner { padding-block: clamp(2.5rem, 6vw, 5.25rem) clamp(2.4rem, 5vw, 4.4rem); }
.masthead h1 { max-width: 23em; margin: 0; font-size: clamp(2rem, 4.75vw, 3.85rem);
  line-height: 1.24; letter-spacing: -.035em; text-wrap: balance; }
.masthead h1 a, .masthead .lead a { color: #c4f0e7; }
.masthead .lead { max-width: 48em; margin: 1.2rem 0 0; color: #e2f1ee;
  font-size: clamp(1rem, 1.55vw, 1.2rem); line-height: 1.78; }
.layout { display: grid; grid-template-columns: minmax(12.5rem, 15.25rem) minmax(0, 1fr);
  align-items: start; gap: clamp(1.5rem, 4vw, 4rem); padding-block: 2rem 5rem; }
.sidebar { position: sticky; top: 1.6rem; max-height: calc(100dvh - 3.2rem);
  overflow: auto; overscroll-behavior: contain; padding: .6rem 1rem .8rem 0;
  scrollbar-width: thin; }
.sidebar .nav-title { margin: 0 0 .65rem; font-size: .95rem; font-weight: 750; }
.toc-list, .toc-list ul { list-style: none; margin: 0; padding: 0; }
.toc-list ul { padding-left: .9rem; }
.toc-list li { margin: .15rem 0; }
.toc-list a { display: block; padding: .27rem .48rem; color: var(--muted); border-radius: .32rem;
  text-decoration: none; line-height: 1.55; font-size: .9rem; }
.toc-list > li > a { font-weight: 710; color: var(--ink); }
.toc-list a:hover, .toc-list a:focus-visible { color: var(--accent); background: #dfefeb; }
.back-top { display: inline-block; margin: .9rem 0 0 .48rem; font-size: .9rem; }
.small-nav { display: none; }
.sheet { min-width: 0; padding: clamp(1.6rem, 3.6vw, 3.45rem); background: var(--paper);
  border: 1px solid var(--line); border-radius: .8rem; }
.sheet > :first-child { margin-top: 0; }
.sheet > :last-child { margin-bottom: 0; }
.sheet h2 { margin: 2.55rem 0 1.05rem; padding-top: 1.35rem; border-top: 1px solid var(--line);
  font-size: clamp(1.36rem, 2.35vw, 1.95rem); line-height: 1.42; letter-spacing: -.025em; }
.sheet > h2:first-child { padding-top: 0; border: 0; }
.sheet h3 { margin: 1.8rem 0 .65rem; font-size: 1.18rem; line-height: 1.55; }
.sheet h4 { margin: 1.45rem 0 .5rem; font-size: 1.04rem; }
.sheet h2:target, .sheet h3:target, .sheet h4:target { color: var(--accent); }
p { margin: .8rem 0; overflow-wrap: break-word; }
.sheet ul, .sheet ol { margin: .75rem 0 .9rem; padding-left: 1.55em; }
.sheet li + li { margin-top: .32rem; }
.sheet li::marker { color: var(--accent); }
.sheet li > ul, .sheet li > ol { margin: .2rem 0 .45rem; }
strong { font-weight: 750; }
blockquote { margin: 1rem 0; padding: .78rem 1.05rem; border-inline-start: 3px solid #3f9488;
  background: var(--tint); color: #244243; border-radius: 0 .38rem .38rem 0; }
blockquote > :first-child { margin-top: 0; }
blockquote > :last-child { margin-bottom: 0; }
.table-scroll { overflow-x: auto; max-width: 100%; margin: 1.2rem 0 1.45rem; border: 1px solid var(--line);
  border-radius: .5rem; scrollbar-width: thin; }
table { width: 100%; min-width: 29rem; border-collapse: collapse; font-size: .93rem; line-height: 1.65; }
th, td { padding: .69rem .85rem; text-align: left; vertical-align: top; overflow-wrap: break-word; }
th { background: #deeeea; color: #20433e; font-weight: 750; }
td:first-child { min-width: 6.5em; }
tr + tr td, tbody tr:first-child td { border-top: 1px solid var(--line); }
tbody tr:nth-child(even) { background: #f8faf9; }
pre, code { font-family: var(--mono); }
code { padding: .08em .26em; background: #eaf3f1; color: #13524b; border-radius: .23rem; font-size: .9em; }
pre { max-width: 100%; overflow: auto; margin: 1.05rem 0; padding: .9rem 1.1rem; background: #193330;
  color: #edf7f4; border-radius: .48rem; font-size: .92rem; line-height: 1.6; }
pre code { padding: 0; background: transparent; color: inherit; font-size: inherit; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
figure { margin: 1.35rem 0 1.6rem; }
img { max-width: 100%; height: auto; }
figure img { display: block; width: auto; max-height: 45rem; margin-inline: auto; object-fit: contain; }
.product-image, .device-drawing { padding: .7rem; border: 1px solid var(--line);
  background: #f6f9f8; border-radius: .6rem; }
.product-image img { width: 100%; max-height: none; border-radius: .28rem; }
.device-drawing img { max-height: 42.5rem; border-radius: .28rem; }
figcaption { margin: .65rem .25rem .12rem; color: var(--muted); font-size: .9rem; line-height: 1.63; }

@media (max-width: 54rem) {
  .masthead-inner, .layout { width: min(100% - 2rem, 53rem); }
  .layout { display: block; padding-block: 1rem 2.5rem; }
  .sidebar { display: none; }
  .small-nav { display: block; margin: 0 0 .9rem; padding: .55rem .8rem; background: var(--paper);
    border: 1px solid var(--line); border-radius: .5rem; }
  .small-nav > summary { font-weight: 750; color: var(--accent-dark); cursor: pointer; }
  .small-nav[open] > summary { margin-bottom: .45rem; }
  .small-nav .toc-list { padding-left: .35rem; }
}
@media (max-width: 27.5rem) {
  .masthead-inner, .layout { width: min(100% - 1.35rem, 48rem); }
  .masthead-inner { padding-block: 2.25rem; }
  .sheet { padding: 1.05rem; border-radius: .55rem; }
  .product-image, .device-drawing { padding: .35rem; }
}
@page { margin: 15mm; }
@media print {
  body { background: #fff; font-size: 10.5pt; }
  .sidebar, .small-nav, .skip { display: none; }
  .masthead, .sheet { background: #fff; color: #172725; border: 0; border-radius: 0; }
  .masthead-inner, .layout { width: 100%; padding: 0; }
  .masthead-inner { padding-bottom: 6mm; border-bottom: 1px solid #879e98; }
  .masthead h1 { font-size: 26pt; }
  .masthead .lead { color: #243c36; font-size: 11pt; }
  .masthead a, .masthead .lead a { color: #075e56; }
  .layout { display: block; }
  .sheet { padding: 5mm 0 0; }
  h2, h3, h4 { break-after: avoid; }
  figure, tr { break-inside: avoid; }
  figure img, .product-image img, .device-drawing img { max-height: 160mm; width: auto; }
  .table-scroll { overflow: visible; }
  table { min-width: 0; }
  pre { white-space: pre-wrap; overflow-wrap: break-word; }
}
