:root {
  color-scheme: light;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-muted: #f2f7f7;
  --border: #d8e0e0;
  --text: #17232a;
  --text-muted: #63777d;
  --accent: #18c2b3;
  --accent-strong: #0c6f69;
  --accent-soft: #e9fbf9;
  --shadow: 0 12px 28px rgba(7, 59, 55, 0.08);
  --radius: 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

html { background: var(--bg); scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #ffffff 0, #f8fafc 460px), var(--bg);
  color: var(--text);
  font-size: 16px;
}

a {
  color: var(--accent-strong);
  text-decoration-color: rgba(12, 111, 105, 0.28);
  text-underline-offset: 3px;
}

a:hover { color: #084f4b; text-decoration-color: currentColor; }

.site-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0 auto;
  max-width: 1180px;
  padding: 24px 24px 54px;
  width: 100%;
}

.site-shell > main { flex: 1 0 auto; padding-bottom: 56px; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 16px;
  font-weight: 760;
  text-decoration: none;
}

.brand-link img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(0, 82, 76, 0.12);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.site-nav a {
  border: 1px solid transparent;
  border-radius: 999px;
  color: #375a5f;
  font-size: 14px;
  font-weight: 680;
  padding: 8px 12px;
  text-decoration: none;
}

.site-nav a[aria-current="page"], .site-nav a:hover {
  background: var(--accent-soft);
  border-color: rgba(24, 194, 179, 0.22);
  color: var(--accent-strong);
}

.docs-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 38px;
}

.docs-sidebar {
  align-self: start;
  position: sticky;
  top: 18px;
}

