/* Pages rendered from Markdown: docs, blog, legal and company pages (content.mjs).
   Tokens, font and buttons come from site.css; header and footer from layout.css.
   Layout: a topics sidebar, the article, and "On this page" on wide screens. Below 861px the sidebar folds into a menu. */

.docs-page { --side: 248px; --toc: 208px; --measure: 46rem; --tint: #EEF4F2; --code-bg: #F1EEE3; }
.docs-page .wrap { width: min(1320px, 100% - 48px); }
.docs-page :focus-visible { outline: 3px solid var(--ai); outline-offset: 3px; border-radius: 6px; }

.docs { display: grid; grid-template-columns: var(--side) minmax(0, 1fr) var(--toc); gap: 56px; align-items: start; padding-top: 32px; }
.docs--home { grid-template-columns: var(--side) minmax(0, 1fr); }
.docs--single { grid-template-columns: minmax(0, 1fr); }
.docs--page { grid-template-columns: minmax(0, 1fr) var(--toc); }
.docs-main { min-width: 0; outline: none; }
.docs--page .docs-main, .docs:not(.docs--home):not(.docs--single) .docs-main { max-width: var(--measure); }

/* Sidebar */
/* A scroll container clips what is painted outside it, focus rings included. The sidebar and "On this page" keep
   8px of room on every side for the 3px ring and its 3px offset, and a matching negative margin keeps the
   text where it was. */
.docs-side { position: sticky; top: 76px; max-height: calc(100vh - 84px); overflow-y: auto; margin: -8px; padding: 8px 8px 24px; scrollbar-width: thin; }
.docs-nav { margin-top: 20px; font-size: 15px; }
.docs-nav ul { list-style: none; margin: 0; padding: 0; }
.docs-nav a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--sumi); text-decoration: none; line-height: 1.35; }
/* The current page: a quiet filled block with the same radius on every side, darker text and more weight. */
.docs-nav a[aria-current="page"] { background: var(--tint); color: var(--ai-deep); font-weight: 620; }
.docs-nav__home { font-weight: 600; }
.docs-nav__group { margin: 22px 0 6px; padding-left: 10px; font-size: 14px; font-weight: 650; color: var(--sumi); }
@media (hover: hover) and (pointer: fine) { .docs-nav a:hover:not([aria-current]) { background: rgba(28, 28, 28, 0.05); } }

/* Search */
.docs-search { position: relative; }
.docs-search__label { display: block; font-weight: 620; font-size: 16px; margin-bottom: 8px; }
.docs-search__input { width: 100%; min-height: 44px; padding: 0 14px 0 40px; border: 1px solid rgba(28, 28, 28, 0.28); border-radius: 10px; background: var(--raised) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A5553' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px center / 18px; font: inherit; font-size: 16px; color: var(--sumi); }
.docs-search__input:focus-visible { outline: 3px solid var(--ai); outline-offset: 1px; border-color: var(--ai); }
.docs-search--hero .docs-search__input { min-height: 52px; font-size: 17px; }
.docs-search__results { list-style: none; margin: 8px 0 0; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); box-shadow: 0 18px 40px -24px rgba(13, 86, 97, 0.45); max-height: 60vh; overflow-y: auto; }
.docs-search--hero .docs-search__results { position: absolute; inset-inline: 0; z-index: 10; }
.docs-search__results a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--sumi); text-decoration: none; }
.docs-search__results a:focus-visible, .docs-search__results a:hover { background: var(--tint); outline-offset: -2px; }
.docs-search__results .r-title { display: block; font-weight: 620; font-size: 15px; color: var(--ai-deep); }
.docs-search__results .r-meta { display: block; font-size: 13px; color: var(--quiet); }
.docs-search__results .r-snippet { display: block; margin-top: 2px; font-size: 14px; color: var(--quiet); line-height: 1.45; }
.docs-search__results mark { background: #F6EBB4; color: inherit; border-radius: 3px; padding: 0 1px; }
.docs-search__results .r-empty { padding: 10px 12px; font-size: 14px; color: var(--quiet); }

/* Breadcrumbs */
.crumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; color: var(--quiet); }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: ""; width: 6px; height: 6px; margin: 0 10px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); opacity: 0.6; }
.crumbs a { color: var(--quiet); padding-block: 6px; }
.crumbs a[aria-current="page"] { color: var(--sumi); text-decoration: none; }

