/* DAWntless documentation pages (dawntless/docs/). Loaded after styles.css, which provides the fonts and the variables. */
.docs-page{background:#000;color:#f4f4ef}
html:has(.docs-page){scroll-padding-top:20px}

/* Header */
.docs-header{background:#000}
.docs-header-inner{margin:0 var(--gutter);min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid var(--line)}
.docs-header-nav{display:flex;gap:28px}
.docs-header-nav a{font-family:var(--mono);font-size:12px;letter-spacing:.05em;padding:14px 0;color:#b5b5b0;white-space:nowrap}
.docs-header-nav a:hover,.docs-header-nav a[aria-current=page]{color:#fff}
.docs-header-nav a[aria-current=page]{text-decoration:underline;text-underline-offset:6px}

/* Title band */
.docs-hero{padding:38px var(--gutter) 60px;background:#000}
.docs-hero .section-label{color:#9d9d98;border-color:#4a4a4a}
.docs-hero h1{font-family:var(--display);font-size:clamp(50px,6.4vw,100px);font-weight:600;line-height:.92;letter-spacing:-.02em;margin:62px 0 0;max-width:15em;overflow-wrap:break-word}
.docs-lead{font-family:var(--mono);font-size:13px;line-height:1.75;letter-spacing:.02em;color:#a9a9a4;max-width:68ch;margin:28px 0 0}

/* Paper body: guide list on the left, the guide on the right */
.docs-body{--docs-side:250px;--docs-gap:clamp(40px,6vw,104px);background:var(--paper);color:var(--ink);color-scheme:light;display:grid;grid-template-columns:var(--docs-side) minmax(0,760px);gap:var(--docs-gap);padding:56px var(--gutter) 110px}
.docs-sidebar{position:sticky;top:24px;align-self:start;max-height:calc(100vh - 48px);overflow-y:auto;overscroll-behavior:contain;padding:2px 8px 12px 2px;margin-left:-2px}
.docs-sidebar-label{font-family:var(--mono);font-size:12px;letter-spacing:.05em;color:#4d4d48;padding-bottom:14px;border-bottom:1px solid var(--ink);margin:0 0 8px}
.docs-nav{list-style:none;margin:0;padding:0}
.docs-nav>li>a{display:grid;grid-template-columns:30px 1fr;gap:6px;padding:7px 0 7px 12px;border-left:2px solid transparent;font-size:15px;line-height:1.35}
.docs-nav .num{font-family:var(--mono);font-size:11px;color:#6a6a64;padding-top:2px}
.docs-nav>li>a:hover{border-left-color:#9a9a93}
.docs-nav>li>a[aria-current=page]{border-left-color:var(--ink);font-weight:600}.docs-nav>li>a[aria-current=page] .num{font-weight:500}
.docs-toc{list-style:none;margin:2px 0 12px 50px;padding:0;border-left:1px solid #c2c2bb}
.docs-toc a{display:block;padding:5px 0 5px 12px;font-size:13px;line-height:1.35;color:#46463f}
.docs-toc a:hover{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.docs-main{min-width:0}
.docs-menus{display:none}

/* The guide */
.doc{font-size:17px;line-height:1.72;overflow-wrap:break-word}
.doc>p:first-child{font-size:20px;line-height:1.6}
.doc p{margin:0 0 1.15em}
.doc a{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em}
.doc a:hover{text-decoration-thickness:2px;color:#3d3d38}
.doc strong{font-weight:600}
.doc-heading{display:flex;align-items:baseline;gap:.5em}
.doc-heading h2,.doc-heading h3,.doc-heading h4,.doc-heading h5,.doc-heading h6{margin:0;scroll-margin-top:20px}
.doc-heading.level-1,.doc-heading.level-2{margin:76px 0 24px;padding-top:20px;border-top:1px solid var(--ink)}
.doc-heading h1,.doc-heading h2{font-family:var(--display);font-size:clamp(36px,3.4vw,48px);font-weight:600;line-height:1;letter-spacing:-.01em}
.doc-heading.level-3{margin:48px 0 14px}
.doc-heading h3{font-size:23px;font-weight:600;line-height:1.3;letter-spacing:-.01em}
.doc-heading.level-4,.doc-heading.level-5,.doc-heading.level-6{margin:36px 0 10px}
.doc-heading h4,.doc-heading h5,.doc-heading h6{font-size:18px;font-weight:600;line-height:1.35}
.doc>.doc-heading:first-child{margin-top:0}
.heading-anchor{font-family:var(--mono);font-size:15px;font-weight:400;color:#6a6a64;text-decoration:none!important;padding:4px 6px;opacity:0}
.doc-heading:hover .heading-anchor,.heading-anchor:focus-visible{opacity:1}
@media(hover:none){.heading-anchor{opacity:.55}}
.doc ul,.doc ol{margin:0 0 1.2em;padding-left:1.45em}
.doc ul{list-style:square}
.doc li{margin:.45em 0;padding-left:.2em}
.doc li>p{margin-bottom:.6em}
.doc li>ul,.doc li>ol{margin:.35em 0 .6em}
.doc ol>li::marker{font-family:var(--mono);font-size:.82em;color:#4d4d48}
.doc ul>li::marker{color:#5f5f59}
.doc code{font-family:var(--mono);font-size:.84em;background:#dfdfd8;padding:.1em .34em;border-radius:2px;overflow-wrap:break-word}
/* Code may grow past the text column into the free space on the right, then scrolls */
.doc pre{background:#0d0d0d;color:#e8e8e3;color-scheme:dark;font-family:var(--mono);font-size:13px;line-height:1.6;padding:20px 22px;margin:10px 0 30px;overflow-x:auto;white-space:pre;tab-size:4;width:max-content;min-width:100%;max-width:calc(100vw - 2 * var(--gutter) - var(--docs-side) - var(--docs-gap) - 16px)}
.doc pre code{font:inherit;background:none;padding:0;border-radius:0;overflow-wrap:normal}
.doc blockquote{margin:0 0 1.2em;padding:2px 0 2px 20px;border-left:3px solid var(--ink)}
.doc hr{border:0;border-top:1px solid var(--ink);margin:48px 0}

/* Tables scroll sideways when they do not fit */
.table-wrap{overflow-x:auto;margin:10px 0 32px;border-top:1px solid var(--ink);
  /* soft edge shadows show that a wide table scrolls */
  background:linear-gradient(to right,var(--paper) 30%,rgba(238,238,234,0)) left center/40px 100% no-repeat local,
    linear-gradient(to left,var(--paper) 30%,rgba(238,238,234,0)) right center/40px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%,rgba(0,0,0,.2),rgba(0,0,0,0)) left center/14px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%,rgba(0,0,0,.2),rgba(0,0,0,0)) right center/14px 100% no-repeat scroll}
.doc table{width:100%;border-collapse:collapse;font-size:15px;line-height:1.55}
.doc th{font-family:var(--mono);font-size:12px;font-weight:500;letter-spacing:.04em;text-align:left;vertical-align:bottom;padding:12px 18px 12px 0;border-bottom:1px solid var(--ink);color:#3d3d38}
.doc td{padding:13px 18px 13px 0;vertical-align:top;border-bottom:1px solid #b7b7b0}
.doc th:last-child,.doc td:last-child{padding-right:0}
.doc td code{font-size:.86em}

/* Docs index: the guide list */
.guide-list{list-style:none;margin:14px 0 44px!important;padding:0!important;border-top:1px solid var(--ink)}
.guide-list li{position:relative;display:grid;grid-template-columns:44px minmax(0,1fr) 26px;gap:6px 16px;margin:0;padding:22px 0 24px;border-bottom:1px solid #9a9a93}
.guide-num{font-family:var(--mono);font-size:12px;color:#5f5f5a;padding-top:9px}
.doc .guide-name{font-family:var(--display);font-size:clamp(28px,2.6vw,36px);font-weight:600;line-height:1.05;text-decoration:none}
.guide-name::after{content:'';position:absolute;inset:0}
.guide-desc{grid-column:2;font-size:15px;line-height:1.6;color:#3a3a36}
.guide-arrow{grid-column:3;grid-row:1;font-size:22px;padding-top:4px;text-align:right}
.guide-list li:hover .guide-name{color:#5a5a55}
.guide-list li:hover .guide-arrow{transform:translateX(3px)}
.guide-arrow{transition:transform .15s}

/* Previous / next */
.docs-pager{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:80px;border-top:1px solid var(--ink)}
.docs-pager a{display:block;padding:22px 0 6px;font-family:var(--display);font-size:28px;font-weight:600;line-height:1.1}
.docs-pager a span{display:block;font-family:var(--mono);font-size:12px;font-weight:400;letter-spacing:.05em;color:#55554f;margin-bottom:8px}
.docs-pager-next{grid-column:2;text-align:right}
.docs-pager a:hover{color:#5a5a55}

/* Footer */
.docs-footer{background:#000;color:#a0a0a0;padding:26px var(--gutter) 30px}
.docs-footer-bottom{border-top:1px solid #555;padding-top:24px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:14px 25px;font-family:var(--mono);font-size:12px;letter-spacing:.05em}
.docs-footer-links{display:flex;flex-wrap:wrap;gap:12px 28px}
.docs-footer a{color:#eee}
.docs-footer a:hover{color:#f06b32}

/* Focus: accent ring, with a dark inner ring so it also reads on paper */
.docs-body a:focus-visible,.docs-body summary:focus-visible,.docs-body [tabindex]:focus-visible{outline:3px solid #f06b32;outline-offset:2px;box-shadow:0 0 0 2px var(--ink)}
.docs-page .table-wrap:focus-visible,.docs-page pre:focus-visible{outline-offset:3px}
.docs-header a:focus-visible,.docs-footer a:focus-visible{outline:2px solid #f06b32;outline-offset:4px}

/* Tablets and phones: the guide list becomes two menus above the guide */
@media(max-width:900px){
  .docs-body{grid-template-columns:minmax(0,1fr);gap:0;padding-top:26px;padding-bottom:80px}
  .docs-sidebar{display:none}
  .doc pre{width:auto;max-width:none}
  .docs-menus{display:block;margin-bottom:40px;border-top:1px solid var(--ink)}
  .docs-menu{border-bottom:1px solid var(--ink)}
  .docs-menu summary{list-style:none;display:flex;align-items:center;gap:14px;min-height:50px;padding:10px 0;cursor:pointer;font-family:var(--mono);font-size:12px;letter-spacing:.05em}
  .docs-menu summary::-webkit-details-marker{display:none}
  .docs-menu summary::after{content:'+';margin-left:auto;font-family:var(--body);font-size:24px;line-height:1}
  .docs-menu[open] summary::after{content:'−'}
  .docs-menu-current{font-family:var(--body);font-size:15px;letter-spacing:0;font-weight:600}
  .docs-menu nav{padding:4px 0 16px}
  .docs-menu .docs-nav>li>a{padding:9px 0 9px 12px}
  .docs-menu-list{list-style:none;margin:0;padding:0;columns:2 220px;column-gap:24px}
  .docs-menu-list a{display:block;padding:7px 0;font-size:15px;line-height:1.35;break-inside:avoid}
  .docs-menu-list li{break-inside:avoid}
  .doc-heading.level-1,.doc-heading.level-2{margin-top:60px}
}
@media(max-width:650px){
  .docs-header-inner{min-height:70px;gap:16px}
  .docs-header-inner .brand{font-size:15px}
  .docs-header-nav{gap:18px}
  .docs-hero{padding:25px var(--gutter) 44px}
  .docs-hero .section-label>span:last-child{text-align:right;max-width:52%}
  .docs-hero h1{font-size:clamp(44px,12.5vw,64px);margin-top:40px;line-height:.95}
  .docs-lead{font-size:12px;margin-top:22px}
  .doc{font-size:16px;line-height:1.7}
  .doc>p:first-child{font-size:18px}
  .doc-heading h1,.doc-heading h2{font-size:34px}
  .doc-heading h3{font-size:21px}
  .doc ul,.doc ol{padding-left:1.25em}
  .doc pre{font-size:12px;padding:16px;margin-left:calc(var(--gutter) * -1);margin-right:calc(var(--gutter) * -1)}
  .doc table{font-size:14px}
  .doc table.cols-3{min-width:520px}
  .doc table.cols-4,.doc table.cols-5{min-width:620px}
  .guide-list li{grid-template-columns:34px minmax(0,1fr) 20px;gap:4px 10px;padding:18px 0 20px}
  .docs-pager{grid-template-columns:1fr;gap:0}
  .docs-pager-next{grid-column:1;text-align:left}
  .docs-pager a{font-size:24px;padding:18px 0 14px}
  .docs-pager a+a{border-top:1px solid #b7b7b0}
  .docs-footer-bottom{flex-direction:column;line-height:1.8}
}
@media(prefers-reduced-motion:reduce){.guide-arrow{transition:none}.guide-list li:hover .guide-arrow{transform:none}}
@media print{
  .docs-page,.docs-hero,.docs-body{background:#fff;color:#000}
  .docs-header-nav,.docs-sidebar,.docs-menus,.docs-pager,.heading-anchor,.skip-link{display:none}
  .docs-body{display:block;padding:0}
  .docs-hero{padding:0 0 20px}.docs-hero h1{margin-top:20px;font-size:40px}
  .doc pre{white-space:pre-wrap;max-width:none;width:auto}
  .table-wrap{overflow:visible;background:none}
}

/* Long asset names in tables wrap instead of pushing the table wider than a phone screen. */
.doc td{overflow-wrap:break-word}
@media(max-width:650px){.section-label{flex-wrap:wrap;row-gap:4px}.section-label>span:last-child{max-width:none;margin-left:auto}}
