/* ============================================================================
   DeskDrawer — design system
   Premium dark minimalism: one accent gradient, generous space, quiet motion.
   Marketing pages and documentation share the same tokens so the site reads as
   one product, not a site plus a wiki bolted onto it.
   ========================================================================== */

:root{
  --bg:#090a0e; --bg2:#0d0f16; --bg3:#0b0d13;
  --card:rgba(255,255,255,.035); --card-hi:rgba(255,255,255,.06);
  --border:rgba(255,255,255,.09); --border-hi:rgba(255,255,255,.16);
  --text:#f4f6fa; --muted:#9aa2b2; --muted2:#828a9a; --faint:#6b7383;
  --a1:#7aa9ff; --a2:#57cfa2; --glow:rgba(122,169,255,.30);
  --grad:linear-gradient(125deg,#7aa9ff 0%,#57cfa2 100%);
  --radius:20px; --radius-sm:12px; --radius-xs:8px;
  --maxw:1160px; --prose:70ch;
  --shadow:0 30px 80px -30px rgba(0,0,0,.75);
  --font:"Segoe UI Variable Display","Segoe UI Variable","Segoe UI",system-ui,-apple-system,"SF Pro Display",Roboto,Helvetica,Arial,sans-serif;
  --mono:"Cascadia Code","SF Mono",ui-monospace,Menlo,Consolas,"Liberation Mono",monospace;
  --nav-h:66px;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  font-family:var(--font);background:var(--bg);color:var(--text);
  line-height:1.65;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
  overflow-x:hidden;font-size:16px;
}
a{color:inherit;text-decoration:none}
img,svg{max-width:100%;display:block;height:auto}
::selection{background:rgba(122,169,255,.28)}
:focus-visible{outline:2px solid var(--a1);outline-offset:3px;border-radius:6px}
[id]{scroll-margin-top:calc(var(--nav-h) + 24px)}

.skip{
  position:absolute;left:-9999px;top:8px;z-index:100;padding:12px 20px;border-radius:10px;
  background:var(--a1);color:#06120c;font-weight:700;
}
.skip:focus{left:16px}

/* atmospheric background — fixed, so it never repaints on scroll */
body::before{
  content:"";position:fixed;inset:0;z-index:-2;pointer-events:none;
  background:
    radial-gradient(900px 600px at 78% -8%, rgba(122,169,255,.14), transparent 60%),
    radial-gradient(760px 620px at 12% 8%, rgba(87,207,162,.10), transparent 58%);
}
body::after{
  content:"";position:fixed;inset:0;z-index:-2;pointer-events:none;opacity:.5;
  background-image:linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);
  background-size:64px 64px;
  mask-image:radial-gradient(circle at 50% 0%, #000 0%, transparent 70%);
}

/* ------------------------------------------------------------------ layout */
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 24px}
.narrow{max-width:860px}
section{padding:88px 0}
section.wrap:not(.hero){padding-top:88px;padding-bottom:88px}
@media(max-width:700px){section,section.wrap:not(.hero){padding-top:60px;padding-bottom:60px}}

.eyebrow{
  display:inline-flex;align-items:center;gap:8px;font-size:12.5px;font-weight:600;letter-spacing:.05em;
  color:var(--muted);text-transform:uppercase;padding:7px 14px;border:1px solid var(--border);
  border-radius:999px;background:var(--card);
}
.eyebrow .dot{width:7px;height:7px;border-radius:50%;background:var(--a2);box-shadow:0 0 12px var(--a2)}
.grad-text{background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}

