/* ============================================================
   DS Creative Studio — "15 questions" checklist page
   Loaded only by hub/questions-before-ordering-a-website.html, after
   site.css and content-hub.css. Everything is scoped to .checklist-page,
   so the other hub articles are untouched.

   Screen: a calm checklist with real checkboxes, DS answers kept apart.
   Print (also the source of the downloadable file): A4 pages,
   question + what to ask for, three columns to compare suppliers.
   ============================================================ */

.cl-print-only { display: none; }

/* section titles get a round dot, not a short line (house rule: no dash-like marks) */
.checklist-page .article-body h2::before { width: 8px; height: 8px; border-radius: 50%; top: 2px; }

/* how to use + download */
.checklist-page .cl-how {
  margin-top: clamp(26px, 4vw, 36px);
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--radius-lg);
  background: #fdfaf5; border: 1px solid var(--line);
}
.checklist-page .cl-how h2 { margin-top: 0; padding-top: 0; font-size: clamp(1.2rem, 1.9vw, 1.45rem); }
.checklist-page .cl-how h2::before { display: none; }
.checklist-page .article-body .cl-steps { margin-top: 12px; }
.checklist-page .article-body .cl-steps li { margin-top: 8px; font-size: 1.02rem; line-height: 1.6; }
.checklist-page .article-body .cl-steps li::before { width: 24px; height: 24px; font-size: 0.8rem; top: 0.1em; }
.cl-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.checklist-page .article-body .cl-actions a.btn { color: #fff; text-decoration: none; }
.checklist-page .article-body .cl-actions .btn-ghost { color: var(--ink); }
.checklist-page .article-body p.cl-note { margin-top: 12px; font-size: 0.92rem; color: var(--ink-70); }
/* the campaign message, right under the opening */
.checklist-page .article-body p.cl-message {
  margin-top: 18px; padding: clamp(14px, 2.4vw, 18px) clamp(16px, 2.6vw, 22px);
  border-radius: var(--radius-md); background: rgba(214, 164, 108, 0.16);
}
.checklist-page .article-body p.cl-message strong { display: block; margin-bottom: 6px; color: var(--ink); font-size: 1.12em; line-height: 1.45; }
.checklist-page .article-body p.cl-tick-hint { margin-top: clamp(26px, 4vw, 34px); font-size: 0.98rem; color: var(--ink-70); }

/* the kicker gets the same round dot (the hub template draws a short line) */
.checklist-page .article-head .kicker::before { width: 7px; height: 7px; border-radius: 50%; }

/* groups */
.checklist-page .cl-group h2 { display: flex; align-items: center; gap: 12px; }
.checklist-page .cl-group h2::before { display: none; }   /* the letter badge already marks the group */
.cl-letter {
  display: inline-grid; place-items: center; flex: 0 0 auto;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--plum-800); color: var(--copper-light);
  font-size: 1rem; font-weight: 800;
}

