/* The apps pages, manuals and help: a graphite title band (the apps' own stage), then a reading column with a
   table of contents that stays in view on wide screens. Built on site.css's tokens. */
.page-head{background:radial-gradient(90% 140% at 85% 0%,#232933 0%,var(--stage) 65%);color:var(--on-stage)}
.page-head .wrap:not(.facts-wrap){padding-block:clamp(2.4rem,6vw,4.2rem) clamp(2rem,5vw,3.2rem);display:grid;grid-template-columns:auto minmax(0,1fr);gap:1.4rem 1.8rem;align-items:center}
.page-head img.icon{width:clamp(64px,9vw,96px);height:auto;grid-row:span 2}
.page-head h1{font-size:clamp(2.1rem,4.6vw,3.4rem);max-width:20ch}
.page-head .lede{grid-column:2;max-width:58ch;color:var(--on-stage-2);font-size:1.08rem}
.page-head.plain .wrap:not(.facts-wrap){grid-template-columns:1fr}
.page-head.plain .lede{grid-column:1}
.crumbs{font-size:.88rem;color:var(--on-stage-2);grid-column:1/-1;margin-bottom:-.6rem}
.crumbs a{color:var(--on-stage);text-decoration:none}
.crumbs a:hover{text-decoration:underline}
@media (max-width:560px){.page-head .wrap:not(.facts-wrap){grid-template-columns:1fr}.page-head img.icon{grid-row:auto}.page-head .lede{grid-column:1}}

/* the facts under the title: what it runs on, which key, who uses it */
.facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));border-top:1px solid var(--stage-line);margin:0}
.facts div{padding:1rem 1.2rem 1.15rem 0;border-right:1px solid var(--stage-line)}
.facts div+div{padding-left:1.2rem}
.facts div:last-child{border-right:0}
.facts dt{font-size:.84rem;color:var(--on-stage-2);font-stretch:94%}
.facts dd{margin:.15rem 0 0;color:var(--on-stage);font-weight:500;line-height:1.4}
@media (max-width:640px){.facts{grid-template-columns:1fr 1fr}.facts div{border-right:0;border-bottom:1px solid var(--stage-line);padding:.85rem .8rem .9rem 0!important}.facts div:nth-child(2n){padding-left:.8rem!important;border-left:1px solid var(--stage-line)}.facts div:nth-last-child(-n+2):nth-child(odd),.facts div:last-child{border-bottom:0}.facts dd{font-size:.95rem}}

/* reading layout */
.man{display:grid;grid-template-columns:15rem minmax(0,1fr);gap:3.5rem;padding-block:clamp(2.2rem,5vw,3.6rem) clamp(3rem,7vw,5rem)}
.man>*{min-width:0}
.toc{position:sticky;top:88px;align-self:start;max-height:calc(100vh - 110px);overflow:auto;font-size:.9rem;padding-right:.5rem}
.toc b{display:block;font-weight:600;font-size:.86rem;color:var(--ink-3);margin-bottom:.5rem}
.toc ol{list-style:none;margin:0;padding:0;border-left:1px solid var(--line-2)}
.toc li a{display:block;padding:.32rem 0 .32rem .9rem;margin-left:-1px;border-left:2px solid transparent;color:var(--ink-2);text-decoration:none;line-height:1.35}
.toc li a:hover{color:var(--ink);border-left-color:var(--ink-3)}
.toc li a.on{color:var(--ink);border-left-color:var(--brass);font-weight:500}
@media (max-width:980px){
  .man{grid-template-columns:1fr;gap:1.5rem}
  .toc{position:static;max-height:none;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:.9rem 1.1rem}
  .toc ol{columns:2 9rem;column-gap:1.2rem;border-left:0}
  .toc li a{padding-left:0;border-left:0}
}

.doc{max-width:72ch}
.doc>*+*{margin-top:1rem}
.doc h2{font-size:clamp(1.55rem,2.6vw,2rem);margin-top:3.2rem;padding-top:1.2rem;border-top:1px solid var(--line);scroll-margin-top:84px}
.doc h2:first-child{margin-top:0;padding-top:0;border-top:0}
.doc h3{font-size:1.2rem;margin-top:2rem;scroll-margin-top:84px}
.doc h4{margin-top:1.4rem}
.doc h2+*,.doc h3+*,.doc h4+*{margin-top:.6rem}
.doc p,.doc li{color:var(--ink-2)}
.doc b,.doc strong{color:var(--ink);font-weight:600}
.doc a{color:var(--brass-ink)}
.doc ul,.doc ol{padding-left:1.25rem;margin-bottom:0}
.doc li+li{margin-top:.35rem}
.doc li>ul,.doc li>ol{margin-top:.35rem}
.doc kbd{font:inherit;font-size:.86em;padding:.05em .4em;border:1px solid var(--line-2);border-bottom-width:2px;border-radius:4px;background:var(--surface);white-space:nowrap}
.doc code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.86em;background:var(--surface);border:1px solid var(--line);border-radius:4px;padding:.05em .35em;overflow-wrap:anywhere}
.doc .lead{font-size:1.1rem;color:var(--ink)}

