.docs-page {
  margin: 0;
  padding: 28px 32px 0;
  color: #292d24;
}

.docs-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.docs-header a { text-decoration: none; }
.docs-header a:hover { color: #171717; }

.docs-page .docs-heading-link {
  margin-left: 4px;
  color: #88917e;
  font: inherit;
  text-decoration: none;
  opacity: 0;
}

.docs-page :is(h1, h2, h3, summary):hover > .docs-heading-link,
.docs-page .docs-heading-link:focus-visible { opacity: 1; }

@media (hover: none) {
  .docs-page .docs-heading-link { opacity: 1; }
}

.docs-page :is(h1, h2, h3)[id] { scroll-margin-top: 24px; }

.docs-header h1 {
  margin: 104px 0 16px;
  color: #292d24;
  font-size: clamp(48px, 7vw, 76px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.07em;
}

.docs-header .docs-contents {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 48px;
  padding: 18px 0 20px;
  border-top: 1px solid #e2dfd5;
  border-bottom: 1px solid #e2dfd5;
  color: #586349;
  font-size: 13px;
}

.docs-contents a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.docs-page .usage-section {
  max-width: none;
  margin: 0;
  padding: 56px 0;
  border-bottom: 1px solid #e2dfd5;
  scroll-margin-top: 24px;
}

.docs-page .usage-section:last-child { border-bottom: 0; }
.docs-page .usage-content { max-width: 680px; }

.docs-page .usage-content h2 {
  margin-bottom: 16px;
  color: #292d24;
  font-size: clamp(29px, 4vw, 38px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.045em;
}

.docs-page .section { border-color: #e2dfd5; }
.docs-page .section h3 { color: #292d24; }
.docs-page .section p { color: #777b6e; line-height: 1.75; }
.docs-page .section p code { color: #42483a; }
.docs-page .section a { color: #586349; text-underline-offset: 3px; }

.docs-page .code-block {
  border: 1px solid #e2dfd5;
  border-radius: 5px;
  box-shadow: 0 4px 22px #3f392c06;
}

.docs-page .code-block pre { padding: 20px; }

.docs-anchor { scroll-margin-top: 24px; }

.feature-index {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 40px 56px;
  max-width: 920px;
  margin-top: 40px;
}

.feature-group h3 {
  margin: 0 0 12px;
  color: #292d24;
  font-size: 18px;
  font-weight: 500;
}

.feature-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #e2dfd5;
}

.feature-group li {
  display: grid;
  grid-template-columns: minmax(150px, 2fr) 3fr;
  gap: 4px 16px;
  padding: 10px 0;
  border-bottom: 1px solid #e2dfd5;
  font-size: 14px;
  line-height: 1.5;
}

.feature-group a {
  color: #42483a;
  font-weight: 500;
  text-decoration: none;
}

.feature-group a:hover {
  color: #171717;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.feature-group p {
  margin: 0;
  color: #777b6e;
}

.docs-note {
  margin: 24px 0 0;
  padding: 12px 0 12px 20px;
  border-left: 2px solid #a9af99;
  color: #777b6e;
  font-size: 15px;
  line-height: 1.75;
}

.docs-note p { margin: 0; }

.docs-details {
  scroll-margin-top: 24px;
}

.docs-details summary {
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: 600;
  color: #292d24;
}

.docs-details h3 {
  margin-top: 28px;
}

.docs-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
}

.docs-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 1.5;
}

.docs-table-wrap th,
.docs-table-wrap td {
  padding: 10px 12px;
  border-bottom: 1px solid #e2dfd5;
  text-align: left;
  vertical-align: top;
}

.docs-table-wrap th {
  color: #586349;
  font-weight: 600;
}

.docs-table-wrap td:first-child {
  white-space: nowrap;
}

.docs-page :focus-visible { outline: 2px solid #586349; outline-offset: 4px; }

@media (max-width: 640px) {
  .docs-page { padding: 20px 16px 0; }
  .docs-topbar { gap: 12px; }
  .docs-header h1 { margin-top: 72px; }
  .docs-header .docs-contents { margin-top: 36px; }
  .docs-page .usage-section { padding: 44px 0; }
  .feature-index { grid-template-columns: 1fr; gap: 32px; }
  .feature-group li { grid-template-columns: 1fr; }
}

.docs-page .markdown-themes { margin: 20px 0; }
.docs-page .markdown-themes-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.docs-page .markdown-themes-tabs button {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 5px 12px;
  background: transparent;
  color: #777b6e;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.docs-page .markdown-themes-tabs button:hover { color: #292d24; }
.docs-page .markdown-themes-tabs button[aria-selected="true"] { border-color: #e2dfd5; background: #fff; color: #292d24; }
.docs-page .markdown-themes-tabs button:focus-visible { outline: 2px solid #586349; outline-offset: 2px; }
.docs-page .markdown-themes iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 1px solid #e2dfd5;
  border-radius: 8px;
  background: #fff;
}
.docs-page .section .markdown-themes-caption { margin: 10px 0 0; font-size: 14px; }
@media (max-width: 640px) {
  .docs-page .markdown-themes iframe { height: 360px; }
}