/* Article */
.prose { font-size: 17px; line-height: 1.65; color: var(--sumi); }
.prose h1 { font-size: clamp(32px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 680; text-wrap: balance; }
.prose__lede { margin-top: 14px; font-size: 19px; color: var(--quiet); text-wrap: pretty; }
.prose h2 { margin-top: 44px; font-size: clamp(23px, 2.4vw, 28px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 660; scroll-margin-top: 96px; }
.prose h3 { margin-top: 30px; font-size: 19px; line-height: 1.3; font-weight: 650; scroll-margin-top: 96px; }
.prose h4 { margin-top: 22px; font-size: 17px; font-weight: 650; }
.prose p, .prose ul, .prose ol, .prose .table-wrap, .prose pre, .prose blockquote, .prose .callout, .prose .figure { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-top: 6px; padding-left: 4px; }
.prose li > p:first-child, .prose li > ul, .prose li > ol { margin-top: 0; }
.prose li > ul, .prose li > ol { margin-top: 6px; }
.prose li::marker { color: var(--ai); font-weight: 600; }
.prose strong { font-weight: 640; }
.prose a { color: var(--ai); text-decoration-thickness: 1px; }
.prose code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.88em; background: var(--code-bg); border-radius: 5px; padding: 1px 5px; overflow-wrap: anywhere; }
.prose pre { background: var(--code-bg); border-radius: 10px; padding: 14px 16px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose blockquote { margin-inline: 0; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; color: var(--quiet); }
.prose blockquote > :first-child { margin-top: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.prose thead th { background: #F6F3EA; font-weight: 640; font-size: 14px; }
.prose tbody tr:last-child > * { border-bottom: 0; }
.prose tbody th { font-weight: 600; }
.figure img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); box-shadow: 0 24px 48px -36px rgba(13, 86, 97, 0.55); }
.figure figcaption, .post__hero figcaption { margin-top: 8px; font-size: 14px; color: var(--quiet); }

/* Callouts: a hairline panel with a small icon and a title. Status colour appears only in the icon and the
   title text, never as a side stripe or a loud fill, and the title always says what kind of note it is. */
.callout { --callout-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E"); padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); }
.callout > :first-child { margin-top: 0; }
.callout > :not(.callout__title) { margin-left: 26px; }
.callout p { margin-top: 6px; }
.callout__title { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: 15px; letter-spacing: 0.01em; color: var(--ai-deep); }
.callout__title::before { content: ""; flex: none; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--callout-icon) center / contain no-repeat; mask: var(--callout-icon) center / contain no-repeat; }
.callout--tip { --callout-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5M9 18h6M10 22h4'/%3E%3C/svg%3E"); }
.callout--today { --callout-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E"); }
.callout--today .callout__title { color: var(--wait); }
.callout--important { --callout-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3M12 9v4M12 17h.01'/%3E%3C/svg%3E"); }
.callout--important .callout__title { color: var(--warn); }
/* The legal draft notice is a calm neutral panel: it informs, it does not alarm. */
.callout--draft { --callout-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22h6a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v10'/%3E%3Cpath d='M14 2v4a2 2 0 0 0 2 2h4M10.4 12.6a2 2 0 1 1 3 3L8 21l-4 1 1-4Z'/%3E%3C/svg%3E"); background: #F6F3EA; }
.callout--draft .callout__title { color: var(--sumi); }
/* Copy still to be written stays hard to miss until it is replaced, with a dashed outline all the way round. */
.callout--placeholder { --callout-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3a2 2 0 0 0-2 2M19 3a2 2 0 0 1 2 2M21 19a2 2 0 0 1-2 2M5 21a2 2 0 0 1-2-2M9 3h1M9 21h1M14 3h1M14 21h1M3 9v1M21 9v1M3 14v1M21 14v1'/%3E%3C/svg%3E"); background: #FFF8D6; border: 1px dashed #8A6D00; }
.callout--placeholder .callout__title { color: var(--wait); }
@media (forced-colors: active) { .callout__title::before { background: CanvasText; } }
mark.placeholder { background: #FFF1A8; color: var(--sumi); border-radius: 4px; padding: 1px 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; font-weight: 560; }
.legal-meta { margin-top: 10px; font-size: 15px; color: var(--quiet); }

/* Previous and next */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.pager__link { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; background: var(--raised); }
.pager__link--next { text-align: right; grid-column: 2; }
.pager__dir { font-size: 13px; color: var(--quiet); }
.pager__title { font-weight: 620; color: var(--ai-deep); line-height: 1.3; }
@media (hover: hover) and (pointer: fine) { .pager__link:hover { border-color: var(--ai); } }
.docs-main__help { margin-top: 28px; font-size: 15px; color: var(--quiet); }

/* On this page */
.docs-toc { position: sticky; top: 76px; max-height: calc(100vh - 84px); overflow-y: auto; margin: -8px; padding: 8px; font-size: 14px; }
.docs-toc__title { font-size: 14px; font-weight: 650; color: var(--sumi); margin-bottom: 8px; }
.docs-toc ul { list-style: none; margin: 0; padding: 0; }
.docs-toc a { display: block; padding: 5px 0; color: var(--quiet); text-decoration: none; line-height: 1.35; }
.docs-toc a[aria-current="true"] { color: var(--ai-deep); font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .docs-toc a:hover { color: var(--ai); } }

/* Docs home */
.docs-hero h1 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 680; }
.docs-hero .prose { margin-top: 14px; color: var(--quiet); max-width: 40em; }
.docs-hero .docs-search { margin-top: 28px; max-width: 640px; }
.docs-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.docs-section { background: var(--raised); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.docs-section h2 { font-size: 22px; letter-spacing: -0.015em; font-weight: 660; scroll-margin-top: 96px; }
.docs-section__icon { display: block; width: 32px; height: 32px; margin-bottom: 12px; }
.docs-section__lede { margin-top: 6px; font-size: 15px; color: var(--quiet); }
.docs-section ul, .link-list { list-style: none; margin: 14px 0 0; padding: 0; }
.docs-section li, .link-list li { padding: 8px 0; border-top: 1px solid var(--line); }
.docs-section li a, .link-list li a { font-weight: 620; font-size: 16px; }
.docs-section li span, .link-list li span { display: block; font-size: 14px; color: var(--quiet); line-height: 1.45; margin-top: 2px; }
.prose .link-list { padding-left: 0; }

/* Blog */
.blog-main { max-width: 1080px; margin-inline: auto; width: 100%; }
.blog-hero h1 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 680; }
.blog-hero .prose { margin-top: 12px; color: var(--quiet); max-width: 40em; }
.blog-hero__rss { display: inline-block; margin-top: 12px; padding-block: 8px; font-size: 15px; font-weight: 560; }
.post-list { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.post-card { position: relative; display: flex; flex-direction: column; background: var(--raised); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.post-card img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: #EFEBDD; }
.post-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; }
.post-card h2, .post-card h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.015em; font-weight: 650; text-wrap: balance; }
.post-card h2 a, .post-card h3 a { color: var(--sumi); text-decoration: none; }
.post-card h2 a::after, .post-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.post-card h2 a:focus-visible, .post-card h3 a:focus-visible { outline: none; }
.post-card:has(a:focus-visible) { outline: 3px solid var(--ai); outline-offset: 3px; }
.post-card p { font-size: 15px; color: var(--quiet); line-height: 1.5; }
.post-card__meta { font-size: 14px; }
@media (hover: hover) and (pointer: fine) { .post-card:hover { border-color: var(--ai); } .post-card:hover h2 a, .post-card:hover h3 a { color: var(--ai-deep); } }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 13px; font-weight: 600; color: var(--ai-deep); background: var(--tint); border-radius: 999px; padding: 2px 10px; }
.prose .tags { padding-left: 0; list-style: none; }
.tags li::marker { content: none; }
.prose .tags li { margin-top: 0; padding-left: 10px; }
.post { max-width: 760px; margin-inline: auto; }
.post__head .tags { margin-bottom: 14px; }
.post__meta { margin-top: 14px; font-size: 15px; color: var(--quiet); }
.post__hero { margin-top: 28px; }
.post__hero img { width: 100%; height: auto; border-radius: 16px; background: #EFEBDD; }
/* A company page's wide scene (about): an illustration under the title, captioned as one. */
/* On a phone the scene's empty left side would leave the person tiny: crop in on them instead. */
.post h2 { margin-top: 40px; }
.post-more { max-width: 1080px; margin: 64px auto 0; padding-top: 32px; border-top: 1px solid var(--line); }
.post-more h2 { font-size: 24px; font-weight: 660; letter-spacing: -0.02em; }
.post-list--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 20px; }
.post-list--compact .post-card p:not(.post-card__meta) { display: none; }

/* Folding menu for small screens */
.docs-bar { display: none; }

@media (max-width: 1200px) {
  .docs { grid-template-columns: var(--side) minmax(0, 1fr); gap: 40px; }
  .docs--single { grid-template-columns: minmax(0, 1fr); }
  .docs--page { grid-template-columns: minmax(0, 1fr); }
  .docs-toc { display: none; }
}
@media (max-width: 860px) {
  .docs-page .wrap { width: calc(100% - 32px); }
  .docs, .docs--home { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 16px; }
  .docs-bar { display: block; border-bottom: 1px solid var(--line); background: var(--paper); }
  .docs-bar__menu { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 4px; border: 0; background: none; font: inherit; font-size: 16px; font-weight: 600; color: var(--ai-deep); cursor: pointer; }
  .docs-side { display: none; position: static; max-height: none; overflow: visible; padding: 8px 0 24px; border-bottom: 1px solid var(--line); margin: 0 0 20px; }
  .docs-side[data-open="true"] { display: block; }
  .docs-sections, .post-list, .post-list--compact { grid-template-columns: minmax(0, 1fr); }
  .prose { font-size: 16.5px; }
  .prose__lede { font-size: 17.5px; }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .pager__link--next { grid-column: 1; }
  .site-foot { margin-top: 48px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Company page banner: the wide scene, with the title and lede in its empty left side. The wall there is
   pale and calm, so dark text reads without a scrim. On narrow screens the text sits above a crop of the scene. */
.page-top { grid-column: 1 / -1; }
.page-banner { position: relative; margin: 20px 0 8px; border-radius: 16px; overflow: hidden; background: #EFEBDD; aspect-ratio: 21 / 9; min-height: 380px; display: flex; align-items: center; }
.page-banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.page-banner__text { position: relative; width: min(44%, 560px); padding: clamp(28px, 4.5vw, 72px); }
.page-banner__text h1 { margin: 0; font-size: clamp(32px, 4vw, 52px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 680; text-wrap: balance; color: var(--sumi); }
.page-banner__text .prose__lede { margin: 16px 0 0; font-size: clamp(17px, 1.4vw, 20px); color: var(--quiet); text-wrap: pretty; }
@media (max-width: 860px) {
  .page-banner { aspect-ratio: auto; min-height: 0; display: flex; flex-direction: column; align-items: stretch; background: none; border-radius: 0; overflow: visible; margin-bottom: 0; }
  .page-banner__text { width: auto; padding: 24px 0 8px; }
  .page-banner__img { position: static; aspect-ratio: 4 / 3; border-radius: 16px; object-position: 78% 50%; background: #EFEBDD; }
}
/* Scenes composed with their empty side on the right (bannerSide: right in front matter). */
.page-banner--right { justify-content: flex-end; }
.page-banner--right .page-banner__img { object-position: left center; }
/* Title banners (help center home, blog posts): a heading only, so the words can be larger than the lede allows
   and the banner shorter. Dark scenes (bannerTone: dark) take ivory words. */
.page-banner--title { margin: 8px 0 28px; aspect-ratio: 1911 / 819; min-height: 300px; }
.page-banner--title .page-banner__text { width: min(48%, 540px); padding: clamp(24px, 3.5vw, 52px); }
.page-banner--title h1 { font-size: clamp(28px, 3vw, 42px); }
.page-banner--dark { background: #1C1B1A; }
.page-banner--dark .page-banner__text h1 { color: var(--paper); }
.post-top .page-banner--title { margin-top: 4px; }
@media (max-width: 860px) {
  .page-banner--right .page-banner__img { object-position: 22% 50%; }
  /* aspect-ratio plus min-height would size the banner's width from its height and overflow the phone. */
  .page-banner--title { aspect-ratio: auto; min-height: 0; margin-bottom: 20px; }
  .page-banner--title .page-banner__text { width: auto; padding: 8px 0 16px; }
  .page-banner--dark { background: none; }
  .page-banner--dark .page-banner__text h1 { color: var(--sumi); }
  /* The title comes first in the source order of the text block; the crop follows it. */
  .page-banner--title .page-banner__text { order: -1; }
}
