/* Dealers page: the tick-off checklist and its print sheet. */
.page-dealers h1 { font-size: clamp(1.8rem, 3.4vw, 3.25rem); line-height: 1.08; }
.page-dealers h2 { font-size: clamp(2.5rem, 4.6vw, 4.25rem); line-height: 1.04; }
.page-dealers h2.next { font-size: clamp(2rem, 3.4vw, 3rem); }
.page-dealers .poster--auto { padding-block: clamp(1.25rem, 4.5vh, 2.75rem); }

/* Opening */
.opening__links { display: flex; flex-wrap: wrap; gap: 0 1.75rem; margin: 1rem 0 0; }
.opening__links a, .guide-link { display: inline-flex; align-items: center; min-height: 2.75rem; }
.guide-link { display: inline; }
.opening__text .lead { margin-bottom: 0; }

/* Two-part panels: heading one side, words the other */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gap) clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
.split > * { margin: 0; }
.split .lead { max-width: none; }
.split .note { margin-top: 0.75rem; }
.split h2 + * { margin-top: 0; }

/* Questions */
.q { font-size: clamp(2rem, 3.6vw, 3.5rem); line-height: 1.08; }
.pair .panel > h3 + p { margin-top: 0.75rem; }

/* Checklist frame and its photograph */
.check-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: stretch;
}
.check { padding: clamp(1rem, 2.2vw, 1.75rem); }
.check__head { padding: 0.5rem 0.5rem 0.75rem; }
.check__head h2 { margin-bottom: 0.4em; }
.check__head p { margin: 0; }
.check .pair { padding: 0 0.5rem; margin-bottom: 1rem; gap: 0 var(--gap); }
.slot {
  margin: 0;
  padding: 0.5rem 0.25rem 0.75rem;
  text-align: center;
  font: italic 400 clamp(1.4rem, 2.2vw, 2rem)/1.15 var(--display);
}
.slot .note { display: block; margin-bottom: 0.25rem; font: 400 var(--fs-small)/1.4 var(--text); }
.check-photo img { flex: 1 1 0; height: auto; min-height: 22rem; aspect-ratio: auto; }

/* The seven lines */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; }
.step {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 0.2rem 1rem;
  align-items: start;
  width: 100%;
  min-height: 3.5rem;
  padding: 0.9rem 1rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--quick) linear;
}
.steps li:nth-child(odd) .step { background: var(--ground); }
.steps li .step:hover { background-color: var(--grid); }
.step:focus-visible { outline-offset: -0.375rem; }
.step::before {
  content: counter(s);
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: var(--line) solid var(--ink);
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.1875rem var(--panel);
  background: transparent;
  font: italic 400 1.0625rem/1 var(--display);
  transition: background-color var(--quick) linear, box-shadow var(--quick) linear;
}
.step[aria-pressed="true"]::before {
  background: var(--sun);
  box-shadow: inset 0 0 0 0.1875rem var(--sun), inset 0 0 0 0.25rem var(--ink);
}
.step.just::before { animation: press var(--quick) cubic-bezier(0.2, 0, 0, 1); }
@keyframes press { from { transform: scale(1.3); } to { transform: none; } }
.step__t { font: italic 400 clamp(1.35rem, 1.8vw, 1.75rem)/1.2 var(--display); }
.step__d { grid-column: 2; }
.step[aria-pressed="true"] .step__t { background: linear-gradient(transparent 62%, var(--sun) 62%); justify-self: start; }

.check__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1rem 0.5rem 0.5rem;
}
.check__count { margin: 0; font-family: var(--display); font-style: italic; font-size: var(--fs-sub); }
.js-only { display: none; }
.js .js-only { display: inline-flex; }

@media (max-width: 47.99rem) {
  .split, .check-grid { grid-template-columns: minmax(0, 1fr); }
  .page-dealers h2 { font-size: 2.5rem; }
  .check-photo img { flex: none; min-height: 0; aspect-ratio: 4 / 5; }
  .step { padding: 0.85rem 0.5rem; gap: 0.2rem 0.75rem; grid-template-columns: 2.25rem minmax(0, 1fr); }
}

/* Print: the list alone, one clean page */
@media print {
  body { background: #fff; color: #000; }
  .mast, .foot, #consent { display: none !important; }
  main > :not(#checklist) { display: none !important; }
  #checklist { display: block; padding: 0; }
  .check-photo, .check__foot .btn-row { display: none !important; }
  .check { box-shadow: none; border: var(--line) solid #000; }
  .check .pair { display: grid; }
  .step { break-inside: avoid; background: none !important; padding: 0.6rem 0.5rem; }
  .step::before {
    box-shadow: none;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .step[aria-pressed="true"]::before { background: #000; color: #fff; box-shadow: none; }
  .step[aria-pressed="true"] .step__t { background: none; text-decoration: underline; }
}
