/* mla-9 page: "What PERRLA handles" – a small sheet of each part of a real MLA 9 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 first 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; }

/* Works Cited: 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; }

/* The rest: an MLA table, label and title flush left above it, the source below it, double spaced throughout */
.hv__table { width: 100%; border-collapse: collapse; font-size: inherit; line-height: 2.3; margin: 0; border-top: 1px solid #000; border-bottom: 1px solid #000; }
.hv__table th, .hv__table td { text-align: left; font-weight: normal; padding: 0 0.6em 0 0; vertical-align: top; }
.hv__table th { border-bottom: 1px solid #000; }
.hv__table td + td, .hv__table th + th { text-align: right; padding-right: 0; }

/* The hero's first page: type follows the sheet's own width wherever the viewport-sized type would run past the
   bottom edge (the narrow two-column hero near 1000px, and phones under 360px). 2.54% of the sheet is the 13px-on-512px
   proportion of the 1440 layout, so the page breaks the same way it does there. */
.intro__grid > div:last-child { container-type: inline-size; }
.intro .paper--scaled { font-size: min(clamp(8px, 1.15vw, 13px), 2.54cqw); }