/* ------------------------------------------------------------------ buttons */
.btn{
  --pad:13px 22px;
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:var(--pad);border-radius:var(--radius-sm);font-weight:600;font-size:15px;
  border:1px solid transparent;cursor:pointer;white-space:nowrap;
  /* A label can be longer than the column it sits in — "Get DeskDrawer on the Microsoft
     Store" is 384px, wider than a 320px phone. Never let a button exceed its container;
     the phone block below also lets the label wrap instead of being clipped. */
  max-width:100%;
  transition:transform .25s cubic-bezier(.2,.8,.2,1),box-shadow .25s,background .25s,border-color .25s;
}
.btn svg{width:18px;height:18px;flex:none}
.btn-primary{background:var(--grad);color:#06120c;box-shadow:0 10px 30px -8px var(--glow),inset 0 1px 0 rgba(255,255,255,.35)}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 18px 44px -10px var(--glow),inset 0 1px 0 rgba(255,255,255,.45)}
.btn-ghost{background:var(--card);border-color:var(--border-hi);color:var(--text)}
.btn-ghost:hover{background:var(--card-hi);transform:translateY(-2px);border-color:rgba(255,255,255,.28)}
.btn-lg{--pad:16px 30px;font-size:16.5px;border-radius:14px}
.btn-sm{--pad:9px 16px;font-size:14px}

/* ------------------------------------------------------------------ nav */
header.nav{
  position:sticky;top:0;z-index:50;border-bottom:1px solid transparent;
  transition:background .3s,border-color .3s,backdrop-filter .3s;
}
header.nav.scrolled{background:rgba(9,10,14,.78);backdrop-filter:blur(14px) saturate(140%);border-bottom-color:var(--border)}
.nav-inner{display:flex;align-items:center;gap:20px;height:var(--nav-h)}
.brand{display:flex;align-items:center;gap:11px;font-weight:700;font-size:17.5px;letter-spacing:-.01em;flex:none}
.brand .mark{width:29px;height:29px;flex:none}
.nav-links{display:flex;align-items:center;gap:2px;margin-right:auto}
.nav-links .link{padding:8px 13px;border-radius:9px;color:var(--muted);font-weight:500;font-size:14.5px;transition:color .2s,background .2s}
.nav-links .link:hover{color:var(--text);background:var(--card)}
.nav-links .link.is-active{color:var(--text);background:var(--card)}
.nav-end{display:flex;align-items:center;gap:10px;margin-left:auto}

/* mobile menu — <details>, so it works with JavaScript disabled */
.menu{display:none;position:relative}
.menu summary{
  /* 44px, not 40px: this is the only way to reach the nav on every width below 940px */
  list-style:none;cursor:pointer;width:44px;height:44px;border-radius:10px;
  border:1px solid var(--border-hi);background:var(--card);display:grid;place-items:center;
}
.menu summary::-webkit-details-marker{display:none}
.menu .bars,.menu .bars::before,.menu .bars::after{
  content:"";display:block;width:16px;height:2px;border-radius:2px;background:var(--text);
}
.menu .bars{position:relative}
.menu .bars::before{position:absolute;top:-5px}
.menu .bars::after{position:absolute;top:5px}
.menu[open] summary{border-color:var(--a1)}
.menu-panel{
  position:absolute;right:0;top:52px;width:230px;padding:10px;display:flex;flex-direction:column;gap:2px;
  background:rgba(13,15,22,.97);backdrop-filter:blur(18px);border:1px solid var(--border-hi);
  border-radius:16px;box-shadow:var(--shadow);
  /* The panel is absolutely positioned inside a STICKY header, so page scroll never moves
     it: anything past the fold is unreachable, not merely below. Eleven items are 548px
     tall and ran to 603px on a 568px-high phone, putting the Store button off-screen.
     Bound it to the viewport and let the panel scroll itself. */
  max-height:calc(100vh - 80px);
  max-height:calc(100dvh - 80px);
  overflow-y:auto;overscroll-behavior:contain;
}
/* :not(.btn) matters. `.menu-panel a` is (0,1,1) and beats `.btn-primary` (0,1,0) on both
   specificity and source order, so the Store CTA in the mobile menu was rendering as grey
   --muted text on its own blue/green gradient — about 1.1:1 contrast — with the button
   padding and weight stripped off too. Desktop never showed it: .menu is hidden above 940px. */
.menu-panel a:not(.btn){padding:10px 12px;border-radius:9px;color:var(--muted);font-size:15px;font-weight:500}
.menu-panel a:not(.btn):hover{background:var(--card-hi);color:var(--text)}
.menu-panel .btn{margin-top:8px;justify-content:center;flex:none}
@media(max-width:940px){
  .nav-links{display:none}
  .menu{display:block}
  .nav-cta{display:none}
}

/* ------------------------------------------------------------------ hero */
.hero{position:relative;padding:76px 0 36px;text-align:center}
@media(max-width:700px){.hero{padding-top:44px}}
h1{font-size:clamp(38px,6.2vw,70px);line-height:1.04;letter-spacing:-.035em;font-weight:800;margin:22px auto 0;max-width:16ch}
.hero .sub{font-size:clamp(17px,2.1vw,20px);color:var(--muted);max-width:62ch;margin:24px auto 0;line-height:1.6}
.hero .sub b{color:var(--text);font-weight:600}
.cta-row{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;margin-top:34px}
.trust{display:flex;gap:10px 22px;justify-content:center;flex-wrap:wrap;margin-top:28px;color:var(--muted2);font-size:13.5px;font-weight:500}
.trust span{display:inline-flex;align-items:center;gap:7px}
.trust svg{width:15px;height:15px;color:var(--a2);flex:none}

.frame{
  position:relative;margin:52px auto 0;max-width:1000px;border-radius:var(--radius);
  border:1px solid var(--border-hi);background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.01));
  padding:10px;box-shadow:var(--shadow);
}
.frame::before{
  content:"";position:absolute;inset:-1px;border-radius:inherit;padding:1px;pointer-events:none;
  background:linear-gradient(120deg,rgba(122,169,255,.5),transparent 40%,transparent 60%,rgba(87,207,162,.4));
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;
}
.frame img{border-radius:12px;width:100%}

