/* apa-7 page: "What PERRLA handles" – a small sheet of each part of a real APA 7 paper above its list.
   Each sheet is the top of a page from the sample Bigfoot paper, cropped to one shape so the row lines up.
   Type is sized from the sheet's own width (container units), so the proportions hold at any column width. */
.hv-cols > div { display: flex; flex-direction: column; }
.hv { container-type: inline-size; width: 100%; max-width: 300px; margin: 0.875rem 0 1.25rem; }
.hv .paper {
  aspect-ratio: 8.5 / 7.2; font-size: 7.5px; font-size: 2.75cqw; line-height: 2.3;
  padding: 11.8cqw 7% 0;                      /* one inch down to the first line, as on the page */
  box-shadow: 0 1px 2px rgba(33,37,41,0.1), 0 12px 22px -14px rgba(33,37,41,0.45);
}
.hv .paper p { font-size: inherit; color: #000; }   /* the ruled column's own paragraph size stays off the sheet */
.hv .paper .pnum { top: 5.9cqw; right: 7%; } /* the page number half an inch down */
.hv .paper::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18%; background: linear-gradient(rgba(255,255,255,0), #fff 85%); pointer-events: none; }   /* the page carries on below */

/* The page: the one-inch margins drawn in as a faint guide */
.hv--margins .paper::before { content: ""; position: absolute; top: 11.8cqw; left: 7%; right: 7%; bottom: -10%; border: 1px dashed rgba(39,102,155,0.4); border-bottom: 0; pointer-events: none; }

/* Headings: a numbered pin in the margin beside each of the five levels */
.hv .lvl { position: relative; }
.hv .lvl::before { content: attr(data-l); position: absolute; left: -5.5cqw; top: 1.21em; transform: translateY(-50%); width: 1.55em; height: 1.55em; border-radius: 50%; background: var(--blue-500); color: #fff; font-family: var(--font-mono); font-size: 0.95em; font-weight: 400; font-style: normal; line-height: 1.55em; text-align: center; text-indent: 0; }

/* References: the half-inch hanging indent drawn as a guide down the entries */
.hv--hang .paper::before { content: ""; position: absolute; top: calc(11.8cqw + 1lh); bottom: 0; left: calc(7% + 0.077 * 86%); border-left: 1px dashed rgba(39,102,155,0.55); pointer-events: none; }
