/* Harvard OCS resume look. Each .paper.page is one letter-size sheet (pages.mjs paginates at block
   boundaries); app.js scales the .page-stack to fit narrow screens. */
:root {
  --page-margin: 0.4in; /* single source of truth: sheet padding here, print.css, PAGE_MARGIN_IN in pages.mjs */
}
.page-stack {
  width: 8.5in;
  transform-origin: top left;
}
.paper {
  width: 8.5in;
  min-height: 11in; /* a single block taller than a page grows its sheet rather than being clipped */
  box-sizing: border-box;
  padding: var(--page-margin);
  background: #fff;
  color: #000;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.page-label {
  margin: 6px 0 18px;
  text-align: center;
  font: 12px system-ui, sans-serif;
  color: #57606a;
}
.page-stack > .page-label:last-child { margin-bottom: 0; }
/* Phones: minimal chrome around the sheets so the page uses the full screen width. */
@media screen and (max-width: 599px) {
  .pane-preview { padding: 8px; }
  .page-label { margin: 2px 0 8px; }
}

/* Harvard OCS template. Vertical rhythm in pt only: 18pt name, 10pt contact, 11pt headings
   (10pt above / 4pt below), 6pt between entries, 1pt between bullets. */
.resume {
  display: flow-root; /* keep child margins inside, so measured heights include them */
  font-family: "Times New Roman", Times, Georgia, serif;
  font-size: 11pt;
  line-height: 1.22;
  overflow-wrap: break-word; /* long URLs in bullets/lines wrap instead of overflowing the sheet */
}
.resume a { color: inherit; text-decoration: none; }

.r-name {
  font-size: 18pt;
  font-weight: bold;
  line-height: 1.15;
  text-align: center;
  margin: 0 0 2pt;
}
.r-contact {
  font-size: 10pt;
  text-align: center;
  margin: 0 0 2pt;
}

.r-section { margin-top: 10pt; }
.page:not(.measuring) .resume > .r-section:first-child { margin-top: 0; }
.r-heading {
  font-size: 11pt;
  font-weight: bold;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 0.75pt solid #000;
  padding-bottom: 1pt;
  margin: 0 0 4pt;
}

.r-entry { margin-bottom: 6pt; }
.r-section > .r-entry:last-child { margin-bottom: 0; }
.r-row {
  display: flex;
  align-items: baseline;
  gap: 12pt;
}
.r-left { flex: 1 1 auto; min-width: 0; }
.r-right {
  flex: 0 0 auto;
  margin-left: auto; /* stays right even when the left side is empty */
  text-align: right;
  white-space: nowrap;
}
.r-org .r-left { font-weight: bold; }
.r-org .r-right { font-weight: normal; }
.r-role .r-left { font-style: italic; }
.r-detail { font-size: 10.5pt; margin: 0; }

.r-bullets {
  list-style: disc outside; /* outside marker = hanging indent, wrapped lines align under the first word */
  margin: 1pt 0 0;
  padding-left: 0.18in;
}
.r-bullets li { margin: 0 0 1pt; padding: 0; }
.r-bullets li:last-child { margin-bottom: 0; }

.r-line { margin: 0 0 2pt; }
.r-line:last-child { margin-bottom: 0; }

/* Editor preview only: on very narrow sheets let dates/locations shrink with an ellipsis rather than overflow.
   The sheet is a fixed 8.5in, so this only kicks in for extreme content; print.css restores full text. */
@media screen {
  .r-right { max-width: 60%; overflow: hidden; text-overflow: ellipsis; }
}
