:root {
  color-scheme: light;
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #182c3e;
  background: #f8fafb;
  --ink: #182c3e;
  --muted: #4e6473;
  --teal: #086956;
  --teal-dark: #075548;
  --line: #dbe4e8;
  --paper: #fff;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 1rem; }
body { margin: 0; min-width: 0; font-size: 1rem; line-height: 1.7; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.25; }
a { color: var(--teal-dark); text-underline-offset: .22em; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #158777; outline-offset: 3px; }
code, pre { font-family: var(--mono); }
code { overflow-wrap: anywhere; }
.frame { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.skip-link { position: absolute; top: .5rem; left: 1rem; z-index: 2; padding: .5rem 1rem; background: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner { min-height: 4.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { text-decoration: none; color: var(--ink); font-size: 1rem; font-weight: 750; display: inline-flex; align-items: center; gap: .6rem; white-space: nowrap; }
.brand-mark { width: 1.85rem; height: 1.85rem; display: inline-flex; align-items: end; justify-content: center; gap: .13rem; padding: .44rem .35rem; border-radius: .48rem; background: #0c6255; }
.brand-mark i { display: block; width: .24rem; height: .42rem; background: #c3f5e2; border-radius: .07rem; }
.brand-mark i:nth-child(2) { height: .69rem; }
.brand-mark i:nth-child(3) { height: .92rem; }
.header nav { display: flex; gap: 1.65rem; align-items: center; }
.header nav a { color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 650; white-space: nowrap; }
.header nav a:hover, .header nav a[aria-current="page"] { color: var(--teal-dark); text-decoration: underline; }

.hero { position: relative; overflow: hidden; background: #102736; color: #f1f7f5; }
.hero::before {
  position: absolute;
  inset: 0 0 0 33%;
  background: linear-gradient(95deg, #102736, transparent 55%), repeating-linear-gradient(0deg, #70c4b216 0 1px, transparent 1px 2.5rem), repeating-linear-gradient(90deg, #70c4b216 0 1px, transparent 1px 2.5rem);
  content: "";
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(15rem, .8fr); align-items: center; gap: clamp(2rem, 6vw, 5rem); padding-block: clamp(3.5rem, 8vw, 7rem); }
.hero h1 { font-size: clamp(2.65rem, 7vw, 5rem); font-weight: 780; letter-spacing: -.045em; }
.hero-description { color: #c0d3d8; font-size: clamp(1rem, 2vw, 1.2rem); max-width: 34rem; margin-top: 1.25rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.button { min-height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: .45rem; padding: .55rem 1rem; font-size: .95rem; font-weight: 700; text-decoration: none; }
.button.primary { background: #72e0bb; color: #132c33; border-color: #72e0bb; }
.button.primary:hover { background: #aaeacf; }
.button.secondary { background: var(--paper); color: var(--teal-dark); }
.button.secondary:hover { background: #e8f5f0; border-color: #8ebdaf; }
.hero .button.secondary { color: #edf7f3; background: #1b3746; border-color: #4b6571; }
.hero .button.secondary:hover { background: #294958; }
.architecture { padding: clamp(1.2rem, 3vw, 2rem); border-radius: .85rem; border: 1px solid #476675; background: #173542; }
.architecture h2 { font-size: 1.05rem; }
.architecture ol { list-style: none; margin: 1rem 0 0; padding: 0 0 0 .2rem; }
.architecture li { position: relative; padding: .25rem 0 1rem 1.2rem; }
.architecture li:not(:last-child)::before { content: ""; position: absolute; left: .17rem; top: .9rem; bottom: -.6rem; border-left: 1px solid #5e8c8a; }
.architecture li::after { content: ""; position: absolute; top: .65rem; left: 0; width: .39rem; height: .39rem; border-radius: 50%; background: #8de7c7; }
.architecture li:last-child { padding-bottom: 0; }
.architecture strong, .architecture span { display: block; }
.architecture span { color: #c1d9db; font-size: .9rem; }

.section { padding-block: clamp(2.25rem, 5vw, 4rem); }
.section-heading { max-width: 45rem; margin-bottom: 1.6rem; }
.section-heading h2 { font-size: clamp(1.55rem, 3.5vw, 2.1rem); }
.section-heading p { margin-top: .6rem; color: var(--muted); }
.markets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); border: 1px solid var(--line); border-radius: .65rem; overflow: hidden; gap: 1px; background: var(--line); }
.market { min-width: 0; padding: 1.25rem; background: var(--paper); display: flex; flex-direction: column; }
.market h3, .facts h3 { font-size: 1.04rem; }
.market p, .facts p { margin-top: .5rem; color: var(--muted); overflow-wrap: anywhere; }
.market a { margin-top: auto; padding-top: .85rem; align-self: start; font-size: .9rem; font-weight: 650; }
.boundaries { border-top: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.facts > div { border-left: 3px solid #6cc3af; padding-left: .9rem; }
.footer { border-top: 1px solid var(--line); padding-block: 1.4rem; color: var(--muted); font-size: .9rem; }
.footer .frame { display: flex; align-items: center; justify-content: space-between; }

.docs-layout { display: grid; grid-template-columns: minmax(13rem, 17rem) minmax(0, 1fr); align-items: start; gap: clamp(1.7rem, 5vw, 4.5rem); padding-block: 2.5rem 4rem; }
.sidebar { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow: auto; padding: 1.15rem; border: 1px solid var(--line); border-radius: .6rem; background: var(--paper); }
.sidebar h2 { font-size: 1.15rem; margin-bottom: .85rem; }
.sidebar label { font-size: .9rem; font-weight: 650; }
.sidebar input { width: 100%; border: 1px solid #a8b9c1; border-radius: .38rem; background: #fbfdfd; color: var(--ink); padding: .5rem .65rem; font: inherit; margin: .25rem 0 .2rem; }
.sidebar nav section { margin-top: 1rem; }
.sidebar nav h3 { font-size: .9rem; color: var(--muted); margin-block: 0 .4rem; }
.sidebar ul { padding: 0; margin: 0; list-style: none; }
.sidebar li a { display: grid; text-decoration: none; padding: .32rem .55rem; border-radius: .3rem; color: var(--ink); line-height: 1.35; gap: .13rem; overflow-wrap: anywhere; }
.sidebar li span { font-size: .94rem; }
.sidebar li code { color: var(--muted); font-size: .85rem; }
.sidebar li a:hover { background: #f1f7f5; }
.sidebar li a[aria-current="page"] { background: #e1f1ec; color: #07594b; font-weight: 700; }
#catalog-empty { color: var(--muted); font-size: .9rem; margin-top: .65rem; }
.documentation { min-width: 0; }
.documentation h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.02em; }
.documentation .lead { color: var(--muted); margin-top: .7rem; overflow-wrap: anywhere; }
.documentation .breadcrumb { color: var(--muted); font-size: .9rem; margin: 0 0 .7rem; }
.documentation section { margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.documentation h2 { font-size: 1.4rem; margin-bottom: .65rem; }
.documentation h3 { font-size: 1.02rem; margin-top: 1.2rem; }
.documentation p { margin-top: .65rem; }
.documentation ol { padding-left: 1.5rem; }
.documentation li + li { margin-top: .45rem; }
.documentation details { border: 1px solid var(--line); border-radius: .4rem; margin-top: .7rem; background: var(--paper); padding: .6rem .8rem; }
.documentation summary { cursor: pointer; font-weight: 650; }
.documentation summary:focus-visible { outline: 3px solid #158777; outline-offset: 3px; }
.api-origin { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: .7rem; margin: 1.45rem 0 0; }
.api-origin dt { color: var(--muted); font-weight: 650; }
.api-origin dd { margin: 0; }
.dataset-id { color: var(--teal-dark); background: #e1f1ec; border-radius: .3rem; padding: .2rem .5rem; font-size: .95rem; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--paper); border: 1px solid var(--line); border-radius: .45rem; text-align: left; min-width: min(100%, 24rem); }
thead th { color: #304c5a; background: #eef5f5; font-size: .9rem; }
th, td { padding: .65rem .8rem; vertical-align: top; overflow-wrap: anywhere; }
tbody tr + tr > * { border-top: 1px solid var(--line); }
tbody th { font-weight: 650; }
.table-scroll + p { margin-top: .9rem; }
.endpoint { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin: .75rem 0; }
.method { color: #075547; background: #dff2eb; border-radius: .25rem; font: 700 .85rem / 1.4 var(--mono); padding: .22rem .45rem; }
.command { position: relative; min-width: 0; }
pre { overflow-x: auto; white-space: pre; padding: .95rem 1.1rem; margin: .6rem 0 0; background: #132c38; color: #e4f4f1; border-radius: .45rem; font-size: .89rem; line-height: 1.6; }
.command:has(.copy:not([hidden])) pre { padding-top: 2.6rem; }
.copy { cursor: pointer; position: absolute; top: .5rem; right: .55rem; border: 1px solid #65928c; border-radius: .3rem; background: #1f4549; color: #edf8f4; padding: .25rem .5rem; line-height: 1.35; font-size: .85rem; }

@media (max-width: 54rem) {
  .hero-inner { gap: 1.65rem; }
  .docs-layout { grid-template-columns: minmax(12rem, 14rem) minmax(0, 1fr); }
}

@media (max-width: 42rem) {
  .frame { width: min(100% - 2rem, 100%); }
  .header nav { gap: .85rem; }
  .hero-inner, .docs-layout, .facts { grid-template-columns: minmax(0, 1fr); }
  .docs-layout { gap: 1.25rem; padding-top: 1rem; }
  .sidebar { position: static; max-height: 35vh; }
  .facts { gap: 1rem; }
}
