/* ==========================================================================
   John.CVLab — reading mode (mobile).

   Restyles the SAME document markup the themes print into a single readable
   column: no page geometry, body text at device size instead of a sheet
   scaled to ~40%. Scoped under .reading-mode and linked AFTER the theme
   files in index.html, so equal-specificity overrides here win by source
   order. This file is never handed to Paged.js — print output is untouched.
   ========================================================================== */

.reading-mode {
  background: #ffffff;
  min-height: 100%;
}

.reading-mode .doc-root {
  max-width: 40em;
  margin: 0 auto;
  padding: 28px 16px 48px;
}

/* Device-sized type: the theme's pt sizes are tuned for a sheet, not a
   phone. Everything inside the document is em-based, so it all scales from
   here; the line-height var keeps base.css bullet-dot math in sync. */
.reading-mode .doc {
  --doc-line-height: 1.6;
  font-size: 16px;
}

/* Display sizes tuned for an 8.5in masthead are shouty at 16px base. */
.reading-mode .doc-name {
  font-size: 1.65em;
}

/* Entry heads stack: titles first, dates on their own muted line. The
   side-by-side (Broadsheet/Slate) and left-rail (Grid) arrangements all
   assume sheet width. */
.reading-mode .doc-entry-head {
  display: block;
}
/* Slate's "Role, Company" one-liner is a row-reverse flex pair — at phone
   width the two halves wrap as side-by-side columns. Stack every theme's
   titles instead: heading, subheading, dates, each on its own line. */
.reading-mode .doc-entry-titles {
  display: block;
}
.reading-mode .doc-entry-heading,
.reading-mode .doc-entry-subheading {
  display: block;
}
.reading-mode .theme-slate .doc-entry-subheading::after {
  content: none;
}
.reading-mode .doc-entry-dates {
  display: block;
  font-size: 0.82em;
  margin-top: 0.15em;
  padding-top: 0;
  white-space: normal;
}
.reading-mode .doc-bullets,
.reading-mode .doc-entry-timeline .doc-entry-text {
  margin-left: 0;
}

/* List sections flow as "Label: a, b, c" lines — the shared two-column grid
   lets labels eat half a phone column, and Slate's bullet dots assume its
   own padding. */
.reading-mode .doc-layout-list .doc-entries {
  display: block;
}
.reading-mode .doc-entry-list {
  display: block;
  padding-left: 0;
  margin-bottom: 0.45em;
}
.reading-mode .doc-entry-list::before {
  content: none;
}
.reading-mode .doc-list-heading {
  display: inline;
  min-width: 0;
}
.reading-mode .doc-list-heading::after {
  content: ':';
  margin-right: 0.35em;
}
.reading-mode .doc-list-text {
  display: inline;
}

/* Justified prose (Broadsheet) rivers badly in a narrow column. */
.reading-mode .doc-entry-prose {
  text-align: left;
}
