/* The Downloads page (website/downloads/), on top of site.v2.css: the waitlist form that
   unlocks the printables, the groups of cards, and the page viewer. The form's look is the home
   page's (home.v8.css, .notify), copied here because home.v8.css is made for a page that never
   scrolls. */
.dl-main { flex: 1; }

.dl-intro {
  background: linear-gradient(var(--mint-1) 0%, var(--mint-2) 70%, var(--mint-3) 100%);
  padding: 20px 0 44px;
}
.dl-intro-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; }
.dl-intro h1 {
  font-family: inherit;
  font-weight: 800;
  color: var(--green);
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.dl-lead { color: var(--muted); font-size: 18px; margin: 0 0 8px; max-width: 32rem; }

.dl-join { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: 0 6px 22px rgba(31, 75, 43, .12); }
.dl-join h2 { font-size: 21px; margin: 0 0 6px; }
.dl-join-note { color: var(--muted); font-size: 15.5px; margin: 0 0 14px; }
.dl-unlocked { margin: 0; color: var(--green); font-weight: 700; }
.dl-join.is-unlocked .dl-form, .dl-join.is-unlocked h2, .dl-join.is-unlocked .dl-join-note { display: none; }

.notify { margin: 0; }
.notify-row { display: flex; gap: 8px; }
.notify input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid #b9cdb9;
  border-radius: 999px;
  height: 44px;
  padding: 0 16px;
  outline: none;
}
.notify input[type="email"]::placeholder { color: var(--muted); opacity: .7; }
.notify input[type="email"]:focus-visible { border-color: var(--green); box-shadow: 0 0 0 3px rgba(47, 107, 62, .25); }
.notify input[aria-invalid="true"] { border-color: #b23a22; }
.notify button {
  flex: 0 0 auto;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  background: var(--green);
  border: 0;
  border-radius: 999px;
  height: 44px;
  padding: 0 18px;
  cursor: pointer;
  box-shadow: 0 2px 0 var(--green-deep);
  white-space: nowrap;
}
.notify button:hover { background: #2a6038; }
.notify button:focus-visible { outline: 3px solid rgba(47, 107, 62, .45); outline-offset: 2px; }
.notify button[disabled] { opacity: .7; cursor: progress; }
.consent, .status { margin: 8px 0 0 4px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.status:empty { display: none; }
.status.error { color: #b23a22; font-weight: 600; }
.status.ok { color: var(--green); font-weight: 700; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.dl-jump { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 22px; padding-bottom: 4px; }
.dl-jump a {
  text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 7px 14px; border-radius: 999px; background: var(--card); box-shadow: 0 1px 0 var(--line);
}

.dl-group { padding: 34px 0 6px; scroll-margin-top: 12px; }
.dl-group h2 { margin-bottom: 4px; }
.dl-sub { color: var(--muted); margin: 0 0 20px; max-width: 40rem; }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }

.dl-card { background: var(--card); border-radius: var(--radius); padding: 14px 14px 16px; box-shadow: 0 1px 0 var(--line); display: flex; flex-direction: column; }
.dl-preview {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  background: var(--mint-1); border-radius: 14px; overflow: hidden;
}
.dl-preview img { width: 100%; height: auto; aspect-ratio: 595 / 842; object-fit: cover; box-shadow: 0 1px 4px rgba(31, 75, 43, .15); }
.dl-preview:focus-visible { outline: 3px solid rgba(47, 107, 62, .45); outline-offset: 2px; }
.dl-pages {
  position: absolute; right: 8px; bottom: 8px; font-size: 12.5px; font-weight: 700;
  color: var(--green-deep); background: rgba(255, 253, 247, .94); padding: 3px 9px; border-radius: 999px;
}
.dl-card h3 { margin: 12px 2px 4px; font-size: 17px; color: var(--green); line-height: 1.25; }
.dl-card p { margin: 0 2px 12px; color: var(--muted); font-size: 14.5px; line-height: 1.45; flex: 1; }
.dl-get { display: flex; gap: 8px; }
.dl-btn {
  flex: 1; text-align: center; text-decoration: none; font-weight: 700; font-size: 14.5px;
  padding: 9px 8px; border-radius: 999px; color: #fff; background: var(--green); box-shadow: 0 2px 0 var(--green-deep);
}
.dl-btn:hover { color: #fff; background: #2a6038; }
.dl-btn[aria-disabled="true"] { color: var(--green); background: var(--mint-1); box-shadow: inset 0 0 0 1.5px var(--mint-3); }

.dl-viewer {
  border: 0; border-radius: 22px; padding: 16px 18px 18px; max-width: min(560px, calc(100vw - 24px));
  width: 100%; background: var(--card); color: var(--ink); box-shadow: 0 20px 60px rgba(20, 40, 25, .35);
}
.dl-viewer::backdrop { background: rgba(20, 40, 25, .55); }
.dl-viewer-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.dl-viewer h2 { font-size: 19px; margin: 0; }
.dl-close, .dl-prev, .dl-next {
  font: inherit; font-weight: 700; color: var(--green); background: var(--mint-1); border: 0; border-radius: 999px; cursor: pointer;
}
.dl-close { padding: 7px 14px; font-size: 14px; }
.dl-viewer-page { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 8px; }
.dl-viewer-page img { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 1px 6px rgba(31, 75, 43, .2); }
.dl-prev, .dl-next { width: 40px; height: 40px; font-size: 26px; line-height: 1; }
.dl-prev[disabled], .dl-next[disabled] { opacity: .3; cursor: default; }
.dl-viewer-count { text-align: center; margin: 10px 0 0; font-weight: 700; color: var(--green); font-size: 14px; }
.dl-viewer-note { text-align: center; margin: 2px 0 0; color: var(--muted); font-size: 13px; }

@media (max-width: 820px) {
  .dl-intro-wrap { grid-template-columns: 1fr; gap: 20px; }
  .dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .dl-card { padding: 10px 10px 12px; }
  .dl-card p { font-size: 13.5px; }
}
@media (max-width: 420px) {
  .notify-row { flex-direction: column; }
  .notify button { width: 100%; }
  .dl-get { flex-direction: column; gap: 6px; }
  .dl-viewer-page { grid-template-columns: 32px 1fr 32px; gap: 4px; }
  .dl-prev, .dl-next { width: 32px; height: 32px; }
}