/* the list itself: our own cards, not the article's numbered list */
.checklist-page .article-body ol.cl-list { margin-top: 16px; display: grid; gap: 12px; }
.checklist-page .article-body ol.cl-list > li { margin: 0; padding: clamp(16px, 2.4vw, 22px); }   /* overrides the article's numbered-list indent */
.checklist-page .article-body ol.cl-list > li::before { content: none; }
.cl-item {
  border-radius: var(--radius-md);
  background: #fdfaf5; border: 1px solid var(--line);
  transition: border-color 0.25s var(--ease-out), background 0.25s var(--ease-out);
}
.cl-item:has(.cl-check:checked) { border-color: rgba(179, 84, 44, 0.55); background: #fffaf3; }
.cl-head { display: flex; align-items: flex-start; gap: 14px; }
.cl-head h3 { margin: 0; font-size: clamp(1.08rem, 1.6vw, 1.22rem); font-weight: 800; line-height: 1.4; letter-spacing: -0.005em; }
.cl-head label { cursor: pointer; display: inline; }
.cl-num {
  display: inline-grid; place-items: center; vertical-align: 0.1em;
  min-width: 26px; height: 26px; padding: 0 6px; margin-inline-end: 10px; border-radius: 999px;
  background: var(--terracotta); color: #fff; font-size: 0.82rem; font-weight: 800;
}
.cl-check {
  appearance: none; -webkit-appearance: none; flex: 0 0 auto;
  width: 26px; height: 26px; margin: 1px 0 0; border-radius: 7px;
  border: 2px solid var(--line-strong); background: #fff; cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.2s, border-color 0.2s;
}
.cl-check::after {
  content: ""; width: 7px; height: 13px; margin-top: -3px;
  border-right: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(45deg);
  opacity: 0;
}
.cl-check:checked { background: var(--terracotta); border-color: var(--terracotta); }
.cl-check:checked::after { opacity: 1; }
.cl-check:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; }
.cl-compare { display: none; }
.checklist-page .article-body p.cl-why { margin-top: 10px; font-size: 1.02rem; line-height: 1.7; color: var(--ink-70); padding-inline-start: 40px; }
.checklist-page .article-body p.cl-ask {
  margin-top: 12px; margin-inline-start: 40px; padding: 10px 14px;
  border-radius: var(--radius-sm); background: rgba(214, 164, 108, 0.16);
  font-size: 0.98rem; line-height: 1.6; color: var(--ink);
}
.checklist-page .article-body p.cl-ask strong { color: var(--terracotta-deep); }

/* DS's own answers: a separate dark area, clearly not part of the checklist */
.cl-ds {
  margin-top: clamp(48px, 7vw, 72px);
  padding: clamp(22px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(520px 300px at 0% 0%, rgba(214, 164, 108, 0.18), transparent 70%),
    linear-gradient(180deg, var(--plum-800), var(--plum-900));
  color: var(--on-dark);
}
.cl-ds .kicker { color: var(--on-dark-70); margin-bottom: 12px; }
.cl-ds .kicker::before { width: 7px; height: 7px; border-radius: 50%; background: var(--copper); }
.cl-ds h2 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); font-weight: 800; letter-spacing: -0.015em; line-height: 1.2; }
.cl-ds-lead { margin-top: 10px; color: var(--on-dark-70); max-width: 58ch; line-height: 1.65; }
.cl-ds-lead a { color: var(--copper-light); text-decoration: underline; text-underline-offset: 3px; }
.cl-ds-lead a:hover, .cl-ds-lead a:focus-visible { color: var(--on-dark); }
.cl-ds-list { margin-top: clamp(20px, 3vw, 28px); display: grid; gap: 0; }
.cl-ds-list > div {
  display: grid; grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr); gap: 4px 20px;
  padding: 14px 0; border-top: 1px solid var(--on-dark-line);
}
.cl-ds-list > div:last-child { border-bottom: 1px solid var(--on-dark-line); }
.cl-ds-list dt { font-weight: 800; display: flex; align-items: baseline; gap: 10px; }
.cl-ds-list dt span { color: var(--copper); font-size: 0.85rem; font-weight: 800; min-width: 18px; font-variant-numeric: tabular-nums; }
.cl-ds-list dd { margin: 0; color: var(--on-dark-70); line-height: 1.65; }
.cl-ds-foot { margin-top: 18px; color: var(--on-dark); font-weight: 600; line-height: 1.6; }