.docs-sidebar strong {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: .08em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.docs-search {
  margin-bottom: 18px;
}

.docs-search label {
  color: var(--text-muted);
  display: block;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.docs-search input {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
  padding: 9px 10px;
  width: 100%;
}

.docs-search input:focus {
  border-color: rgba(24, 194, 179, 0.58);
  box-shadow: 0 0 0 3px rgba(24, 194, 179, 0.14);
}

.docs-search-results {
  display: none;
  gap: 6px;
  margin-top: 8px;
  max-height: 320px;
  overflow-y: auto;
}

.docs-search-results[aria-hidden="false"] {
  display: grid;
}

.docs-search-result {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  display: grid !important;
  gap: 2px;
  padding: 9px 10px !important;
}

.docs-search-result span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 560;
  line-height: 1.35;
}

.docs-search-empty {
  color: var(--text-muted);
  font-size: 13px;
  margin: 6px 2px 0;
}

.docs-sidebar__nav {
  display: grid;
  gap: 2px;
}

.docs-nav-group {
  display: grid;
  gap: 2px;
  margin-top: 4px;
}

.docs-nav-group__label {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 760;
  padding: 8px 10px 2px;
}

.docs-sidebar__sections {
  border-left: 1px solid var(--border);
  display: grid;
  gap: 1px;
  margin: 2px 0 8px 10px;
  padding-left: 6px;
}

.docs-sidebar a.docs-sidebar__section-link {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 560;
  padding: 5px 8px;
}

.docs-sidebar a {
  border-radius: 8px;
  color: #375a5f;
  display: block;
  font-size: 14px;
  font-weight: 660;
  padding: 8px 10px;
  text-decoration: none;
}

.docs-sidebar a[aria-current="page"], .docs-sidebar a:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.doc-main {
  min-width: 0;
  max-width: 900px;
}

.doc-hero {
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
  max-width: 860px;
}

.doc-meta, .card-meta, .source-label {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 680;
}

h1, h2, h3 {
  letter-spacing: 0;
  line-height: 1.14;
  margin: 0;
}

h1 {
  font-size: 42px;
  font-weight: 780;
  max-width: 800px;
  overflow-wrap: anywhere;
}

h2 {
  font-size: 28px;
  font-weight: 740;
  margin-top: 38px;
}

h3 {
  font-size: 20px;
  font-weight: 720;
  margin-top: 28px;
}

h2[id], h3[id], .answer-box[id] { scroll-margin-top: 24px; }

.lead {
  color: #40514e;
  font-size: 18px;
  line-height: 1.45;
  margin: 0;
  max-width: 860px;
}

.doc-content p, .doc-content li {
  color: #2f4246;
  line-height: 1.62;
}

.doc-content p { margin: 16px 0 0; }

.doc-content ul, .doc-content ol {
  margin: 18px 0 0;
  padding-left: 1.2rem;
}

.source-card, .faq-item {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.answer-box {
  margin-bottom: 26px;
}

.answer-box h2 {
  font-size: 22px;
  margin-top: 0;
}

.answer-box p {
  color: #244349;
  font-size: 17px;
  margin-top: 0;
}

.answer-box--prominent {
  margin-bottom: 28px;
}

.visual-card {
  margin: 28px 0 34px;
}

.visual-card img {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
  height: auto;
  max-width: 100%;
  width: auto;
}

.visual-card figcaption {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 10px;
}

.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 18px;
  overflow-x: auto;
}

table {
  background: #ffffff;
  border-collapse: collapse;
  min-width: min(760px, 100%);
  width: 100%;
}

th, td {
  border-bottom: 1px solid var(--border);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #edf8f6;
  color: #163a3d;
  font-size: 11px;
  letter-spacing: .04em;
  line-height: 1.35;
  text-transform: uppercase;
}

td {
  color: #40514e;
  font-size: 14px;
  line-height: 1.45;
}

td:first-child { color: var(--text); }
tr:last-child td { border-bottom: 0; }

.plan-comparison-table {
  min-width: min(820px, 100%);
}

.plan-comparison-table th:first-child {
  width: 28%;
}

.plan-comparison-table th:not(:first-child) {
  width: 24%;
}

.plan-capability {
  min-width: 145px;
}

.plan-cell {
  min-width: 130px;
}

.plan-answer {
  align-items: center;
  color: #163a3d;
  display: inline-flex;
  font-weight: 800;
  gap: 7px;
  line-height: 1.25;
  outline: none;
}

.plan-answer svg {
  background: #eef8f6;
  border: 1px solid #bfe5dd;
  border-radius: 999px;
  color: #087b6e;
  flex: 0 0 22px;
  height: 22px;
  padding: 4px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 22px;
}

.plan-answer svg circle,
.plan-answer svg rect,
.plan-answer svg path {
  fill: none;
}

.plan-answer--key svg,
.plan-answer--lock svg,
.plan-answer--local svg,
.plan-answer--price svg {
  background: #f0f7f7;
  border-color: #cce0df;
  color: #2d6265;
}

.plan-answer--no svg {
  background: #6a7a78;
  border-color: transparent;
  color: #ffffff;
}

.plan-answer:focus-visible svg {
  box-shadow: 0 0 0 3px rgba(24, 194, 179, 0.2);
}

.plan-answer__label--visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.plan-answer__detail {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.numbered-flow {
  list-style: decimal;
  margin: 18px 0 0;
  padding-left: 1.5rem !important;
}

.numbered-flow li {
  color: #2f4246;
  line-height: 1.62;
  margin-top: 8px;
}

.numbered-flow li::before {
  content: none;
}

.checklist {
  list-style: disc;
  margin: 18px 0 0;
  padding-left: 1.25rem !important;
}

.checklist li {
  color: #2f4246;
  line-height: 1.62;
  margin-top: 8px;
}

.faq-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.faq-item { padding: 18px; }
.faq-item h3 { font-size: 19px; margin-top: 0; }

.source-card {
  margin-top: 40px;
  padding: 20px;
}

.source-card ul { margin-top: 10px; }

.changelog-entry {
  max-width: 820px;
}

.changelog-entry + .changelog-entry {
  margin-top: 38px;
  padding-top: 10px;
}

.changelog-entry h2 {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  font-size: 26px;
  gap: 9px;
  letter-spacing: 0;
  margin-bottom: 4px;
  margin-top: 0;
}

.changelog-date {
  color: var(--text-muted) !important;
  font-size: 13px;
  font-weight: 640;
}

.changelog-version {
  color: var(--accent-strong) !important;
  font-size: 13px;
  font-weight: 780;
  margin-top: 10px !important;
}

.changelog-list {
  margin-top: 16px !important;
  padding-left: 1.25rem !important;
}

.changelog-list li {
  color: #2f4246;
  line-height: 1.62;
  margin-top: 8px;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  gap: 12px;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 22px;
}

.site-footer p { margin: 0; }

.social-link {
  align-items: center;
  border-radius: 8px;
  color: var(--accent-strong);
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.social-link:hover { background: var(--accent-soft); }

.docs-cookie-notice {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  bottom: 18px;
  color: var(--text);
  display: flex;
  gap: 14px;
  max-width: min(520px, calc(100vw - 32px));
  padding: 12px 14px;
  position: fixed;
  right: 18px;
  z-index: 20;
}

.docs-cookie-notice p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.42;
  margin: 0;
}

.docs-cookie-notice__actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.docs-cookie-notice button {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #375a5f;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 760;
  min-height: 34px;
  padding: 7px 10px;
}

.docs-cookie-notice button:hover {
  border-color: rgba(24, 194, 179, 0.42);
  color: var(--accent-strong);
}

.docs-cookie-notice .docs-cookie-notice__accept {
  background: var(--accent);
  border-color: var(--accent);
  color: #053f3c;
}

@media (max-width: 920px) {
  .site-shell { padding: 18px 16px 44px; }
  .site-header { align-items: flex-start; flex-direction: column; margin-bottom: 34px; }
  .site-nav { justify-content: flex-start; }
  .docs-layout { grid-template-columns: 1fr; }
  .doc-main { order: 1; }
  .docs-sidebar { order: 2; position: static; }
  h1 { font-size: 34px; }
  h2 { font-size: 26px; }
  .lead { font-size: 17px; }
  .visual-card { overflow-x: auto; }
}

@media (max-width: 520px) {
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  .lead { font-size: 16px; }
  .docs-cookie-notice {
    align-items: stretch;
    bottom: 12px;
    flex-direction: column;
    left: 12px;
    right: 12px;
    max-width: none;
  }
  .docs-cookie-notice__actions { justify-content: flex-end; }
}
