/* Plain text document look: one monospace size, an 80 column measure, and hierarchy from case,
   indent, and whitespace instead of font size or color. Loads after /style.css and reuses its
   tokens. */
:root {
  --rule: #d6d3d1;
  --link: #1d4ed8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --rule: #44403c;
    --link: #93c5fd;
  }
}

/* Undo the landing page's full height centering. */
html, body { height: auto; }

.doc main {
  display: block;
  min-height: 0;
  max-width: 80ch;
  margin: 0 auto;
  padding: 3rem 1rem 4rem;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.doc a { color: var(--link); }

.doc h1, .doc h2, .doc h3, .doc h4, .doc p, .doc ul {
  margin: 0;
  font-size: inherit;
}

.doc p + p { margin-top: 0.75em; }

.muted { color: var(--muted); }

/* The >_ mark from the landing page, shrunk to a home link. */
.doc .mark {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1.5rem;
  border-radius: 0.5rem;
  color: var(--bg);
}

header h1 { font-weight: 700; }

/* Each section starts with a dashed rule and an uppercase label. Its body is indented under it. */
section {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--rule);
}

.doc h2 {
  margin-bottom: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.doc section > :not(h2) { margin-left: 2ch; }

/* Employer and role lines put the name on the left and the dates on the right. They wrap on
   narrow screens. */
h3, h4 {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 2ch;
}

h3 { font-weight: 700; }

h4 { font-weight: 400; }

.dates { color: var(--muted); white-space: nowrap; }

article + article { margin-top: 1.5rem; }

/* Ratings and promotions sit in grey right under the employer name. */
.doc .honors { margin-top: 0.25rem; color: var(--muted); }

/* Plain grey lines like the location and dates, so no dash bullets. */
.doc .honors li { padding-left: 0; text-indent: 0; }

.doc .honors li::before { content: none; }

.role { margin: 0.5rem 0 0 2ch; }

.role p, .role ul { margin-top: 0.4rem; }

/* Dash bullets, the way a text file would write a list. */
.doc ul { padding: 0; list-style: none; }

.doc li { padding-left: 2ch; text-indent: -2ch; }

.doc li::before { content: "- "; color: var(--muted); }

/* Label and value pairs. The label column is fixed width so the values line up. */
.kv { display: flex; gap: 2ch; }

.kv > :first-child { flex: 0 0 10ch; color: var(--muted); }

/* Ctrl+P gives a clean black on white copy with no home link. */
@media print {
  :root {
    --bg: #fff;
    --fg: #000;
    --muted: #444;
    --rule: #999;
  }

  .doc .mark { display: none; }

  /* The hint is for the screen only. Keep it out of the saved PDF. */
  .print-hint { display: none; }

  .doc main { max-width: none; padding: 0; font-size: 10pt; }

  section { break-inside: avoid-page; }

  article { break-inside: avoid; }
}