/* call to action: builder first, then the existing ways to talk */
.cl-cta .cl-contact-title { margin-top: 22px; color: var(--ink); font-weight: 700; }
.cl-contact { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cl-contact a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(253, 250, 245, 0.75);
  color: var(--ink); font-weight: 600; font-size: 0.95rem; text-decoration: none;
  transition: border-color 0.25s, background 0.25s;
}
.cl-contact a:hover, .cl-contact a:focus-visible { border-color: var(--ink); background: #fdfaf5; }

.cl-related .related-card + .related-card { margin-top: 10px; }

/* Keyboard focus and the last lines of the page stay clear of the fixed header and the accessibility button.
   The scroll padding replaces the per-anchor margin from site.css here, so anchors are not offset twice. */
html:has(.checklist-page) { scroll-padding-top: calc(var(--nav-h) + 12px); scroll-padding-bottom: 84px; }
.checklist-page[id], .checklist-page [id] { scroll-margin-top: 0; }
body:has(.checklist-page) .footer { padding-bottom: 96px; }

@media (max-width: 560px) {
  .cl-head { gap: 12px; }
  .cl-num { min-width: 24px; height: 24px; margin-inline-end: 8px; font-size: 0.78rem; }
  .checklist-page .article-body p.cl-why { padding-inline-start: 0; font-size: 1rem; }
  .checklist-page .article-body p.cl-ask { margin-inline-start: 0; }
  .cl-ds-list > div { grid-template-columns: 1fr; }
  .cl-actions .btn { width: 100%; }
  .cl-contact a { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .cl-item, .cl-check, .cl-contact a { transition: none; }
}

/* ============================================================
   Print (and the downloadable file, which is printed from this page)
   ============================================================ */
@page { size: A4; margin: 10mm 12mm 12mm; }

@media print {
  html, body { background: #fff !important; }
  body { font-size: 10pt; line-height: 1.4; color: #2a2230; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .nav, .mobile-menu, .grain, .deco, .skip-link, .crumbs, .article-hero, .article-meta,
  .cl-actions, .cl-note, .cl-ds, .article-cta, .related, .footer, .a11y, .consent,
  .ds-search, .cl-check, .cl-screen-only, .sticky-cta { display: none !important; }
  .cl-print-only { display: block; }

  .article-page { padding: 0 !important; overflow: visible; background: none !important; }
  .article-page > .container, .container { width: 100%; max-width: none; }
  .article-col { max-width: none; }

  /* page 1: questions 1 to 7. Page 2: questions 8 to 15. Page 3: the comparison sheet, a whole page to write on */
  .checklist-page #g3 { break-before: page; }

  .cl-print-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 7pt 12pt; margin-bottom: 9pt; border-radius: 6pt;
    background: #2a2230; color: #ecd2ab; font-size: 9pt; font-weight: 600;
  }
  .cl-print-brand { direction: ltr; unicode-bidi: isolate; color: #f1eadf; font-weight: 900; font-size: 11pt; }
  .cl-print-brand span { font-weight: 400; color: #ecd2ab; }

  .article-head .kicker { margin-bottom: 4pt; font-size: 9pt; }
  .article-head .kicker::before { width: 5pt; height: 5pt; border-radius: 50%; }
  .article-head h1 { font-size: 18pt; line-height: 1.15; letter-spacing: -0.01em; }
  .article-body { margin-top: 6pt; }
  .article-body p { font-size: 9.6pt; line-height: 1.4; margin-top: 3pt; }
  .article-body p.opening { font-size: 10pt; }

  .checklist-page .cl-how { margin-top: 6pt; padding: 5pt 10pt; border-radius: 6pt; border: 1px solid #d8cab5; background: #fbf7f1; break-inside: avoid; }
  .checklist-page .cl-how h2 { font-size: 10.5pt; }
  .checklist-page .article-body .cl-steps { margin-top: 3pt; }
  .checklist-page .article-body .cl-steps li { font-size: 9.5pt; margin-top: 2pt; padding-inline-start: 18pt; line-height: 1.4; }
  .checklist-page .article-body .cl-steps li::before { width: 12pt; height: 12pt; font-size: 7pt; top: 0.08em; }
  .checklist-page .article-body p.cl-print-legend { margin-top: 6pt; font-size: 8.8pt; color: #4d4154; }

  .checklist-page .cl-group { break-inside: auto; }
  .checklist-page .cl-group h2 { margin-top: 8pt; padding-top: 0; font-size: 12pt; gap: 7pt; break-after: avoid; }
  .checklist-page .cl-group h2::before { display: none; }
  .checklist-page #g3 h2 { margin-top: 0; }
  .cl-letter { width: 17pt; height: 17pt; border-radius: 4pt; font-size: 9pt; }

  .checklist-page .article-body ol.cl-list { margin-top: 4pt; gap: 4pt; }
  .checklist-page .article-body ol.cl-list > li { padding: 4pt 8pt 5pt; }
  .cl-item { border-radius: 5pt; border: 1px solid #d8cab5; background: #fff !important; break-inside: avoid; }
  .cl-head { gap: 8pt; align-items: center; }
  .cl-head h3 { flex: 1; font-size: 10.4pt; line-height: 1.28; }
  .cl-num { min-width: 16pt; height: 16pt; padding: 0 3pt; margin-inline-end: 6pt; font-size: 8pt; vertical-align: 0.05em; }
  .cl-compare { display: inline-flex; gap: 4pt; flex: 0 0 auto; }
  .cl-compare i {
    display: grid; place-items: center; width: 16pt; height: 16pt; border-radius: 3pt;
    border: 1.2pt solid #b3542c; font-style: normal; font-size: 7.5pt; font-weight: 700; color: #9c4726;
  }
  .checklist-page .article-body p.cl-why { margin: 2pt 0 0; padding: 0; padding-inline-start: 22pt; font-size: 8.6pt; line-height: 1.34; color: #4d4154; }
  .checklist-page .article-body p.cl-ask { margin: 2pt 0 0; margin-inline-start: 22pt; padding: 0; background: none; font-size: 8.9pt; line-height: 1.32; color: #2a2230; }

  .article-body .pull { margin: 10pt 0 0; padding: 0 9pt; border-inline-start: 2pt solid #b3542c; break-inside: avoid; }
  .article-body .pull p { font-size: 10.5pt; }
  .checklist-page .article-body p.cl-message { margin-top: 6pt; padding: 5pt 10pt; border-radius: 6pt; background: #fbf7f1; border: 1px solid #d8cab5; font-size: 9.6pt; }
  .checklist-page .article-body p.cl-message strong { margin-bottom: 2pt; font-size: 10.5pt; }
  .article-body .pull p + p { margin-top: 1pt; }
  .article-body .pull + p { font-size: 9.5pt; }

  .cl-sheet { margin-top: 0; break-before: page; break-inside: avoid; }
  .checklist-page .cl-sheet h2 { margin-top: 0; padding-top: 0; font-size: 12pt; }
  .checklist-page .cl-sheet h2::before { display: none; }
  .checklist-page .article-body p.cl-sheet-note { margin-top: 3pt; font-size: 8.8pt; line-height: 1.38; color: #4d4154; }
  .cl-sheet table { width: 100%; margin-top: 6pt; border-collapse: collapse; table-layout: fixed; font-size: 9pt; }
  .cl-sheet th, .cl-sheet td { border: 1px solid #d8cab5; padding: 5pt 6pt; height: 50pt; text-align: start; vertical-align: top; }
  .cl-sheet thead th { height: auto; background: #f1eadf; font-weight: 800; color: #2a2230; }
  .cl-sheet tbody th { width: 30%; font-weight: 700; color: #3a3040; background: #fbf7f1; }
  .cl-sheet .cl-sheet-notes th, .cl-sheet .cl-sheet-notes td { height: 225pt; }

  .cl-print-foot { margin-top: 12pt; padding-top: 6pt; border-top: 1px solid #d8cab5; font-size: 8.5pt; line-height: 1.45; color: #4d4154; }
  .cl-print-foot span { white-space: nowrap; unicode-bidi: isolate; }
  a { color: inherit !important; text-decoration: none !important; }
}
