:root {
  --ink: #17212b;
  --text: #344454;
  --muted: #667788;
  --line: #dce3e9;
  --line-strong: #c7d1da;
  --paper: #ffffff;
  --paper-soft: #f7f9fb;
  --paper-blue: #eef7fb;
  --blue: #087ba9;
  --blue-dark: #075f83;
  --cyan: #11a9df;
  --green: #14804a;
  --green-soft: #eef8f2;
  --orange: #a85b0d;
  --orange-soft: #fff8eb;
  --header-h: 58px;
  --sidebar-w: 266px;
  --toc-w: 218px;
  color-scheme: light;
  font-family: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--paper); font-size: 15px; line-height: 1.65; }
a { color: var(--blue-dark); text-decoration: none; }
a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
button, input { font: inherit; }
img { max-width: 100%; }
code, pre { font-family: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace; }

.skip-link { position: fixed; z-index: 300; left: 12px; top: -60px; padding: 8px 12px; color: #fff; background: var(--blue-dark); }
.skip-link:focus { top: 10px; }

.topbar { position: sticky; top: 0; z-index: 80; height: var(--header-h); border-top: 3px solid var(--blue); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.98); }
.topbar-inner { max-width: 1480px; height: 100%; margin: auto; padding: 0 24px; display: flex; align-items: center; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 680; white-space: nowrap; }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand-mark { width: 29px; height: 29px; display: inline-grid; place-items: center; color: #fff; background: #16293b; border-bottom: 3px solid var(--cyan); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.brand-divider { color: var(--line-strong); }
.product-name { color: var(--ink); font-weight: 650; white-space: nowrap; }
.product-name:hover { text-decoration: none; }
.topnav { margin-left: 24px; display: flex; align-self: stretch; align-items: center; gap: 22px; }
.topnav a { height: 100%; display: inline-flex; align-items: center; color: #405162; font-size: 13px; font-weight: 600; border-bottom: 2px solid transparent; }
.topnav a:hover, .topnav a.current { color: var(--blue-dark); border-bottom-color: var(--cyan); text-decoration: none; }
.search-button { margin-left: auto; min-width: 210px; height: 34px; padding: 0 9px 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--muted); background: var(--paper-soft); border: 1px solid var(--line-strong); border-radius: 4px; cursor: pointer; font-size: 12px; }
.search-button:hover { border-color: #8bb7c9; background: #fff; }
kbd { padding: 1px 5px; color: #6c7a86; background: #fff; border: 1px solid var(--line); border-bottom-color: #b4c0ca; border-radius: 3px; font-size: 10px; }
.version-badge { padding: 3px 7px; color: var(--blue-dark); background: var(--paper-blue); border: 1px solid #bdd9e5; border-radius: 999px; font-size: 11px; font-weight: 700; }
.nav-toggle, .org-menu { display: none; }

/* CMAPI documentation */
.docs-grid { min-height: calc(100vh - var(--header-h)); display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr) var(--toc-w); max-width: 1480px; margin: auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.sidebar { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow: auto; padding: 22px 14px 26px; background: var(--paper-soft); border-right: 1px solid var(--line); }
.sidebar-mobile-head { display: none; }
.nav-group { margin: 0 0 12px; }
.nav-group > summary { padding: 5px 8px; color: #495a6a; cursor: pointer; font-size: 11px; font-weight: 750; letter-spacing: .055em; text-transform: uppercase; list-style: none; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary::after { content: "+"; float: right; color: #8a98a5; font-size: 14px; font-weight: 400; }
.nav-group[open] > summary::after { content: "−"; }
.nav-links { margin-top: 2px; }
.nav-link { display: block; padding: 5px 9px; color: #536474; border-left: 2px solid transparent; border-radius: 2px; font-size: 13px; line-height: 1.35; }
.nav-link:hover { color: var(--ink); background: #edf1f4; text-decoration: none; }
.nav-link.current { color: #064e6b; background: #e7f3f8; border-left-color: var(--cyan); font-weight: 650; }
.sidebar-note { margin: 24px 8px 0; padding-top: 14px; display: grid; gap: 2px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.sidebar-note strong { color: var(--green); font-size: 12px; }

.article { width: 100%; max-width: 900px; margin: 0 auto; padding: 42px 48px 80px; min-width: 0; }
.article-head { display: flex; justify-content: space-between; gap: 30px; align-items: flex-start; padding-bottom: 20px; }
.eyebrow { margin: 0 0 5px; color: var(--blue); font-size: 11px; font-weight: 760; letter-spacing: .075em; text-transform: uppercase; }
.article h1 { margin: 0; color: var(--ink); font-size: clamp(31px, 4vw, 40px); line-height: 1.16; letter-spacing: -.025em; font-weight: 670; }
.lead { max-width: 720px; margin: 9px 0 0; color: #5a6a79; font-size: 16px; line-height: 1.55; }
.source-link { margin-top: 22px; white-space: nowrap; color: var(--muted); font-size: 12px; }
.version-context { padding: 10px 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 7px 18px; color: #5c6b79; background: var(--paper-soft); border: 1px solid var(--line); font-size: 12px; }
.version-context strong { color: var(--ink); }
.stable-dot { width: 8px; height: 8px; background: #20a45e; border-radius: 50%; }

.doc-body { min-width: 0; padding-top: 14px; color: var(--text); }
.doc-body > h1:first-child { display: none; }
.doc-body h2, .doc-body h3, .api-member { scroll-margin-top: calc(var(--header-h) + 20px); }
.doc-body h2 { margin: 38px 0 13px; padding-bottom: 8px; color: var(--ink); border-bottom: 1px solid var(--line); font-size: 23px; line-height: 1.3; font-weight: 660; letter-spacing: -.012em; }
.doc-body h3 { margin: 27px 0 9px; color: var(--ink); font-size: 17px; line-height: 1.35; font-weight: 660; }
.doc-body h4 { margin: 22px 0 7px; color: var(--ink); font-size: 15px; }
.doc-body p { margin: 10px 0 16px; }
.doc-body ul, .doc-body ol { margin: 10px 0 18px; padding-left: 24px; }
.doc-body li { margin: 5px 0; }
.doc-body strong { color: #233342; }
.doc-body p code, .doc-body li code, .doc-body td code, .doc-body dd code, .lead code { padding: 1px 4px; overflow-wrap: anywhere; word-break: break-word; color: #075f83; background: #edf2f5; border-radius: 2px; font-size: .9em; }
.doc-body blockquote { margin: 20px 0; padding: 11px 15px; color: #4a5d6d; background: #f5f8fa; border-left: 3px solid #8fb7c8; }
.doc-body blockquote p { margin: 0; }
.doc-body hr { margin: 36px 0; border: 0; border-top: 1px solid var(--line); }

.code-block { width: 100%; min-width: 0; max-width: 100%; margin: 18px 0 24px; overflow: hidden; background: #f6f8fa; border: 1px solid #cfd8e0; border-radius: 4px; }
.code-toolbar { min-height: 34px; padding: 0 8px 0 14px; display: flex; align-items: center; justify-content: space-between; color: #647383; background: #edf1f4; border-bottom: 1px solid #d5dde4; font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.code-toolbar button { padding: 3px 8px; color: #4d5e6e; background: #fff; border: 1px solid #c7d0d8; border-radius: 3px; cursor: pointer; font-size: 11px; }
.code-toolbar button:hover { color: var(--blue-dark); border-color: #8fb7c8; }
.code-block pre { width: 100%; max-width: 100%; margin: 0; padding: 18px 20px; overflow: auto; white-space: pre; color: #1f2c38; font-size: 13px; line-height: 1.65; tab-size: 4; }
.code-block pre code { display: block; min-width: max-content; }
.doc-body > pre, .doc-body > .sourceCode { max-width: 100%; overflow-x: auto; }
.code-block.compact { margin: 14px 0 18px; }
.code-block.compact pre { padding: 13px 16px; }

.table-wrap { margin: 18px 0 25px; overflow-x: auto; border: 1px solid var(--line); border-radius: 3px; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table-wrap th { padding: 9px 11px; color: #364757; background: #f2f5f7; text-align: left; font-weight: 680; }
.table-wrap td { padding: 9px 11px; border-top: 1px solid var(--line); vertical-align: top; }
.table-wrap tr:nth-child(even) td { background: #fbfcfd; }
.callout { margin: 22px 0; padding: 12px 15px; background: var(--paper-blue); border: 1px solid #c9e0e9; border-left: 4px solid var(--blue); }
.callout strong { display: block; color: #17475d; }
.callout p { margin: 3px 0 0; }
.callout.warning, .callout.important { background: var(--orange-soft); border-color: #e7cfae; border-left-color: #d17a1b; }
.callout.warning strong, .callout.important strong { color: #7f470d; }

.toc { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow: auto; padding: 31px 20px; border-left: 1px solid var(--line); font-size: 12px; }
.toc > strong { display: block; margin-bottom: 8px; color: #546575; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.toc-link { display: block; padding: 4px 0; color: #71808d; line-height: 1.35; }
.toc-link.level-3 { padding-left: 10px; }
.toc-link:hover { color: var(--blue-dark); text-decoration: none; }
.toc-empty { color: #98a4ae; }
.article-footer { margin-top: 52px; padding-top: 17px; display: flex; justify-content: space-between; gap: 20px; color: #73818e; border-top: 1px solid var(--line); font-size: 11px; }

.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); margin: 26px 0; border: 1px solid var(--line); }
.quick-actions a { min-height: 105px; padding: 16px; display: flex; flex-direction: column; color: var(--text); border-right: 1px solid var(--line); }
.quick-actions a:last-child { border-right: 0; }
.quick-actions a:hover { background: #f8fbfc; text-decoration: none; }
.quick-actions strong { color: var(--blue-dark); }
.quick-actions span { margin-top: 5px; color: var(--muted); font-size: 12px; }
.architecture-flow { padding: 14px; display: flex; align-items: center; justify-content: center; gap: 10px; color: #243746; background: #f6f8fa; border: 1px solid var(--line); font-size: 13px; }
.architecture-flow span { padding: 4px 7px; background: #fff; border: 1px solid #cfd8e0; }
.architecture-flow b { color: var(--cyan); }
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.topic-grid section { padding: 15px 18px 18px 0; }
.topic-grid h3 { margin-top: 0; }
.topic-grid a { display: block; padding: 3px 0; font-size: 13px; }
.facts-table { border-top: 1px solid var(--line); }
.facts-table > div { padding: 8px 4px; display: grid; grid-template-columns: 160px 1fr; border-bottom: 1px solid var(--line); }
.facts-table strong { color: #415362; }

.api-type-meta { margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 12px; }
.reference-list, .member-list { border-top: 1px solid var(--line); }
.reference-row, .member-row { padding: 10px 5px; display: grid; grid-template-columns: minmax(170px, .55fr) 1.45fr; gap: 20px; color: var(--text); border-bottom: 1px solid var(--line); }
.reference-row:hover, .member-row:hover { color: var(--text); background: #f8fafb; text-decoration: none; }
.reference-row code, .member-row code { color: var(--blue-dark); font-size: 12px; font-weight: 680; }
.member-row { grid-template-columns: minmax(170px, .5fr) 1.4fr 64px; }
.member-row small { color: #7e8b96; text-align: right; text-transform: uppercase; font-size: 9px; letter-spacing: .04em; }
.api-member { padding: 25px 0 8px; border-bottom: 1px solid var(--line); }
.api-member-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.doc-body .api-member-head h2 { margin: 0; padding: 0; border: 0; font-family: "Cascadia Code", Consolas, monospace; font-size: 18px; }
.api-member-head span { padding: 2px 6px; color: #6b7b89; background: #f1f4f6; border: 1px solid var(--line); font-size: 9px; text-transform: uppercase; }
.member-remarks { color: #5f6e7b; }

/* Search */
.search-modal { position: fixed; inset: 0; z-index: 200; padding-top: 9vh; display: none; justify-content: center; background: rgba(18, 31, 42, .36); }
.search-modal.open { display: flex; }
.search-panel { width: min(690px, calc(100vw - 30px)); max-height: 72vh; overflow: hidden; background: #fff; border: 1px solid #aebbc6; border-radius: 6px; box-shadow: 0 22px 60px rgba(18,31,42,.18); }
.search-input-row { height: 54px; padding: 0 13px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.search-input-row input { flex: 1; border: 0; outline: 0; color: var(--ink); font-size: 15px; }
.search-input-row button { color: #667684; background: #f7f9fa; border: 1px solid var(--line); border-radius: 3px; font-size: 10px; }
.search-results { max-height: calc(72vh - 54px); padding: 6px; overflow: auto; }
.search-result { padding: 9px 11px; display: block; color: var(--text); border-radius: 3px; }
.search-result:hover, .search-result.active { color: var(--text); background: #edf6fa; text-decoration: none; }
.search-result strong { display: block; color: #274151; font-size: 13px; }
.search-result span { display: block; margin-top: 2px; color: #72808d; font-size: 11px; }
.search-empty { padding: 25px; color: var(--muted); text-align: center; }

/* SourceNine Labs website */
.org-main { max-width: 1120px; min-height: calc(100vh - 150px); margin: auto; padding: 58px 28px 88px; }
.home-heading { padding: 10px 0 50px; display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 72px; align-items: center; border-bottom: 1px solid var(--line); }
.home-heading h1, .page-heading h1 { margin: 0; color: var(--ink); font-size: clamp(38px, 6vw, 52px); line-height: 1.12; letter-spacing: -.035em; font-weight: 650; }
.home-heading p:not(.eyebrow), .page-heading > p:last-child { max-width: 720px; margin: 12px 0 0; color: #566878; font-size: 17px; line-height: 1.6; }
.brand-image { padding-left: 36px; border-left: 1px solid var(--line); }
.brand-image img { width: 290px; display: block; }
.home-actions, .project-links { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.home-actions a, .project-links a, .listing-actions a { min-height: 36px; padding: 7px 12px; display: inline-flex; align-items: center; color: #334758; background: #fff; border: 1px solid var(--line-strong); border-radius: 3px; font-size: 13px; font-weight: 640; }
.home-actions a:hover, .project-links a:hover, .listing-actions a:hover { color: var(--blue-dark); background: #f8fafb; text-decoration: none; }
.primary-link { color: #fff !important; background: var(--blue) !important; border-color: var(--blue) !important; }
.primary-link:hover { background: var(--blue-dark) !important; border-color: var(--blue-dark) !important; }
.project-section { padding: 42px 0; border-bottom: 1px solid var(--line); }
.section-head, .listing-title { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.section-head h2, .home-columns h2, .plain-note h2 { margin: 0; color: var(--ink); font-size: 23px; font-weight: 650; }
.release-label, .catalog-status { padding: 3px 8px; color: var(--green); background: var(--green-soft); border: 1px solid #bdddc9; border-radius: 999px; white-space: nowrap; font-size: 10px; font-weight: 750; letter-spacing: .03em; text-transform: uppercase; }
.project-lead { max-width: 790px; margin: 8px 0 0; font-size: 16px; }
.project-facts { margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.project-facts div { padding: 11px 14px; border-right: 1px solid var(--line); }
.project-facts div:last-child { border-right: 0; }
.project-facts dt { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.project-facts dd { margin: 2px 0 0; color: var(--ink); font-size: 13px; }
.home-columns { padding-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 62px; }
.home-columns p:not(.eyebrow) { color: #5c6c7a; }
.text-link { font-size: 13px; font-weight: 650; }
.plain-note { margin-top: 42px; padding: 24px 26px; background: var(--paper-soft); border: 1px solid var(--line); }
.plain-note p { max-width: 850px; margin-bottom: 0; }
.site-footer { max-width: 1120px; margin: auto; padding: 20px 28px; display: flex; justify-content: space-between; gap: 20px; color: #758491; border-top: 1px solid var(--line); font-size: 11px; }
.page-heading { padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.page-heading h1 { font-size: 42px; }
.listing-section { padding-top: 34px; }
.listing-heading h2 { margin: 0; color: var(--ink); font-size: 20px; }
.listing-heading p { margin: 3px 0 12px; color: var(--muted); }
.project-listing { padding: 24px 0; display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 45px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.listing-title { justify-content: flex-start; }
.listing-title h2, .listing-title h3 { margin: 0; color: var(--ink); font-size: 20px; }
.project-listing p { max-width: 750px; }
.listing-actions { display: flex; flex-direction: column; gap: 7px; }
.listing-actions a { justify-content: center; }
.tag-list { display: flex; flex-wrap: wrap; gap: 0; }
.tag-list span { padding: 0 8px; color: #71808d; border-right: 1px solid var(--line); font-size: 11px; }
.tag-list span:first-child { padding-left: 0; }
.tag-list span:last-child { border: 0; }
.about-grid { padding-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 55px; }
.about-grid section { padding: 25px 0; border-bottom: 1px solid var(--line); }
.about-grid h2 { margin: 0 0 7px; color: var(--ink); font-size: 19px; }
.about-grid p { margin: 0 0 8px; }

.catalog { margin-top: 28px; }
.catalog-toolbar { min-height: 55px; padding: 9px 0; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.catalog-toolbar input { width: 240px; height: 34px; padding: 0 10px; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 3px; outline: none; }
.catalog-toolbar input:focus { border-color: #78acc2; box-shadow: 0 0 0 2px rgba(17,169,223,.12); }
.catalog-row { padding: 21px 5px; display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 30px; color: var(--text); border-bottom: 1px solid var(--line); }
.catalog-row:hover { color: var(--text); background: #fafcfd; text-decoration: none; }
.catalog-row p { max-width: 780px; margin: 7px 0 9px; }
.catalog-meta { text-align: right; }
.catalog-meta strong { display: block; color: var(--ink); }
.catalog-meta span { display: block; color: var(--muted); font-size: 10px; }
.back-link { display: inline-block; margin-bottom: 24px; font-size: 12px; }
.mod-heading { padding-bottom: 34px; display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 55px; border-bottom: 1px solid var(--line); }
.mod-heading h1 { margin: 0; color: var(--ink); font-size: 40px; letter-spacing: -.025em; }
.mod-heading > div > p:not(.eyebrow) { max-width: 760px; color: #566878; font-size: 16px; }
.mod-heading dl { margin: 0; border-left: 1px solid var(--line); padding-left: 22px; }
.mod-heading dl div { padding: 7px 0; border-bottom: 1px solid var(--line); }
.mod-heading dt { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.mod-heading dd { margin: 1px 0 0; color: var(--ink); }
.mod-layout { display: grid; grid-template-columns: minmax(0, 1fr) 235px; gap: 60px; padding-top: 28px; }
.mod-layout article section { padding-bottom: 18px; }
.mod-layout h2 { margin: 15px 0 10px; padding-bottom: 7px; color: var(--ink); border-bottom: 1px solid var(--line); font-size: 21px; }
.mod-layout h3 { margin-bottom: 0; color: var(--ink); }
.mod-layout ul, .mod-layout ol { padding-left: 22px; }
.mod-layout li { margin: 6px 0; }
.mod-layout aside { padding-left: 22px; border-left: 1px solid var(--line); }
.mod-layout aside h2 { margin-top: 0; border: 0; color: #61717f; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.mod-layout aside section { padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.release-notes { padding: 14px 0 4px !important; border-bottom: 1px solid var(--line); }
.release-notes h3 span { margin-left: 7px; color: var(--muted); font-size: 13px; font-weight: 500; }
.release-notes time { color: var(--muted); font-size: 11px; }

.simple-page { display: grid; min-height: 100vh; place-items: center; background: var(--paper-soft); }
.simple-page main { width: min(560px, calc(100vw - 30px)); padding: 38px; background: #fff; border: 1px solid var(--line); }
.simple-page h1 { margin: 0; color: var(--ink); }

@media (max-width: 1180px) {
  .docs-grid { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
  .toc { display: none; }
  .article { max-width: 920px; }
}

@media (max-width: 900px) {
  .topnav:not(.org-nav), .brand-divider, .search-button span { display: none; }
  .search-button { min-width: auto; margin-left: auto; gap: 0; }
  .nav-toggle { display: inline-grid; place-items: center; width: 30px; height: 30px; color: #536575; background: #fff; border: 1px solid var(--line); }
  .docs-grid { display: block; border: 0; }
  .sidebar { position: fixed; z-index: 120; top: 0; left: 0; width: 290px; height: 100vh; transform: translateX(-102%); transition: transform .16s ease; box-shadow: 12px 0 34px rgba(20,35,48,.14); }
  .sidebar.open { transform: none; }
  .sidebar-mobile-head { margin: -8px 0 13px; padding: 0 4px 11px; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); }
  .sidebar-mobile-head button { color: #60717f; background: transparent; border: 0; font-size: 24px; }
  .nav-scrim.open { position: fixed; inset: 0; z-index: 110; background: rgba(20,35,48,.3); }
  .article { padding: 35px 28px 70px; }
  .quick-actions, .topic-grid { grid-template-columns: 1fr; }
  .quick-actions a { min-height: 80px; border-right: 0; border-bottom: 1px solid var(--line); }
  .quick-actions a:last-child { border-bottom: 0; }
  .architecture-flow { flex-wrap: wrap; }
  .home-heading { grid-template-columns: 1fr; gap: 28px; }
  .brand-image { order: -1; padding: 0 0 25px; border-left: 0; border-bottom: 1px solid var(--line); }
  .brand-image img { width: 235px; }
  .project-facts { grid-template-columns: 1fr 1fr; }
  .project-facts div:nth-child(2) { border-right: 0; }
  .project-facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .project-listing, .mod-heading, .mod-layout { grid-template-columns: 1fr; gap: 28px; }
  .listing-actions { flex-direction: row; flex-wrap: wrap; }
  .mod-heading dl, .mod-layout aside { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 18px; }
}

@media (max-width: 680px) {
  :root { --header-h: 54px; }
  body { font-size: 14px; }
  .topbar-inner { padding: 0 14px; }
  .org-nav { display: none; position: absolute; top: 53px; left: 0; right: 0; height: auto; margin: 0; padding: 8px 16px 14px; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); }
  .org-nav.open { display: flex; }
  .org-nav a { height: 38px; border: 0; }
  .org-menu { display: inline-block; margin-left: auto; padding: 5px 9px; color: #536575; background: #fff; border: 1px solid var(--line); }
  .product-name { font-size: 13px; }
  .version-badge { display: none; }
  .article { padding: 28px 17px 60px; }
  .article-head { display: block; }
  .source-link { display: none; }
  .article h1 { font-size: 30px; }
  .lead { font-size: 15px; }
  .facts-table > div { grid-template-columns: 1fr; gap: 2px; }
  .reference-row, .member-row { grid-template-columns: 1fr; gap: 3px; }
  .member-row small { text-align: left; }
  .article-footer, .site-footer { display: block; }
  .article-footer a { display: block; margin-top: 6px; }
  .org-main { padding: 37px 18px 65px; }
  .home-heading h1, .page-heading h1, .mod-heading h1 { font-size: 34px; }
  .home-heading p:not(.eyebrow), .page-heading > p:last-child { font-size: 15px; }
  .home-columns, .about-grid { grid-template-columns: 1fr; gap: 16px; }
  .project-facts { grid-template-columns: 1fr; }
  .project-facts div { border-right: 0; border-bottom: 1px solid var(--line); }
  .catalog-toolbar { align-items: stretch; flex-direction: column; gap: 9px; }
  .catalog-toolbar input { width: 100%; }
  .catalog-row { grid-template-columns: 1fr; gap: 8px; }
  .catalog-meta { text-align: left; }
  .site-footer span { display: block; margin: 4px 0; }
}
