:root {
  color-scheme: light;
  --paper: #f6f8f7;
  --surface: #fff;
  --ink: #142a2b;
  --muted: #496363;
  --line: #dce6e3;
  --accent: #006a63;
  --accent-light: #cdf3e8;
  --navy: #102c2e;
  --header-height: 76px;
  font-family: "Aptos", "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: calc(var(--header-height) + 24px); }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: var(--accent); text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid #168e83; outline-offset: 3px; }
button, input { font: inherit; }
button { cursor: pointer; }
.skip-link { position: fixed; left: 1rem; top: 1rem; transform: translateY(-180%); background: white; padding: .65rem; z-index: 10; }
.skip-link:focus { transform: translateY(0); }
.topbar { position: sticky; z-index: 3; top: 0; background: var(--surface); box-shadow: 0 1px var(--line); }
.topbar-inner { max-width: 1600px; height: var(--header-height); margin: auto; padding: 0 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wordmark { display: inline-grid; gap: 4px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.wordmark-name { display: block; font-size: 1.46rem; }
.header-actions { display: flex; align-items: center; gap: 24px; font-size: .88rem; font-weight: 600; }
.header-link, .header-platform { text-decoration: none; white-space: nowrap; }
.header-platform { background: var(--navy); color: white; border-radius: 6px; padding: 10px 14px; }
.header-platform:hover { background: #1d4748; }
.search-trigger, .menu-trigger { border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 7px; padding: 8px 10px; }
.search-trigger:not([hidden]) { display: flex; align-items: center; gap: 9px; }
.search-trigger kbd { display: inline-block; margin-left: 36px; background: white; border: 1px solid var(--line); padding: 0 5px; border-radius: 4px; font-size: .78rem; }
.search-icon { width: 13px; height: 13px; position: relative; border: 1.5px solid var(--muted); border-radius: 50%; margin-right: 3px; }
.search-icon::after { content: ""; position: absolute; width: 6px; height: 1.5px; background: var(--muted); transform: rotate(45deg); bottom: -2px; right: -4px; }
.menu-trigger, .mobile-external { display: none; }
.layout { max-width: 1600px; margin: auto; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.docs-nav { position: sticky; top: var(--header-height); align-self: start; max-height: calc(100vh - var(--header-height)); overflow: auto; padding: 28px 16px 28px 24px; font-size: .88rem; scrollbar-width: thin; }
.docs-nav a { display: block; padding: 7px 11px; text-decoration: none; border-radius: 6px; color: #34504f; line-height: 1.4; }
.docs-nav a:hover { background: #e9f3ef; }
.docs-nav a[aria-current="page"] { font-weight: 650; background: #dfefea; color: #07564e; }
.docs-nav-home { margin-bottom: 12px; font-weight: 650; }
.docs-nav details { border-top: 1px solid var(--line); }
.docs-nav summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 13px 11px; font-weight: 620; }
.docs-nav summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(-45deg); }
.docs-nav details[open] summary::after { transform: rotate(45deg); }
.docs-nav ul { margin: 0 0 8px 11px; padding: 0 0 0 5px; list-style: none; border-left: 1px solid var(--line); }
main { min-width: 0; border-left: 1px solid var(--line); }
.home-layout main { padding: 34px clamp(20px, 4vw, 58px) 0; }
.home-hero { display: grid; grid-template-columns: minmax(0, 1.36fr) minmax(0, .8fr); align-items: center; gap: clamp(24px, 4vw, 55px); padding: clamp(28px, 4.5vw, 70px); border-radius: 13px; color: #f3faf7; background: radial-gradient(ellipse at 98% 40%, #245b56, transparent 62%), linear-gradient(120deg, #102729, #143e3e); }
.home-hero h1 { margin: 0; font-size: clamp(2.55rem, 4.5vw, 4.65rem); line-height: 1.03; letter-spacing: -.065em; font-weight: 620; }
.home-hero > div > p { max-width: 43ch; line-height: 1.65; color: #d1e5e0; margin: 18px 0 25px; font-size: clamp(1rem, 1.35vw, 1.15rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.hero-actions a { border: 1px solid transparent; border-radius: 6px; padding: 10px 12px; text-decoration: none; font-size: .9rem; font-weight: 650; }
.primary-action { background: var(--accent-light); color: #123632; }
.primary-action:hover { background: #b4ebde; }
.hero-actions .secondary-action { color: #f3faf7; border-color: #63958d; }
.secondary-action:hover { background: #285b56; }
.hero-actions span { margin-inline-start: .2em; }
.hero-guide { display: grid; gap: 8px; align-self: center; min-width: 0; padding: 13px; background: #183e3d; border: 1px solid #64958d; border-radius: 9px; color: white; text-decoration: none; }
.hero-guide:hover { background: #27524d; }
.hero-guide-image { background: #f7f8fa; border-radius: 5px; overflow: hidden; }
.hero-guide img { width: 100%; height: auto; display: block; }
.hero-guide > div:nth-child(2) { display: flex; justify-content: space-between; gap: 8px; margin-top: 3px; }
.hero-guide strong { font-size: .94rem; font-weight: 650; }
.hero-guide p { margin: 0; color: #d1e5e0; font-size: .83rem; line-height: 1.5; }
.home-section { margin-top: clamp(30px, 4vw, 48px); }
.home-section h2 { font-size: clamp(1.45rem, 2.3vw, 2rem); letter-spacing: -.04em; margin: 0 0 15px; line-height: 1.2; }
.task-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.task-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; color: var(--ink); padding: 20px; text-decoration: none; }
.task-card:hover { border-color: #79b6a9; background: #f5fcf8; }
.task-card strong, .browse-grid a { display: flex; justify-content: space-between; gap: 9px; }
.task-card strong span, .browse-grid span { color: var(--accent); }
.task-card p { margin: 8px 0 0; color: var(--muted); line-height: 1.5; font-size: .91rem; }
.browse-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.browse-grid a { padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.browse-grid a:hover { text-decoration: underline; }
.article-layout { display: grid; grid-template-columns: minmax(0, 840px) minmax(146px, 185px); justify-content: start; gap: clamp(24px, 4vw, 55px); padding: 34px clamp(22px, 4vw, 60px) 0; background: var(--surface); }
.article-content { min-width: 0; line-height: 1.68; }
.article-content :where(h1, h2, h3, h4) { line-height: 1.22; text-wrap: balance; }
.article-content h1 { font-size: clamp(2rem, 3.4vw, 3.5rem); letter-spacing: -.055em; margin: 12px 0 18px; }
.article-content h2 { letter-spacing: -.03em; font-size: 1.6rem; margin: 2em 0 .65em; }
.article-content h3 { font-size: 1.22rem; margin-top: 1.75em; }
.article-content h4 { font-size: 1.05rem; }
.article-content p, .article-content ul, .article-content ol { margin: 0 0 1em; }
.article-content li + li { margin-top: .28em; }
.article-content .breadcrumb { font-size: .83rem; color: var(--muted); }
.breadcrumb span { margin-inline: .35em; }
.article-content img { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; }
.article-content hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }
.article-content blockquote { margin: 1.4em 0; padding: .9em 1em .15em; border: 1px solid #cce4de; border-left: 3px solid var(--accent); border-radius: 6px; background: #eef8f4; }
.article-content table { border-collapse: collapse; text-align: left; font-size: .92rem; }
.article-content :is(th, td) { border: 1px solid var(--line); padding: .55em .7em; }
.article-content th { background: #edf5f1; color: #173e39; }
.table-wrap { overflow-x: auto; margin: 1em 0; }
.article-content img[src*="shields.io"] { border: 0; }
.article-content code { background: #edf3f0; padding: .15em .3em; border-radius: 4px; overflow-wrap: anywhere; font-size: .88em; }
.article-content pre { overflow: auto; background: #122c2e; color: #e8f5ee; border-radius: 8px; padding: 15px; }
.article-content pre code { background: transparent; padding: 0; overflow-wrap: normal; }
.contents { align-self: start; position: sticky; top: calc(var(--header-height) + 28px); max-height: calc(100vh - var(--header-height) - 36px); overflow-y: auto; padding-left: 14px; border-left: 1px solid var(--line); }
.contents h2 { margin: 0 0 8px; font-size: .85rem; }
.contents ul, .search-results { list-style: none; margin: 0; padding: 0; }
.contents a { display: block; margin-bottom: 8px; text-decoration: none; color: var(--muted); font-size: .81rem; line-height: 1.4; }
.contents a:hover { text-decoration: underline; }
.contents .subheading a { padding-left: 10px; }
.docs-footer { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 15px; padding: 19px 0 24px; margin-top: 34px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.docs-footer a { color: var(--muted); }
.search-dialog { margin: min(14vh, 100px) auto auto; width: min(600px, calc(100% - 24px)); max-height: 75vh; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 20px; box-shadow: 0 20px 80px #102c2e55; }
.search-dialog::backdrop { background: #102c2e99; }
.search-dialog-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; font-weight: 650; }
.search-dialog-header button { background: var(--paper); border: 1px solid var(--line); border-radius: 5px; width: 32px; height: 32px; color: var(--ink); }
.search-dialog input { width: 100%; border: 1px solid #91aaa6; border-radius: 7px; padding: 11px 13px; }
.search-status { color: var(--muted); font-size: .9rem; }
.search-results a { display: block; padding: 9px 11px; margin: 3px 0; border-radius: 6px; text-decoration: none; font-weight: 600; }
.search-results a:hover, .search-results a:focus-visible { background: #e4f2ec; }
.search-results small { display: block; margin-top: 2px; color: var(--muted); font-weight: 400; }
@media (max-width: 1120px) {
  .layout { grid-template-columns: 220px minmax(0, 1fr); }
  .home-hero { grid-template-columns: 1fr; }
  .hero-guide { width: min(100%, 435px); }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .contents { position: static; max-height: 15rem; margin: 1.5rem 0 1rem; }
}
@media (max-width: 760px) {
  :root { --header-height: 62px; }
  .topbar-inner { padding: 0 16px; gap: 10px; }
  .header-actions { gap: 7px; font-size: .82rem; }
  .search-trigger kbd, .header-link, .header-platform { display: none; }
  .menu-trigger:not([hidden]) { display: block; }
  .layout { display: block; }
  .docs-nav { position: static; max-height: none; padding: 12px 16px; background: #edf6f2; border-bottom: 1px solid var(--line); }
  .menu-ready .docs-nav:not(.is-open) { display: none; }
  .mobile-external { display: flex; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
  main { border-left: 0; }
  .home-layout main, .article-layout { padding: 20px 16px 0; }
  .home-hero { padding: 24px; gap: 20px; }
  .home-hero h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
  .article-layout { gap: 18px; }
  .article-layout .docs-footer { margin-top: 10px; }
}
@media (max-width: 470px) {
  .task-grid, .browse-grid { grid-template-columns: 1fr; }
  .hero-actions a { width: 100%; }
}