/* ------------------------------------------------------------------ sections */
.sec-head{text-align:center;max-width:62ch;margin:0 auto 48px}
.sec-head h2{font-size:clamp(27px,3.8vw,42px);line-height:1.12;letter-spacing:-.03em;font-weight:800}
.sec-head p{color:var(--muted);font-size:17px;margin-top:16px}
.sec-head.left{text-align:left;margin-left:0}

.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.grid-2{grid-template-columns:repeat(2,1fr)}
.grid-4{grid-template-columns:repeat(4,1fr)}
@media(max-width:900px){.grid,.grid-4{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.grid,.grid-2,.grid-4{grid-template-columns:1fr}}

.card{
  background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:26px;
  transition:transform .3s cubic-bezier(.2,.8,.2,1),border-color .3s,background .3s;position:relative;
}
a.card:hover,.card.hoverable:hover{transform:translateY(-4px);background:var(--card-hi);border-color:var(--border-hi)}
.card .ic{
  width:44px;height:44px;border-radius:12px;display:grid;place-items:center;margin-bottom:18px;
  background:linear-gradient(135deg,rgba(122,169,255,.16),rgba(87,207,162,.12));border:1px solid var(--border-hi);
}
.card .ic svg{width:22px;height:22px;color:var(--a1)}
.card h3{font-size:18.5px;letter-spacing:-.01em;margin-bottom:8px;font-weight:650}
.card p{color:var(--muted);font-size:15px}
.card .more{margin-top:14px;color:var(--a1);font-size:14px;font-weight:600;display:inline-flex;align-items:center;gap:7px}
.card .more svg{width:15px;height:15px;transition:transform .25s}
a.card:hover .more svg{transform:translateX(3px)}

/* screenshot strip */
.shots{display:grid;grid-template-columns:1.7fr 1fr;gap:18px;align-items:start}
@media(max-width:820px){.shots{grid-template-columns:1fr}.shot:nth-child(2){max-width:460px;margin-inline:auto}}
.shot{border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;background:var(--card);position:relative}
.shot img{width:100%}
.shot .cap{position:absolute;left:0;right:0;bottom:0;padding:16px 18px;font-size:14px;color:var(--text);
  background:linear-gradient(0deg,rgba(6,7,10,.92),transparent);font-weight:500}

/* comparison columns */
.compare{display:grid;grid-template-columns:1fr 1fr;gap:18px;max-width:920px;margin:0 auto}
@media(max-width:680px){.compare{grid-template-columns:1fr}}
.compare .col{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:30px}
.compare .col.hi{border-color:rgba(122,169,255,.4);background:linear-gradient(180deg,rgba(122,169,255,.07),var(--card))}
.compare h3{font-size:20px;margin-bottom:6px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.compare .tag{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:4px 9px;border-radius:6px;background:var(--grad);color:#06120c}
.compare .col>p{color:var(--muted);font-size:14.5px;margin:6px 0 18px}
.compare ul{list-style:none;display:flex;flex-direction:column;gap:11px}
.compare li{display:flex;gap:11px;font-size:15px;color:var(--text)}
.compare li svg{width:18px;height:18px;flex:none;margin-top:3px;color:var(--a2)}
.compare li.neutral svg{color:var(--muted2)}

/* final call to action */
.cta-band{
  position:relative;text-align:center;border:1px solid var(--border-hi);border-radius:28px;padding:64px 28px;overflow:hidden;
  background:radial-gradient(700px 340px at 50% -30%,rgba(122,169,255,.20),transparent 60%),linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.01));
}
.cta-band h2{font-size:clamp(27px,4.2vw,44px);letter-spacing:-.03em;line-height:1.1;font-weight:800;max-width:18ch;margin:0 auto}
.cta-band p{color:var(--muted);font-size:17px;margin:18px auto 0;max-width:54ch}

/* ------------------------------------------------------------------ doc shell */
.doc-shell{display:block;padding-top:38px;padding-bottom:96px}
.doc-shell.has-side{
  display:grid;grid-template-columns:236px minmax(0,1fr) 200px;gap:44px;align-items:start;
}
@media(max-width:1100px){.doc-shell.has-side{grid-template-columns:220px minmax(0,1fr);gap:36px}.doc-toc{display:none}}
@media(max-width:860px){.doc-shell.has-side{grid-template-columns:1fr;gap:0}}

.doc-side{position:sticky;top:calc(var(--nav-h) + 20px);max-height:calc(100vh - var(--nav-h) - 40px);overflow-y:auto;padding-bottom:24px}
.doc-side::-webkit-scrollbar{width:6px}
.doc-side::-webkit-scrollbar-thumb{background:var(--border-hi);border-radius:3px}
.doc-side h2{font-size:11.5px;text-transform:uppercase;letter-spacing:.07em;color:var(--muted2);margin:22px 0 8px;font-weight:700}
.doc-side h2:first-child{margin-top:0}
.doc-side a{display:block;padding:6px 12px;margin-left:-12px;border-radius:8px;color:var(--muted);font-size:14.5px;line-height:1.45;transition:color .2s,background .2s}
.doc-side a:hover{color:var(--text);background:var(--card)}
.doc-side a.is-active{color:var(--text);background:var(--card-hi);box-shadow:inset 2px 0 0 var(--a1)}

.doc-toc{position:sticky;top:calc(var(--nav-h) + 20px);font-size:13.5px}
.doc-toc h2{font-size:11.5px;text-transform:uppercase;letter-spacing:.07em;color:var(--muted2);margin-bottom:10px;font-weight:700}
.doc-toc a{display:block;padding:5px 0 5px 12px;border-left:1px solid var(--border);color:var(--muted2);transition:color .2s,border-color .2s}
.doc-toc a:hover,.doc-toc a.is-active{color:var(--text);border-left-color:var(--a1)}
.doc-toc a.lvl-3{padding-left:24px;font-size:13px}

/* --- phone: put the two navs back INSIDE the column ------------------------------
   Below 860px the grid collapsed to one column and both navs were set to display:none,
   which left a 77-page documentation site with no in-section route on a phone — the
   hamburger only carries 5 hubs and 5 marketing pages.

   This block must sit AFTER the .doc-side / .doc-toc base rules above: a media query adds
   no specificity, so an equal-specificity rule later in the file would otherwise win.

   Two things that are not obvious:
   - `order` needs a flex context, and 18 of the 38 pages that carry a TOC are a plain
     .doc-shell (display:block), so the flex reset has to cover both shells.
   - .doc-shell.has-side sets align-items:start, which in a COLUMN flex container is the
     CROSS axis — left alone it shrink-wraps .doc-body to max-content and blows the page
     open. It has to be reset to stretch.
   Page contents becomes a scrollable chip row above the article (~50px) rather than a
   vertical list, which would otherwise push the <h1> down past 400px. */
@media(max-width:860px){
  .doc-shell,.doc-shell.has-side{display:flex;flex-direction:column;align-items:stretch;gap:0}

  .doc-toc{
    display:flex;order:-1;position:static;align-items:center;gap:8px;
    margin:0 0 26px;padding:0 0 10px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;
  }
  .doc-toc::-webkit-scrollbar{display:none}
  .doc-toc h2{margin:0;flex:none}
  .doc-toc a{
    flex:none;display:flex;align-items:center;min-height:40px;padding:6px 13px;white-space:nowrap;
    border:1px solid var(--border);border-left:1px solid var(--border);border-radius:999px;background:var(--card);
  }
  .doc-toc a.lvl-3{padding-left:13px;font-size:13.5px}
  .doc-toc a:hover,.doc-toc a.is-active{border-color:var(--a1);color:var(--text)}

  .doc-side{
    display:block;order:1;position:static;max-height:none;overflow:visible;
    margin:44px 0 0;padding:4px 14px 12px;
    border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--card);
  }
  .doc-side h2{margin:16px 0 2px}
  .doc-side h2:first-child{margin-top:12px}
  .doc-side a{display:flex;align-items:center;min-height:44px;margin-left:0;padding:6px 10px}
}

.crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:13.5px;color:var(--muted2);margin-bottom:22px}
.crumbs a{color:var(--muted2);transition:color .2s}
.crumbs a:hover{color:var(--text)}
.crumbs .sep{opacity:.45}
.crumbs [aria-current]{color:var(--muted)}

/* ------------------------------------------------------------------ prose */
/* A bare URL or a long identifier is one unbreakable token. On a 320px screen
   "github.com/Gaojikuaileren/DeskDrawer" is 278px of unbreakable text and pushed the whole
   /about/ document to 326px. break-word only kicks in when the word genuinely cannot fit,
   so ordinary prose is untouched; links and code get `anywhere` because they are the tokens
   that are actually pathological. */
.doc-body{min-width:0;max-width:var(--prose);overflow-wrap:break-word}
.doc-body a,.doc-body code,.doc-body td,.doc-body th{overflow-wrap:anywhere}
.doc-shell:not(.has-side) .doc-body{margin:0 auto}
.doc-body h1{font-size:clamp(32px,4.6vw,46px);text-align:left;margin:0 0 18px;max-width:22ch;letter-spacing:-.03em;line-height:1.08}
.doc-body .lede{font-size:19px;color:var(--muted);line-height:1.6;margin-bottom:14px}
.doc-body .meta{display:flex;flex-wrap:wrap;gap:8px 18px;font-size:13.5px;color:var(--faint);padding-bottom:26px;margin-bottom:32px;border-bottom:1px solid var(--border)}
.doc-body h2{font-size:27px;letter-spacing:-.02em;font-weight:700;margin:52px 0 16px;line-height:1.2}
.doc-body h3{font-size:20px;letter-spacing:-.01em;font-weight:650;margin:38px 0 12px}
.doc-body h4{font-size:17px;font-weight:650;margin:30px 0 10px;color:var(--text)}
.doc-body p{margin:0 0 18px;color:#d7dce6}
.doc-body strong{color:var(--text);font-weight:650}
.doc-body a:not(.btn):not(.hlink):not(.card){color:var(--a1);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px;text-decoration-color:rgba(122,169,255,.4);transition:text-decoration-color .2s}
.doc-body a:not(.btn):not(.hlink):not(.card):hover{text-decoration-color:var(--a1)}
.doc-body ul,.doc-body ol{margin:0 0 20px;padding-left:22px;color:#d7dce6}
.doc-body li{margin-bottom:9px}
.doc-body li>ul,.doc-body li>ol{margin:9px 0 4px}
.doc-body ul{list-style:none;padding-left:4px}
.doc-body ul>li{position:relative;padding-left:20px}
.doc-body ul>li::before{content:"";position:absolute;left:2px;top:.68em;width:5px;height:5px;border-radius:50%;background:var(--a1);opacity:.65}
.doc-body ul ul>li::before{background:var(--muted2)}
.doc-body hr{border:0;border-top:1px solid var(--border);margin:44px 0}
.doc-body img{border-radius:14px;border:1px solid var(--border);margin:26px 0}

.hlink{margin-left:10px;color:var(--faint);opacity:0;font-weight:400;text-decoration:none;transition:opacity .2s}
h2:hover .hlink,h3:hover .hlink,h4:hover .hlink,.hlink:focus{opacity:1}
/* On a touch device nothing can ever trigger the :hover reveal, so each of these is an
   invisible but fully hit-testable 15x36px target sitting right after a heading — seven of
   them on a typical docs page. Remove the box rather than leave a mystery tap. Heading ids
   and deep links are unaffected; only the ¶ affordance goes. */
@media(hover:none){.hlink{display:none}}

.doc-body code{
  font-family:var(--mono);font-size:.875em;padding:.16em .42em;border-radius:6px;
  background:rgba(122,169,255,.10);border:1px solid rgba(122,169,255,.16);color:#cfe0ff;
}
.doc-body pre{
  background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius-sm);
  padding:18px 20px;overflow-x:auto;margin:0 0 22px;font-size:13.5px;line-height:1.6;
}
.doc-body pre code{background:none;border:0;padding:0;color:#c8d2e2;font-size:inherit}

.doc-body blockquote{
  margin:0 0 22px;padding:4px 0 4px 20px;border-left:2px solid var(--border-hi);color:var(--muted);
}
.doc-body blockquote p:last-child{margin-bottom:0}

.table-wrap{overflow-x:auto;margin:0 0 24px;border:1px solid var(--border);border-radius:var(--radius-sm)}
.doc-body table{border-collapse:collapse;width:100%;font-size:14.5px;min-width:420px}
.doc-body th{
  text-align:left;padding:12px 16px;background:rgba(255,255,255,.035);color:var(--text);font-weight:650;
  border-bottom:1px solid var(--border);white-space:nowrap;
}
.doc-body td{padding:12px 16px;border-bottom:1px solid var(--border);color:#d7dce6;vertical-align:top}
.doc-body tr:last-child td{border-bottom:0}
.doc-body td code{white-space:nowrap}

.callout{
  border:1px solid var(--border-hi);border-radius:var(--radius-sm);padding:18px 20px;margin:0 0 24px;
  background:var(--card);border-left-width:3px;
}
.callout .callout-t{font-weight:650;color:var(--text);margin-bottom:8px;font-size:15px}
.callout p:last-child,.callout ul:last-child,.callout ol:last-child{margin-bottom:0}
.callout-note{border-left-color:var(--a1)}
.callout-tip{border-left-color:var(--a2)}
.callout-warn{border-left-color:#ffb454;background:rgba(255,180,84,.05)}
.callout-key{border-left-color:var(--a1);background:linear-gradient(180deg,rgba(122,169,255,.08),transparent)}
.callout-key .callout-t{color:var(--a1);text-transform:uppercase;letter-spacing:.06em;font-size:11.5px}

/* ------------------------------------------------------------------ page furniture */
.page-head{padding:52px 0 0;text-align:center;max-width:64ch;margin:0 auto}
.page-head h1{margin:14px auto 0;text-align:center}
.page-head .lede{color:var(--muted);font-size:19px;margin-top:18px}

.pager{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:56px;padding-top:32px;border-top:1px solid var(--border)}
@media(max-width:600px){.pager{grid-template-columns:1fr}}
.pager a{
  border:1px solid var(--border);border-radius:var(--radius-sm);padding:16px 18px;
  transition:border-color .25s,background .25s;
}
.pager a:hover{border-color:var(--border-hi);background:var(--card)}
.pager .dir{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted2);margin-bottom:5px}
.pager .t{font-weight:600;color:var(--text);font-size:15.5px}
.pager .next{text-align:right}

.related{margin-top:52px;padding-top:30px;border-top:1px solid var(--border)}
.related h2{font-size:13px;text-transform:uppercase;letter-spacing:.07em;color:var(--muted2);margin-bottom:16px;font-weight:700}
.related ul{list-style:none;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:8px 22px}
@media(max-width:600px){.related ul{grid-template-columns:1fr}}
.related li{margin:0;padding-left:0}
.related li::before{display:none}
.related a{color:var(--a1);font-size:14.5px}

/* search + filterable lists (FAQ, glossary, docs index) */
.finder{position:relative;max-width:560px;margin:0 auto 36px}
.finder input{
  /* 16px exactly. Below 16px, iOS Safari zooms the whole page in when the field takes focus
     and does not zoom back out — and these two search boxes (/faq/, /glossary/) are the only
     form controls on the site, so this is the only place it can happen. */
  width:100%;padding:14px 18px 14px 46px;border-radius:var(--radius-sm);font-size:16px;font-family:inherit;
  background:var(--card);border:1px solid var(--border-hi);color:var(--text);
}
.finder input::placeholder{color:var(--muted2)}
.finder input:focus{outline:none;border-color:var(--a1);box-shadow:0 0 0 3px rgba(122,169,255,.15)}
.finder svg{position:absolute;left:16px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:var(--muted2)}
.finder-count{text-align:center;color:var(--muted2);font-size:14px;margin:-20px 0 28px}

.qa-group{margin-bottom:44px}
.qa-group h2{font-size:15px;font-weight:700;letter-spacing:.03em;color:var(--text);margin-bottom:4px}
.qa-group .gd{color:var(--muted2);font-size:14px;margin-bottom:16px}
.qa-list{list-style:none;display:flex;flex-direction:column;gap:2px}
.qa-list li{margin:0;padding:0}
.qa-list li::before{display:none}
.qa-list a{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:13px 16px;border-radius:10px;border:1px solid transparent;color:#d7dce6;font-size:15.5px;
  transition:background .2s,border-color .2s,color .2s;
}
.qa-list a:hover{background:var(--card);border-color:var(--border);color:var(--text)}
.qa-list a::after{content:"→";color:var(--faint);font-size:14px;opacity:0;transition:opacity .2s,transform .2s}
.qa-list a:hover::after{opacity:1;transform:translateX(2px)}

.term-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
@media(max-width:900px){.term-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.term-grid{grid-template-columns:1fr}}
.term-grid a{
  display:block;padding:18px 20px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--card);
  transition:transform .25s,border-color .25s,background .25s;
}
.term-grid a:hover{transform:translateY(-3px);border-color:var(--border-hi);background:var(--card-hi)}
.term-grid .t{font-weight:650;font-size:16px;margin-bottom:5px;color:var(--text)}
.term-grid .d{color:var(--muted);font-size:14px;line-height:1.55}

.note-list{list-style:none;display:flex;flex-direction:column;gap:14px;padding:0}
.note-list li{margin:0;padding:0}
.note-list li::before{display:none}
.note-list a{display:block;padding:24px 26px;border:1px solid var(--border);border-radius:var(--radius);background:var(--card);transition:transform .25s,border-color .25s,background .25s}
.note-list a:hover{transform:translateY(-3px);border-color:var(--border-hi);background:var(--card-hi)}
.note-list .k{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted2);margin-bottom:8px}
.note-list .t{font-size:21px;font-weight:700;letter-spacing:-.015em;margin-bottom:8px;color:var(--text)}
.note-list .d{color:var(--muted);font-size:15px}

.rel-list{list-style:none;padding:0;display:flex;flex-direction:column;gap:26px}
.rel-list li{margin:0;padding:0}
.rel-list li::before{display:none}
.rel-ver{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin-bottom:10px}
.rel-ver .v{font-size:21px;font-weight:700;letter-spacing:-.01em}
.rel-ver .badge{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:3px 8px;border-radius:5px;background:var(--grad);color:#06120c}

kbd{
  font-family:var(--mono);font-size:12.5px;padding:2px 7px;border-radius:6px;background:rgba(255,255,255,.07);
  border:1px solid var(--border-hi);border-bottom-width:2px;color:var(--text);white-space:nowrap;
}

.stat-row{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:0 0 8px}
@media(max-width:760px){.stat-row{grid-template-columns:repeat(2,1fr)}}
.stat{border:1px solid var(--border);border-radius:var(--radius-sm);padding:20px;background:var(--card);text-align:center}
.stat .n{font-size:24px;font-weight:750;letter-spacing:-.02em;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.stat .l{color:var(--muted2);font-size:13px;margin-top:4px}

/* ------------------------------------------------------------------ footer */
footer{border-top:1px solid var(--border);padding:56px 0 44px;margin-top:20px}
.foot{display:flex;justify-content:space-between;gap:44px;flex-wrap:wrap;align-items:flex-start}
.foot-brand{max-width:340px}
.foot .brand{margin-bottom:14px}
.foot .tagline{color:var(--muted);font-size:14px;line-height:1.6}
.foot .verline{color:var(--faint);font-size:13px;margin-top:12px}
.foot .verline a{color:var(--muted2);text-decoration:underline;text-underline-offset:2px}
.foot-links{display:grid;grid-template-columns:repeat(4,minmax(120px,auto));gap:30px}
@media(max-width:760px){.foot-links{grid-template-columns:repeat(2,1fr);gap:26px}}
.foot-links .grp h2{font-size:12px;text-transform:uppercase;letter-spacing:.07em;color:var(--muted2);margin-bottom:12px;font-weight:700}
.foot-links a{display:block;color:var(--muted);font-size:14px;padding:4px 0;transition:color .2s}
.foot-links a:hover{color:var(--text)}
.copy{margin-top:40px;color:var(--faint);font-size:12.5px;border-top:1px solid var(--border);padding-top:22px;display:flex;flex-direction:column;gap:6px}

/* ------------------------------------------------------------------ phones */
/* Measured against the real pages at 320px and 375px. At 320px the content column is only
   272px wide, so anything sized for a desktop column — button labels, card padding, table
   cells — has to be re-stated here or it is clipped by body{overflow-x:hidden}. */
@media(max-width:560px){
  /* 16px gutters instead of 24px returns 16px of content width on the narrowest phones.
     LONGHANDS ONLY. .wrap is co-classed with .hero (<section class="hero wrap">) and with
     .doc-shell (<div class="wrap doc-shell">); both set their own vertical padding earlier
     in this file at the same specificity, so a `padding` SHORTHAND here wins on source
     order and silently resets their top/bottom to 0 on every phone. */
  .wrap{padding-left:16px;padding-right:16px}

  /* Buttons: allow the label to wrap rather than run off the screen, and stack the CTA
     pairs full-width. "Get DeskDrawer on the Microsoft Store" measured 384px on a 320px
     phone; nowrap meant it was simply cut off at both edges. */
  .btn{white-space:normal;text-align:center}
  .btn-lg{--pad:14px 18px;font-size:15.5px}
  /* Stack, but size to the label rather than stretching edge to edge — a full-bleed
     primary button reads as a slab on a phone. max-width:100% on .btn still caps
     anything longer than the column, and it wraps instead of being clipped. */
  .cta-row{flex-direction:column;align-items:center;gap:10px}

  /* Desktop padding, scaled back so the text column is not squeezed twice */
  .card{padding:20px}
  .compare .col{padding:22px}
  .cta-band{padding:42px 18px;border-radius:20px}
  .note-list a{padding:20px 18px}
  .term-grid a{padding:16px 18px}
  .qa-list a{padding:12px 12px}
  .doc-body pre{padding:14px 15px;font-size:13px}

  /* A narrow table should simply fit. Wide ones still exceed the column and the
     .table-wrap scroller still takes over — th keeps white-space:nowrap for that. */
  .doc-body table{min-width:0}
  .doc-body th,.doc-body td{padding:10px 12px}
  /* Of the 29 tables on the site, 25 are two-column and already fit; only the four
     three-column ones still exceed a 320px screen. th{white-space:nowrap} is their
     intrinsic floor, so relax it for those alone — scoped with :has() so the 25 that
     are fine keep the layout they have. No :has() support just means today's scroller. */
  .doc-body table:has(tr>:nth-child(3)) th{white-space:normal}

  /* Tap targets that are navigation rather than inline prose links. The breadcrumb and
     related links sit in flowed text, so they get a usable box rather than a full 44px —
     44px there would visibly pull the lines apart. */
  .foot-links a{padding:11px 0}
  .crumbs a,.related a{display:inline-block;padding:7px 0}
  .foot .verline a{display:inline-block;padding:6px 0}
}

/* ------------------------------------------------------------------ motion */
/* Reveal only when scripting is present — `js` is set by a tiny inline script in <head>.
   Without it the content is simply visible, so a blocked script can never blank the page. */
html.js .reveal{opacity:0;transform:translateY(24px);transition:opacity .7s cubic-bezier(.2,.8,.2,1),transform .7s cubic-bezier(.2,.8,.2,1)}
html.js .reveal.in{opacity:1;transform:none}
.reveal.d1{transition-delay:.06s}.reveal.d2{transition-delay:.12s}.reveal.d3{transition-delay:.18s}
.reveal.d4{transition-delay:.24s}.reveal.d5{transition-delay:.30s}
.float{animation:float 7s ease-in-out infinite}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px)}}

@media(prefers-reduced-motion:reduce){
  *{animation:none!important;transition-duration:.01ms!important}
  .reveal{opacity:1;transform:none}
  html{scroll-behavior:auto}
}
