:root {
  --page: #f6f2e8;
  --paper: #fffdf8;
  --panel: #ffffff;
  --ink: #18252b;
  --muted: #5b6871;
  --line: #d8d0c2;
  --line-strong: #b8aa96;
  --brand: #a53f2b;
  --brand-dark: #742c20;
  --teal: #0c6d73;
  --blue: #245c9a;
  --amber: #b7791f;
  --code-bg: #fff8e8;
  --code-line: #245c9a;
  --shadow: 0 16px 48px rgba(24, 37, 43, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  background: var(--page);
}

body,
body[class] {
  margin: 0 !important;
  min-width: 0;
  font-family: "Segoe UI", "Aptos", Tahoma, sans-serif !important;
  font-size: 16px !important;
  line-height: 1.58;
  color: var(--ink) !important;
  background:
    linear-gradient(180deg, #f2eadb 0, #fffdf8 280px, #f6f2e8 100%) !important;
  text-decoration: none;
}

.legacy-help-header {
  width: 100% !important;
  border-collapse: collapse;
  background: #16292d;
  color: #fffdf8;
  border-bottom: 4px solid var(--brand);
}

.legacy-help-header td {
  padding: 16px 28px !important;
  vertical-align: middle !important;
}

.legacy-help-header td:first-child {
  text-align: left !important;
}

.legacy-help-header img {
  max-height: 30px;
  width: auto;
  padding: 3px 5px;
  border-radius: 4px;
  background: #fff;
}

.legacy-help-header strong,
.legacy-help-header span {
  color: #fffdf8 !important;
}

body > table {
  width: min(1080px, calc(100% - 48px)) !important;
  margin: 0 auto !important;
}

body > table:first-of-type {
  margin-top: 28px !important;
  border-bottom: 1px solid var(--line);
}

table {
  border-collapse: collapse;
  font-size: 100%;
  vertical-align: top;
}

td {
  vertical-align: top;
  padding: 0;
  margin: 0;
}

p {
  text-align: left;
  text-indent: 0;
  padding: 0;
  margin: 0 0 0.65rem;
}

p[class] {
  width: auto !important;
  max-width: 78ch;
}

span[class] {
  color: inherit !important;
}

table[class] {
  background: transparent !important;
}

img {
  max-width: 100%;
  height: auto;
}

object[type="application/x-oleobject"] {
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

a {
  color: var(--blue);
  text-decoration: none;
  text-underline-offset: 0.16em;
}

a:hover,
a:focus-visible {
  color: var(--brand-dark);
  text-decoration: underline;
}

h1,
h2,
h3,
.f_Heading1,
span.f_Heading1 {
  color: var(--ink) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 700 !important;
  letter-spacing: 0;
}

h1,
span.f_Heading1 {
  font-size: 1.55rem !important;
}

h2 {
  margin: 1.4rem 0 0.55rem;
  font-size: 1.18rem !important;
  color: var(--teal) !important;
}

h5 {
  margin: 0.8rem 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--teal);
}

ul,
ol {
  margin: 0.4rem 0 1rem 1.25rem !important;
  padding: 0 !important;
  font-family: inherit !important;
  color: var(--ink) !important;
}

li {
  margin: 0 0 0.35rem;
  padding: 0;
}

strong {
  color: #111f25;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
}

hr.ln {
  height: 0;
  border-top: 2px solid var(--brand);
}

div.nav {
  width: min(1080px, calc(100% - 48px));
  margin: 18px auto 0;
  padding: 10px 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

div.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.38rem 0.68rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}

div.nav a:hover {
  border-color: var(--brand);
  background: #fff8e8;
  text-decoration: none;
}

div.nav a.nav-contents {
  border-color: rgba(165, 63, 43, 0.38);
  background: #fff1dc;
  color: var(--brand-dark);
}

.copyr,
.reference-footer {
  width: min(1080px, calc(100% - 48px));
  margin: 2rem auto 0;
  padding: 1.2rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.reference-footer a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
}

.reference-footer a:hover {
  text-decoration: underline;
}

.footer-nav {
  display: inline-flex;
  gap: 0.5rem;
  margin-left: 1rem;
  white-space: nowrap;
}

.footer-nav-separator {
  color: var(--line-strong);
}

div.txt,
td,
span,
p {
  color: inherit;
}

table.constlist,
table.synd {
  margin: 0.7rem 0 1rem;
}

td.consti,
td.constd,
td.syni,
td.synid {
  padding: 0.2rem 0.65rem 0.2rem 0;
}

td.consti,
td.syni {
  color: var(--teal);
  font-style: italic;
}

code,
pre,
.code,
.code-example,
.type-definition,
.p_CodeExample,
span.f_CodeExample,
span.f_CourierFixed {
  font-family: Consolas, "Cascadia Mono", "Courier New", monospace !important;
}

code {
  padding: 0.1rem 0.28rem;
  border-radius: 4px;
  background: #efe6d6;
  color: #112a38;
}

.code,
.code-example,
.type-definition,
pre {
  position: relative;
  display: block;
  max-width: 100%;
  margin: 0.9rem 0 1.1rem !important;
  padding: 1rem 1.1rem !important;
  overflow-x: auto;
  border: 1px solid #d8c8aa !important;
  border-left: 5px solid var(--code-line) !important;
  border-radius: 8px !important;
  background: var(--code-bg) !important;
  color: #14242b !important;
  box-shadow: 0 10px 26px rgba(36, 92, 154, 0.08);
  white-space: pre-wrap;
}

.type-definition {
  border-left-color: var(--teal) !important;
}

.description-note,
.description-content {
  margin: 0.9rem 0 1.1rem !important;
  padding: 0.95rem 1.05rem !important;
  border: 1px solid #e0c489 !important;
  border-left: 5px solid var(--amber) !important;
  border-radius: 8px !important;
  background: #fff6dc !important;
}

.p_CodeExample {
  white-space: normal !important;
}

span.f_CodeExample,
span.f_CourierFixed {
  font-size: 0.95rem !important;
  color: #152a33 !important;
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  background: #16292d;
  color: #fffdf8;
  border-bottom: 4px solid var(--brand);
}

.site-header-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-lockup img {
  width: 96px;
  height: 30px;
  padding: 3px 5px;
  border-radius: 4px;
  background: #fff;
}

.brand-title {
  margin: 0;
  color: #fffdf8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.2;
}

.brand-subtitle {
  margin: 0.25rem 0 0;
  color: #d6d0c3;
  font-size: 0.95rem;
}

.topic-site-header .site-header-inner {
  padding: 18px 0;
}

.top-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.help-search {
  position: relative;
  z-index: 20;
  flex: 1 1 300px;
  min-width: 240px;
  max-width: 390px;
}

.help-search input {
  width: 100%;
  min-height: 38px;
  padding: 0.48rem 0.78rem;
  border: 1px solid rgba(255, 253, 248, 0.42);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  outline: none;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.help-search input::placeholder {
  color: var(--muted);
}

.help-search input:focus {
  border-color: #fffdf8;
  box-shadow: 0 0 0 3px rgba(255, 253, 248, 0.22), 0 10px 22px rgba(0, 0, 0, 0.1);
}

.help-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: min(60vh, 420px);
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.help-search-results[hidden] {
  display: none;
}

.help-search-results a,
.help-search-empty {
  display: block;
  padding: 0.55rem 0.65rem;
  border-radius: 6px;
  color: var(--ink);
}

.help-search-results a:hover,
.help-search-results a:focus-visible {
  background: #fff1dc;
  color: var(--brand-dark);
  text-decoration: none;
}

.help-search-results strong {
  display: block;
  color: inherit;
  font-size: 0.94rem;
}

.help-search-results span,
.help-search-empty {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.top-links a,
.hero-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.48rem 0.78rem;
  border: 1px solid rgba(255, 253, 248, 0.35);
  border-radius: 8px;
  color: #fffdf8;
  font-size: 0.92rem;
  font-weight: 700;
}

.top-links a:hover,
.hero-actions a:hover {
  background: rgba(255, 253, 248, 0.11);
  text-decoration: none;
}

.hero {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 46px 0 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
  align-items: end;
}

.hero h1 {
  margin: 0 0 0.8rem;
  max-width: 760px;
  font-size: 2.45rem !important;
  line-height: 1.06;
}

.hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions a {
  border-color: var(--line-strong);
  color: var(--ink);
  background: #fffdf8;
}

.hero-actions a.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #fffdf8;
}

.hero-stat {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-stat strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--brand-dark);
  font-size: 1.8rem;
  font-family: Georgia, "Times New Roman", serif;
}

.content-band {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0 52px;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.topic-card,
.nav-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.topic-card {
  padding: 18px;
}

.topic-card h2,
.nav-section h2 {
  margin: 0 0 0.55rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem !important;
  color: var(--ink) !important;
}

.topic-card p {
  color: var(--muted);
  font-size: 0.94rem;
}

.topic-card a {
  display: inline-flex;
  margin-top: 0.4rem;
  font-weight: 700;
}

.nav-layout {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 54px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 26px;
}

.nav-sidebar {
  position: sticky;
  top: 18px;
  align-self: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.nav-sidebar a {
  display: block;
  padding: 0.35rem 0;
  color: var(--ink);
  font-weight: 700;
}

.nav-main {
  display: grid;
  gap: 14px;
}

.nav-section {
  padding: 18px 20px;
}

.nav-section ul {
  columns: 2;
  column-gap: 28px;
  margin-bottom: 0 !important;
}

.nav-section li {
  break-inside: avoid;
}

@media (max-width: 900px) {
  .site-header-inner,
  .hero {
    grid-template-columns: 1fr;
  }

  .site-header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-links {
    justify-content: flex-start;
  }

  .help-search {
    width: min(100%, 520px);
    max-width: 520px;
  }

  .topic-grid,
  .nav-layout {
    grid-template-columns: 1fr;
  }

  .nav-sidebar {
    position: static;
  }

  .nav-section ul {
    columns: 1;
  }
}

@media (max-width: 560px) {
  body > table,
  div.nav,
  .copyr,
  .site-header-inner,
  .hero,
  .content-band,
  .nav-layout {
    width: min(100% - 24px, 1180px) !important;
  }

  body > table:first-of-type td {
    padding: 12px 14px !important;
  }

  .hero h1 {
    font-size: 1.9rem !important;
  }

  .brand-lockup {
    align-items: flex-start;
    flex-direction: column;
  }

  .help-search {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
}
