/* The download landing pages: hero with the address form, the chapter map, the panel that asks for the address.
   Built by build/downloads.py; tokens from praised.css. */
.dl-hero.wrap,.dl-map.wrap,.dl-gate.wrap{max-width:1240px;padding-inline:30px}
.dl-hero{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);column-gap:64px;align-items:center;padding-top:56px;padding-bottom:40px;position:relative;z-index:2}
.dl-crumb{display:flex;gap:8px;font-size:13.5px;color:var(--muted);margin-bottom:28px}
.dl-crumb a:hover{color:var(--ink)}
.dl-k{font:600 12.5px/1 var(--body);letter-spacing:.06em;text-transform:uppercase;color:#a8650a}
.dl-hero h1{margin-top:16px;font-family:var(--display);font-weight:800;font-size:clamp(40px,5vw,70px);line-height:.98;letter-spacing:-.04em;text-wrap:balance}
.dl-lead{margin-top:22px;font-size:clamp(17px,1.45vw,20px);line-height:1.55;color:var(--muted);max-width:560px;text-wrap:pretty}
.dl-get{margin-top:30px;max-width:560px}
.dl-form .field{display:flex;align-items:center;gap:6px;background:#fff;border:1px solid var(--line2);border-radius:var(--r-pill);padding:6px 6px 6px 18px;box-shadow:0 14px 34px -22px rgba(10,16,34,.5);transition:border-color .2s,box-shadow .25s}
.dl-form .field:focus-within{border-color:var(--ink);box-shadow:0 0 0 4px rgba(255,181,71,.28),0 14px 34px -22px rgba(10,16,34,.5)}
.dl-form .field.err{border-color:var(--dot);box-shadow:0 0 0 4px rgba(255,181,71,.22)}
.dl-form .field .ico{position:static;transform:none;color:var(--muted);width:18px;height:18px;margin:0}
.dl-form .field input{flex:1;min-width:0;border:0;border-radius:0;background:transparent;box-shadow:none;font:500 16px/1.2 var(--body);color:var(--ink);padding:12px 2px;margin:0;outline:none}
.dl-form .field input::placeholder{color:rgba(90,100,130,.7)}
.dl-form .field .btn{padding:14px 22px}
.dl-msg{min-height:0;font-size:14px;color:#8f2418;margin-top:8px}
.dl-msg:empty{margin:0}
.dl-note{margin-top:14px;font-size:13.5px;color:var(--muted)}
.dl-opt{display:flex;gap:10px;align-items:flex-start;margin-top:14px;font-size:14px;line-height:1.45;color:var(--ink-70);cursor:pointer}
.dl-opt input{width:17px;height:17px;margin:1px 0 0;accent-color:var(--ink);flex:none}
.dl-done{display:flex;flex-wrap:wrap;align-items:center;gap:14px 18px}
.dl-done[hidden]{display:none}
.dl-done p{font-size:14.5px;color:var(--muted)}
.dl-done b{color:var(--ink);font-weight:600}
.dl-done .btn .ico{width:18px;height:18px}

/* the document itself: the cover in front of an inside page */
.dl-vis{position:relative;aspect-ratio:1/1.08;max-width:470px;width:100%;justify-self:end}
.dl-vis::before{content:"";position:absolute;inset:6% -12% -4% 0;background:radial-gradient(circle closest-side at 60% 55%,rgba(255,181,71,.34),rgba(255,181,71,0));z-index:-1}
.dl-pg{position:absolute;width:68%;height:auto;border-radius:10px;background:#fff;box-shadow:0 1px 0 rgba(10,16,34,.06),var(--sh-3)}
.dl-pg-b{right:0;top:2%;transform:rotate(4deg);opacity:.96}
.dl-pg-a{left:4%;top:9%;transform:rotate(-3deg)}
@media (prefers-reduced-motion:no-preference){
  .dl-pg{transition:transform .5s var(--ease)}
  .dl-vis:hover .dl-pg-a{transform:rotate(-4deg) translateY(-6px)}
  .dl-vis:hover .dl-pg-b{transform:rotate(6deg) translateX(8px)}
}

/* what's inside: which chapters are on the page, which are in the file */
.dl-map{padding-top:72px;padding-bottom:24px}
.dl-map-h{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px 32px;padding-bottom:20px;border-bottom:1px solid var(--line2)}
.dl-map-h h2{font-family:var(--display);font-weight:800;font-size:clamp(28px,3vw,40px);letter-spacing:-.03em;line-height:1.05}
.dl-map-h p{color:var(--muted);font-size:15px}
.dl-list{display:grid;grid-template-columns:1fr 1fr;column-gap:48px}
.dl-list li{border-bottom:1px solid var(--line)}
.dl-list a{display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:14px;align-items:start;padding:18px 4px}
.dl-n{font:600 13px/1.6 var(--body);color:var(--muted);font-variant-numeric:tabular-nums}
.dl-t b{display:block;font-weight:600;font-size:16.5px;line-height:1.35}
.dl-t span{display:block;margin-top:3px;font-size:14px;line-height:1.45;color:var(--muted)}
.dl-tag{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;font-size:12.5px;font-weight:600;color:var(--muted);padding:4px 10px;border-radius:var(--r-pill);border:1px solid var(--line2)}
.dl-tag.lk{color:#8a4f00;background:#fff4e0;border-color:rgba(255,181,71,.55)}
.dl-list a:hover b{text-decoration:underline;text-decoration-color:var(--dot);text-underline-offset:3px;text-decoration-thickness:2px}
.dl-list li.lk .dl-t b{color:var(--ink-70)}

/* the one emphasis panel: what the file adds, and the form */
.dl-gate{padding-top:56px;padding-bottom:40px;scroll-margin-top:90px}
.dl-gate-in{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:56px;border-radius:var(--r-xl);padding:56px;background:radial-gradient(ellipse at 85% 0,#1d2750,var(--ink) 72%);color:#fff}
.dl-gate-in::after{content:"";position:absolute;right:-120px;bottom:-160px;width:520px;height:520px;background:radial-gradient(circle closest-side,rgba(255,181,71,.22),rgba(255,181,71,0));pointer-events:none}
.dl-gate .dl-k{color:var(--dot)}
.dl-gate h2{margin-top:14px;font-family:var(--display);font-weight:800;font-size:clamp(30px,3.4vw,46px);line-height:1.02;letter-spacing:-.035em;text-wrap:balance}
.dl-gate-p{margin-top:18px;font-size:17px;line-height:1.55;color:rgba(255,255,255,.72);max-width:520px}
.dl-locked{margin-top:28px;display:grid;gap:2px}
.dl-locked li{display:grid;grid-template-columns:22px minmax(0,1fr);gap:12px;padding:12px 0;border-top:1px solid rgba(255,255,255,.12)}
.dl-locked .ico{color:var(--dot);margin-top:3px}
.dl-locked b{display:block;font-weight:600;font-size:16px}
.dl-locked span{font-size:14.5px;line-height:1.45;color:rgba(255,255,255,.66)}
.dl-gate-f{position:relative;z-index:1;align-self:center}
.dl-gate-cv{width:150px;height:auto;border-radius:8px;transform:rotate(-3deg);box-shadow:0 30px 60px -24px rgba(0,0,0,.7);margin-bottom:26px}
.dl-gate .dl-get{margin-top:0}
.dl-gate .field{border-color:transparent;box-shadow:0 18px 40px -20px rgba(0,0,0,.6)}
.dl-gate .field .btn.solid{background:var(--dot);color:var(--ink);box-shadow:none}
.dl-gate .field .btn.solid:hover{background:#ffc566}
.dl-gate .dl-opt{color:rgba(255,255,255,.78)}
.dl-gate .dl-opt input{accent-color:var(--dot)}
.dl-gate .dl-msg{color:#ffb4a8}
.dl-gate .dl-done p{color:rgba(255,255,255,.72)}
.dl-gate .dl-done b{color:#fff}
.dl-gate .dl-done .btn.solid{background:var(--dot);color:var(--ink)}
.dl-why{margin-top:26px;display:grid;gap:12px}
.dl-why li{display:grid;grid-template-columns:20px minmax(0,1fr);gap:10px;font-size:14.5px;line-height:1.5;color:rgba(255,255,255,.72)}
.dl-why b{color:#fff;font-weight:600}
.dl-why .ico{color:var(--dot);margin-top:2px}
.dl-fine{margin-top:22px;font-size:12.5px;line-height:1.5;color:rgba(255,255,255,.5)}
.dl-fine a{text-decoration:underline;text-underline-offset:2px}

/* the templates: the code in a dark window, full width under its explanation */
.pv .tp > .mk-p,.pv .tp > .mk-note{max-width:720px}

@media (max-width:1040px){
  .dl-hero{grid-template-columns:1fr;padding-top:36px}
  .dl-vis{justify-self:center;max-width:380px;margin-top:40px}
  .dl-list{grid-template-columns:1fr}
  .dl-gate-in{grid-template-columns:1fr;gap:36px;padding:40px 32px}
}
@media (max-width:640px){
  .dl-hero.wrap,.dl-map.wrap{padding-inline:20px}
  .dl-gate.wrap{padding-inline:12px}
  .dl-form .field{flex-wrap:wrap;border-radius:22px;padding:6px}
  .dl-form .field .ico{margin-left:10px}
  .dl-form .field input{flex:1 1 140px}
  .dl-form .field .btn{flex:1 1 100%}
  .dl-hero h1{font-size:clamp(36px,10vw,48px)}
  .dl-vis{max-width:300px}
  .dl-list a{grid-template-columns:28px minmax(0,1fr);row-gap:8px}
  .dl-tag{grid-column:2;justify-self:start}
  .dl-gate{padding-left:16px;padding-right:16px}
  .dl-gate-in{padding:32px 22px;border-radius:22px}
  .dl-gate-cv{width:110px}
}

/* the code itself, in a dark window */
.pv .tp .tp-code{background:#0d1430;border:0;border-radius:16px;box-shadow:var(--sh-2)}
.pv .tp .tp-code pre{background:transparent;color:#e3e7f5;max-height:560px;overflow:auto}
.pv .tp .tp-code pre code{color:inherit;background:transparent}
.pv .tp .tp-copy{background:rgba(255,255,255,.1);color:#fff;border-color:rgba(255,255,255,.2)}
.pv .tp .tp-copy:hover{background:rgba(255,255,255,.18)}

/* the kit pages (/templates/<kit>): the address in the centred hero, and in the panel beside the file's cover */
.dl-c{margin:32px auto 0;max-width:560px;text-align:left}
.dl-c .dl-done{justify-content:center;text-align:center}
.dl-c .lm-file-alt,.lm-get .dl-done .lm-file-alt{width:100%;margin:0;font-size:14px;color:var(--muted)}
.dl-c .lm-file-alt a,.lm-get .dl-done .lm-file-alt a{text-decoration:underline;text-underline-offset:2px}
.lm-get .dl-form{margin-top:22px}
.lm-get .dl-done{margin-top:22px}
.lm-cv{cursor:default}
