/* Standalone reading pages; these styles never load on existing website routes. */
:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #242623;
  background: #f7f7f3;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: #315c45; text-underline-offset: 0.2em; }
a:hover { color: #152e20; }
a:focus-visible, summary:focus-visible { outline: 2px solid #538567; outline-offset: 5px; }

.skip-link { position: absolute; top: -100px; left: 20px; padding: 12px; background: white; z-index: 2; }
.skip-link:focus { top: 12px; }
.site-masthead { background: #090b09; color: #fff; }
.masthead-inner { max-width: 1000px; min-height: 92px; padding: 18px 28px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; width: 210px; max-width: 48%; line-height: 0; }
.brand img { display: block; width: 100%; height: auto; }
.language-switch { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.language-switch a { display: grid; place-items: center; min-height: 44px; padding: 0 12px; border-radius: 6px; color: #c2c5c1; font-size: 14px; text-decoration: none; }
.language-switch a[aria-current] { color: #fff; background: #262b26; }
.language-switch a:hover { color: #fff; }

.document { width: min(100%, 840px); margin: 0 auto; padding: 40px 28px 64px; }
.contents { border-bottom: 1px solid #daddd6; padding-bottom: 18px; margin-bottom: 38px; color: #50584d; font-size: 14px; }
.contents summary { cursor: pointer; min-height: 28px; line-height: 28px; }
.contents ol { list-style: none; padding: 8px 0 0; margin: 0; }
.contents a { display: block; padding: 9px 0; text-decoration: none; line-height: 1.6; }
article { font-size: 16px; line-height: 1.9; overflow-wrap: anywhere; }
article:focus { outline: none; }
h1 { margin: 0 0 24px; font-size: clamp(28px, 4.5vw, 42px); line-height: 1.3; font-weight: 650; letter-spacing: -0.025em; color: #151a15; }
h1 .app-title { display: block; }
h1 + p, h1 + p + p { margin: 4px 0; font-size: 14px; color: #5a6257; }
h2 { margin: 44px 0 17px; font-size: 23px; line-height: 1.45; font-weight: 650; color: #182018; scroll-margin-top: 24px; }
p { margin: 0 0 19px; }
strong { font-weight: 650; }
article ul { padding-left: 1.4em; margin: 0 0 24px; }
article li { padding-left: 0.25em; margin: 0 0 14px; }
table { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 26px 0; font-size: 15px; line-height: 1.8; }
th, td { border: 1px solid #d9dfd4; padding: 15px 18px; text-align: left; vertical-align: top; }
th { background: #eaf0e5; font-weight: 650; }
th:first-child { width: 28%; }
td:first-child { color: #263b29; font-weight: 550; }
tbody tr:nth-child(even) { background: #f0f3ec; }
.document-footer { width: min(100% - 56px, 784px); margin: 0 auto; padding: 24px 0 40px; border-top: 1px solid #daddd6; display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.document-footer a { padding: 12px 0; text-decoration: none; }

@media (max-width: 560px) {
  .masthead-inner { min-height: 78px; padding: 14px 20px; gap: 12px; }
  .brand { width: 165px; }
  .language-switch a { padding-inline: 10px; }
  .document { padding: 28px 20px 40px; }
  .contents { margin-bottom: 30px; }
  h1 { margin-bottom: 20px; }
  h2 { margin-top: 36px; font-size: 21px; }
  table, tbody, tr, td { display: block; width: 100%; }
  /* Preserve the table headings for assistive technology while stacking each feature. */
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tbody tr { border: 1px solid #d9dfd4; border-radius: 8px; margin-bottom: 12px; padding: 14px 16px; background: #f0f3ec; }
  td { border: 0; padding: 0; }
  td:first-child { margin-bottom: 6px; font-weight: 650; }
  .document-footer { width: calc(100% - 40px); }
}

@media print {
  :root { background: #fff; color: #000; }
  .site-masthead, .contents, .document-footer, .skip-link { display: none; }
  .document { width: 100%; padding: 0; }
  article { font-size: 11pt; line-height: 1.6; }
  h1 { font-size: 24pt; }
  h2 { break-after: avoid; font-size: 16pt; }
  tr, li { break-inside: avoid; }
  a { color: inherit; }
}
