/* Lead magnets: the key-dates calendar box and the printable score sheet (partials/magnet-*.njk). */
.hs-magnet {
  padding-block: 40px;
  background: var(--color-gray-50);
  border-block: 1px solid var(--color-gray-200);
}

.hs-magnet--compact {
  padding-block: 24px;
}

.hs-magnets-home {
  padding-block: 40px 0;
}

.hs-magnets-home h2 {
  margin: 0 0 16px;
}

.hs-magnets-home-link {
  padding-block: 16px 32px;
}

.hs-magnet-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.hs-page .hs-magnet h2 {
  margin: 4px 0 8px;
  font-size: 1.45rem;
}

.hs-magnet-copy p:not(.hs-eyebrow) {
  margin: 0;
  max-width: 60ch;
}

.hs-magnet-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hs-magnet-form input[type='email'] {
  flex: 1 1 220px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  font: inherit;
}

.hs-magnet-form .hs-download-status {
  flex-basis: 100%;
  min-height: 1.2em;
  margin: 0;
  font-size: 0.88rem;
}

.hs-magnet-done {
  margin-top: 20px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
}

.hs-magnet-done[hidden],
.hs-sheet[hidden] {
  display: none;
}

.hs-magnet-done h3 {
  margin: 0 0 8px;
}

@media (min-width: 860px) {
  .hs-magnet-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 40px;
  }
}

/* The score sheet. Sized so it can fit one printed page. */
.hs-sheet {
  margin-top: 24px;
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--color-white);
  border: 1px solid var(--color-gray-300);
  color: var(--hs-ink);
}

.hs-sheet h3,
.hs-sheet h4 {
  margin: 0;
}

/* Sections inside the sheet are blocks, not page sections: no section padding or rules. */
.hs-page .hs-sheet section,
.hs-page .hs-sheet footer,
.hs-page .hs-sheet header {
  padding: 0;
  min-height: 0;
  background: none;
  border: 0;
}

.hs-page .hs-sheet .hs-sheet-block h4 {
  border-bottom: 1px solid var(--color-gray-300);
}

.hs-sheet ol,
.hs-sheet ul {
  list-style-position: outside;
}

.hs-sheet-sources ol {
  list-style: decimal;
}

.hs-sheet-brand {
  margin: 0 0 4px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hs-sheet-asof,
.hs-sheet-note {
  margin: 6px 0 0;
  font-size: 0.88rem;
}

.hs-sheet-note {
  padding: 10px 14px;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  background: var(--color-gray-50);
}

.hs-sheet-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

@media (min-width: 860px) {
  .hs-sheet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.hs-sheet-block h4 {
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--color-gray-300);
  font-size: 1rem;
}

.hs-sheet-block dl {
  margin: 0;
}

/* A school-only sheet (no general test facts) uses the full width in two columns. */
.hs-sheet-block--wide {
  grid-column: 1 / -1;
}

.hs-sheet-block--wide dl > div {
  break-inside: avoid;
}

@media (min-width: 860px) {
  .hs-sheet-block--wide dl {
    column-count: 2;
    column-gap: 28px;
  }
}

.hs-sheet-block dt {
  font-weight: 700;
  font-size: 0.88rem;
}

.hs-sheet-block dd {
  margin: 0 0 6px;
  font-size: 0.88rem;
}

.hs-sheet-block ul {
  margin: 0;
  padding-left: 1.1em;
  list-style: disc;
  font-size: 0.88rem;
}

.hs-sheet-sources {
  margin-top: 16px;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.hs-sheet-sources h4 {
  font-size: 0.9rem;
}

.hs-sheet-sources ol {
  margin: 4px 0 0;
  padding-left: 1.6em;
}

.hs-page .hs-sheet .hs-sheet-next {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--color-gray-300);
}

.hs-sheet-next p {
  margin: 0 0 8px;
}

.hs-sheet-actions {
  margin: 16px 0 0;
}

/* Print: only the sheet (factory.js marks the rest .hs-print-hide), one page, no buttons. */
@media print {
  .hs-sheet-block--wide dl {
    column-count: 2;
    column-gap: 20px;
  }

  @page {
    margin: 0.5in;
  }

  .hs-print-hide {
    display: none !important;
  }

  .hs-magnet,
  .hs-magnet > .hs-wrap {
    padding: 0;
    border: 0;
    background: none;
    max-width: none;
  }

  .hs-sheet {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 9pt;
    line-height: 1.25;
  }

  .hs-sheet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
  }

  .hs-sheet-block,
  .hs-sheet-sources,
  .hs-sheet-next {
    break-inside: avoid;
  }

  .hs-sheet-block dd,
  .hs-sheet-block dt,
  .hs-sheet-block ul {
    font-size: 8pt;
  }

  .hs-sheet-sources {
    margin-top: 8px;
    font-size: 6.5pt;
  }

  .hs-sheet-block dd {
    margin-bottom: 2px;
  }

  .hs-sheet-block h4 {
    margin-bottom: 3px;
    font-size: 9.5pt;
  }

  .hs-sheet-header .hs-sheet-asof {
    margin-top: 2px;
    font-size: 8pt;
  }

  .hs-sheet-note {
    padding: 6px 10px;
    font-size: 8.5pt;
  }

  .hs-sheet-next .hs-button {
    min-height: 0;
    padding: 0;
    background: none;
    border: 0;
  }

  .hs-sheet-actions {
    display: none;
  }

  /* The next step stays on paper: the free start link shows its address. */
  .hs-sheet-next {
    margin-top: 10px;
  }

  .hs-sheet-next a[data-free-start] {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
  }

  .hs-sheet-next a[data-free-start]::after {
    content: ' (' attr(href) ')';
    font-weight: 400;
  }
}
