/* ════ Guide download box (shared by the guide pages) ════
   Three steps inside one box: start -> email -> done (behaviour: download.js).
   Each page sets its accent colour on the section: style="--accent: var(--dirty)" */

.dl {
  margin: 40px 48px 0;
  padding: 28px 28px 24px;
  background: #fff;
  border: 1px solid var(--rule, #d0cdc8);
  border-top: 4px solid var(--accent, #2d6a4f);
  border-radius: 4px;
}

.dl-step[hidden] { display: none; }

.dl-kicker {
  font-family: 'DM Mono', monospace;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent, #2d6a4f);
  margin-bottom: 8px;
}

.dl h2 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.dl h2:focus { outline: none; }

.dl-intro {
  font-size: 16px;
  line-height: 1.65;
  color: #474747;
  max-width: 62ch;
  margin-bottom: 22px;
}

.dl-intro a,
.dl-small a { color: var(--accent, #2d6a4f); text-underline-offset: 3px; }

/* Buttons */
.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent, #2d6a4f);
  color: #fff;
  padding: 13px 24px;
  border: 0;
  border-radius: 4px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: filter .2s;
}

.dl-btn:hover { filter: brightness(.9); }
.dl-btn:focus-visible { outline: 2px solid var(--accent, #2d6a4f); outline-offset: 2px; }

.dl-back {
  border: 0;
  background: none;
  padding: 8px 4px;
  font: inherit;
  font-size: 14px;
  color: #6b6b6b;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.dl-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

/* Email step */
.dl-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.dl-field { display: flex; flex-direction: column; gap: 6px; }
.dl-field--email { flex: 1 1 260px; min-width: 0; }
.dl-field--pc { flex: 0 0 9.5em; }

.dl-label {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
}

.dl-label .dl-opt { font-weight: 400; color: #6b6b6b; }

.dl-form input[type="email"],
.dl-postcode {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--rule, #d0cdc8);
  border-radius: 4px;
  background: #fff;
  color: #1a1a1a;
  font: inherit;
  font-size: 15px;
}

.dl-form input[type="email"]:focus,
.dl-postcode:focus {
  outline: 2px solid var(--accent, #2d6a4f);
  outline-offset: 1px;
  border-color: var(--accent, #2d6a4f);
}

.dl-dd {
  border: 0;
  margin: 0 0 20px;
  padding: 0;
}

.dl-dd legend { margin-bottom: 8px; padding: 0; }

/* Dirty Dozen question: plain radio buttons, matching the homepage sign-up */
.dl-radios { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.dl-radios label { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; color: #5a5a5a; cursor: pointer; }
.dl-radios input { accent-color: var(--accent, #2d6a4f); width: 16px; height: 16px; margin: 0; }

/* Pill buttons (chip-in amounts) */
.dl-pills { display: flex; flex-wrap: wrap; gap: 8px; }

.dl-pills label { position: relative; cursor: pointer; }

.dl-pills input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.dl-pills label span,
.dl-pills a {
  display: inline-block;
  min-width: 64px;
  text-align: center;
  padding: 9px 16px;
  border: 1.5px solid var(--rule, #d0cdc8);
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  color: #1a1a1a;
  background: #faf9f6;
  text-decoration: none;
  transition: border-color .15s, background .15s, color .15s;
}

.dl-pills label:hover span,
.dl-pills a:hover { border-color: var(--accent, #2d6a4f); }

.dl-pills input:checked + span {
  background: var(--accent, #2d6a4f);
  border-color: var(--accent, #2d6a4f);
  color: #fff;
}

.dl-pills input:focus-visible + span,
.dl-pills a:focus-visible {
  outline: 2px solid var(--accent, #2d6a4f);
  outline-offset: 2px;
}

.dl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.dl-msg {
  min-height: 1em;
  margin-top: 10px;
  font-size: 14px;
  color: #a33a2a;
}

.dl-msg:empty { display: none; }

.dl-small {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.6;
  color: #6b6b6b;
}

/* Done step */
.dl-chip {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--rule, #d0cdc8);
}

.dl-chip p { font-size: 15px; line-height: 1.6; color: #474747; margin-bottom: 12px; max-width: 62ch; }

/* "Jump to download" link used in page headers */
.dl-jump {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: .9;
}

.dl-jump:hover { opacity: 1; }

@media (max-width: 640px) {
  .dl { margin: 32px 16px 0; padding: 22px 18px 20px; }
  .dl h2 { font-size: 22px; }
  .dl-intro { font-size: 15.5px; }
  .dl-btn { width: 100%; justify-content: center; }
  .dl-field--pc { flex: 1 1 100%; }
}

@media print {
  .dl, .dl-jump { display: none !important; }
}