/* steps: a real sequence, numbered */
.steps{list-style:none;padding:0!important;counter-reset:s;display:grid;gap:.15rem}
.steps>li{counter-increment:s;position:relative;padding:.7rem 0 .8rem 3rem;border-bottom:1px solid var(--line);margin:0!important}
.steps>li:last-child{border-bottom:0}
.steps>li::before{content:counter(s);position:absolute;left:0;top:.65rem;width:2rem;height:2rem;display:grid;place-items:center;border-radius:50%;background:var(--ink);color:#fff;font-weight:600;font-size:.9rem;font-variant-numeric:tabular-nums}
.steps>li>b:first-child{color:var(--ink)}

/* a note in the margin of the text */
.note{background:var(--surface);border:1px solid var(--line);border-left:3px solid var(--brass);border-radius:var(--r);padding:.9rem 1.15rem;color:var(--ink-2)}
.note.warn{border-left-color:var(--bad)}
.note p+p{margin-top:.5rem}

/* a screenshot from inside the app */
figure.shot{margin:1.6rem 0;max-width:none}
figure.shot img{display:block;width:100%;height:auto;border-radius:var(--r);border:1px solid var(--stage-line);background:var(--stage);box-shadow:0 1px 0 rgba(0,0,0,.04),0 12px 30px -18px rgba(18,22,28,.45)}
figure.shot figcaption{font-size:.88rem;color:var(--ink-3);margin-top:.55rem;line-height:1.45}
figure.shot.missing{display:none}

/* a terminal line with a copy button */
.cmd{display:flex;align-items:center;gap:.6rem;background:var(--stage);color:var(--on-stage);border-radius:var(--r-sm);padding:.55rem .6rem .55rem .9rem}
.cmd code{flex:1;min-width:0;background:none;border:0;color:inherit;padding:0;font-size:.86rem;white-space:pre-wrap;word-break:break-all;overflow-wrap:anywhere}
.cmd button{flex:none;background:var(--stage-3);color:var(--on-stage);border:1px solid var(--stage-line);border-radius:var(--r-sm);padding:.25rem .7rem;font-size:.82rem;min-height:32px}
.cmd button:hover{border-color:var(--on-stage-2)}
pre.block{background:var(--stage);color:var(--on-stage);border-radius:var(--r-sm);padding:.9rem 1rem;overflow:auto;font-size:.84rem;line-height:1.55}
pre.block code{background:none;border:0;color:inherit;padding:0}

/* tables: platforms, keys, who sees what */
.tbl{width:100%;border-collapse:collapse;font-size:.93rem;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.tbl th,.tbl td{text-align:left;padding:.6rem .8rem;border-bottom:1px solid var(--line);vertical-align:top}
.tbl th{font-weight:600;color:var(--ink);background:var(--paper)}
.tbl td{color:var(--ink-2)}
.tbl tr:last-child td{border-bottom:0}
.tblwrap{overflow-x:auto}

/* the apps index: one row per app */
.applist{display:grid;border-top:1px solid var(--ink)}
.approw{display:grid;grid-template-columns:72px minmax(0,1fr) minmax(0,1.25fr) auto;gap:1.2rem 1.8rem;align-items:start;padding:1.6rem 0;border-bottom:1px solid var(--line)}
.approw img{width:72px;height:72px}
.approw h3{font-size:1.35rem;font-stretch:112%}
.approw .who{color:var(--ink-3);font-size:.92rem;margin-top:.2rem}
.approw p{color:var(--ink-2)}
.approw .btn{align-self:center}
@media (max-width:900px){.approw{grid-template-columns:56px minmax(0,1fr)}.approw img{width:56px;height:56px}.approw p,.approw .btn{grid-column:2}.approw .btn{justify-self:start}}

/* Sunday, in order: a real sequence of the day */
.day{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden}
.day li{padding:1.3rem 1.3rem 1.4rem;background:var(--surface);margin:0!important}
@media (max-width:900px){.day{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){.day{grid-template-columns:1fr}}
.day li b{display:block;color:var(--ink);font-size:1.02rem;margin-bottom:.3rem}
.day li span{display:block;font-size:.84rem;color:var(--brass-ink);font-weight:600;margin-bottom:.4rem;font-variant-numeric:tabular-nums}
.day li p{font-size:.94rem}

/* help hub cards */
.helpgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem}
.helpgrid a{display:block;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:1.2rem 1.3rem;text-decoration:none;color:var(--ink-2)}
.helpgrid a:hover{border-color:var(--ink)}
.helpgrid a b{display:block;color:var(--ink);font-size:1.08rem;margin-bottom:.3rem}
.helpgrid img{width:40px;height:40px;margin-bottom:.6rem}

nav a.on{color:var(--ink);border-bottom-color:var(--ink)}
@media (max-width:560px){.wrap{padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}

@media (max-width:640px){.toc{font-size:.86rem}.toc li a{padding-block:.38rem}}
