/* Resume builder: an editor window on the left, the paper on the right, one at a time on a phone. Loaded after
   styles.css and reads only its tokens. The paper's own type is set in points and ems from the look settings, so
   the preview, the print sheet and the one-page fit all measure the same page. */

.bld { padding-block: 24px 0; }
.bld-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.bld-title { margin: 0; font-size: var(--text-26); font-weight: var(--weight-500); letter-spacing: var(--track-display); line-height: 1.2; }
.doc-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* Safari draws a native select at its own height; a plain box with a drawn chevron keeps 44 px everywhere. */
.sel { position: relative; display: block; }
.sel select { appearance: none; -webkit-appearance: none; min-height: 44px; padding-right: 36px; }
.sel::after { content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.doc-bar .sel { flex: 0 1 auto; }
.doc-bar select { width: auto; min-width: 220px; max-width: 320px; }
.doc-bar .btn, .out-actions .btn, .view-switch .btn { padding-inline: 14px; font-size: var(--text-15); }
.bld-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: 14px; }
.grow { flex: 1 1 240px; min-width: 0; }
.bld-note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0 0; font-size: var(--text-14); color: var(--ink-2); }

.start { margin-top: 18px; padding: 24px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow-card); transition: box-shadow 140ms ease; }
.start.drop-over { box-shadow: 0 0 0 2px var(--accent), var(--shadow-card); }
.start h2 { margin-bottom: 14px; }
.start-ways { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
/* A hairline between the one primary way in and the other ways, so the filled button never reads as a selected option. */
.start-or { align-self: stretch; width: 1px; margin-block: 8px; margin-inline: 4px; background: var(--line); }
@media (max-width: 520px) { .start-ways > .btn.primary { flex-basis: 100%; } .start-ways > .start-or { display: none; } .start-ways > .btn.secondary { flex: 1 1 40%; justify-content: center; } }
.start .hint { margin: 0; }
#paste-row { margin-top: 14px; }
/* The templates drawn with the sample resume, so the page shows what it makes before anything is added. The paper
   inside each thumb is the real renderer at full size, scaled down by fitLooks() to the thumb's width; the thumb shows the
   top half of the page, where the sample's text sits. */
.looks { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.looks-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; }
.looks h3 { margin: 0 0 4px; font-size: var(--text-17); font-weight: var(--weight-500); }
.looks .hint { margin: 0; }
.look-cats { margin: 0; }
.look-cats .pill { min-height: 36px; }
/* Three across on a wide screen and two on a phone (owner 2026-11-18, "the templates thumbnails are too tiny"): at 1440
   each thumb went from 166 px to 363, at 390 from 84 to 140 (drive-builder holds the floor). */
.look-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .look-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.look { display: grid; gap: 6px; padding: 8px 8px 10px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card); color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.look:hover { border-color: var(--ink-3); }
.look[aria-pressed="true"] { border-color: var(--cta); box-shadow: 0 0 0 1px var(--cta); }
.look:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.look-thumb { position: relative; display: block; aspect-ratio: 8.5 / 5.5; overflow: hidden; border-radius: 6px; background: var(--surface); }
.look-thumb .paper { position: absolute; top: 0; left: 0; box-shadow: none; cursor: inherit; pointer-events: none; }
.look b { padding-inline: 2px; font-weight: var(--weight-500); font-size: var(--text-14); }
.look-note { padding-inline: 2px; font-size: var(--text-12); color: var(--ink-2); line-height: 1.35; }
.tab-badge { display: inline-flex; align-items: center; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: var(--text-12); font-variant-numeric: tabular-nums; }
.tab[aria-selected="true"] .tab-badge { background: var(--accent-soft); color: var(--accent); }
.sc-bulk { margin-top: 12px; justify-content: center; }
.tg-handoff { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 8px; border-top: 1px solid var(--line); }
@media (hover: hover) {
  body:not([data-mode="share"]) #paper [data-path]:hover { background: var(--accent-soft); border-radius: 2px; }
}

.out-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.out-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin: 0 0 12px; }
.out-label { margin-right: 4px; font-size: var(--text-14); color: var(--ink-2); }
.view-switch { display: none; gap: 6px; }
/* The side showing wears the nav's current-page fill, so it reads at a glance, not only by its border. */
.view-switch .btn[aria-pressed="true"] { border-color: var(--ink); background: var(--surface); }
.share-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 16px; padding-block: 10px; padding-inline: 16px; border-radius: 12px; background: var(--surface); font-size: var(--text-15); }
.share-note p { margin: 0; }
.share-note a { color: var(--accent); }

/* The two columns. */
.work { display: grid; gap: 24px; margin-top: 16px; align-items: start; }
@media (min-width: 1000px) { .work { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.edit-col.window { margin-top: 0; }
.edit-col .window-bar { padding-inline: 8px; }
.edit-col .tab-pane { min-height: 0; }
.ed-pane { padding-block: 8px 20px; padding-inline: 20px; }
.preview-col { min-width: 0; }
@media (min-width: 1000px) {
  .preview-col { position: sticky; top: 80px; }
  .paper-stage { max-height: calc(100vh - 180px); max-height: calc(100dvh - 180px); overflow: auto; }
  /* Edit and Preview are for one column at a time; side by side the bar has nothing to hold. */
  .out-bar { display: none; }
}
.preview-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin: 0 0 8px; font-size: var(--text-13); color: var(--ink-2); }
.preview-meta b { font-weight: var(--weight-500); color: var(--ink); }
.paper-stage { padding: 20px; border-radius: 16px; background: var(--surface); }
.paper-fit { position: relative; margin-inline: auto; }

/* Phones and narrow windows: one column at a time, chosen by Edit and Preview. */
@media (max-width: 999px) {
  .view-switch { display: flex; }
  body[data-view="edit"] .preview-col, body[data-view="preview"] .edit-col { display: none; }
  /* Downloads sit with the paper they print. */
  body[data-view="edit"] .out-actions { display: none; }
}
body[data-mode="share"] .edit-col, body[data-mode="share"] .view-switch, body[data-mode="share"] .out-actions { display: none; }
body[data-mode="share"] .work { grid-template-columns: minmax(0, 1fr); max-width: 900px; margin-inline: auto; }
body[data-mode="share"] .preview-col { position: static; }
body[data-mode="share"] .paper-stage { max-height: none; }

/* The editor. */
.ed-sec { border-bottom: 1px solid var(--line); }
.ed-sec > summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; cursor: pointer; list-style: none; font-size: var(--text-17); font-weight: var(--weight-500); }
.ed-sec > summary::-webkit-details-marker { display: none; }
.ed-sec > summary::after { content: "+" / ""; color: var(--ink-3); font-size: var(--text-20); }
.ed-sec[open] > summary::after { content: "–" / ""; }
.ed-body { padding-block: 4px 18px; }
.ed-sub { margin: 18px 0 8px; font-size: var(--text-15); font-weight: var(--weight-500); }
/* A pane that opens on a sub-heading starts it where the Content pane starts its first section, not 18 px lower. */
.ed-pane > .ed-sub:first-child, .ed-pane > :first-child > .ed-sub:first-child { margin-top: 10px; }
.ed-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ed-f { display: grid; gap: 6px; align-content: start; font-size: var(--text-14); color: var(--ink-2); }
.ed-f.wide { grid-column: 1 / -1; }
.ed-f textarea { min-height: 0; }
.ed-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .ed-grid { grid-template-columns: minmax(0, 1fr); } }
.ed-item { padding-block: 16px; border-top: 1px solid var(--line); }
.ed-item:first-child { border-top: 0; padding-top: 4px; }
.item-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.add-item { margin-top: 4px; }
.btn.tiny { min-height: 36px; padding-block: 6px; padding-inline: 12px; font-size: var(--text-14); }
.quiet-danger { color: var(--low); }
.bullets { list-style: none; margin: 14px 0 10px; padding: 0; display: grid; gap: 12px; }
.bl-row { display: flex; gap: 8px; align-items: flex-start; }
.bl-row textarea { flex: 1 1 auto; min-width: 0; min-height: 64px; font-size: var(--text-16); line-height: 1.45; }
.bl-tools { display: flex; flex-direction: column; gap: 4px; }
.icon-btn { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); color: var(--ink-2); font: inherit; font-size: var(--text-16); cursor: pointer; }
.icon-btn:hover:not(:disabled) { color: var(--ink); border-color: var(--ink-3); }
.icon-btn:disabled { opacity: .4; cursor: default; }
.icon-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.bl-issues { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.iss { padding-block: 2px; padding-inline: 8px; border-radius: 999px; background: var(--low-soft); color: var(--ink); font-size: var(--text-12); }
.bl-ok { margin: 6px 0 0; font-size: var(--text-13); color: var(--good); }
.bl-tip { margin: 6px 0 0; font-size: var(--text-13); color: var(--ink-2); }
.rw-toggle, .bl-polish-link { font-size: var(--text-13); margin-left: 4px; min-height: 28px; }
.rw-card { margin-top: 10px; }
.rw-card .row { margin-top: 10px; }
@keyframes field-flash { from { box-shadow: 0 0 0 4px var(--accent-soft); } to { box-shadow: 0 0 0 0 transparent; } }
.flash { animation: field-flash 1.2s ease-out; }

/* Design. */
.ds { padding-top: 8px; }
/* The picker's thumbs: 103 px to 227 at 1440, 90 to 147 at 390, two across on a phone. */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
@media (max-width: 520px) { .tpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
.tpl { display: grid; gap: 6px; padding: 6px 6px 8px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card); color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.tpl b { padding-inline: 2px; font-weight: var(--weight-500); font-size: var(--text-14); }
.tpl .look-thumb { aspect-ratio: 8.5 / 4.6; }
.so-list { display: grid; gap: 6px; margin: 0 0 10px; padding: 0; list-style: none; }
.so-row { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); }
.so-row span { flex: 1 1 auto; min-width: 0; font-size: var(--text-15); }
.tpl:hover { border-color: var(--ink-3); }
.tpl[aria-pressed="true"] { border-color: var(--cta); box-shadow: 0 0 0 1px var(--cta); }
.tpl:focus-visible, .swatch:focus-visible, .tg-pick:focus-visible, .sc-check:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ds .ed-grid { margin-top: 16px; }
.ds input[type="range"] { height: 44px; padding: 0; border: 0; background: transparent; accent-color: var(--cta); }
.ds output { color: var(--ink); font-variant-numeric: tabular-nums; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding-block: 6px; padding-inline: 10px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); color: var(--ink); font: inherit; font-size: var(--text-14); cursor: pointer; }
.swatch i { width: 16px; height: 16px; border-radius: 50%; background: var(--sw); }
.swatch[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.fit-note { margin-top: 10px; }
.fit-note[data-fits="false"] { color: var(--low); }

/* Score. */
.sc { padding-top: 12px; }
.sc-dial { max-width: 340px; margin-inline: auto; }
.sc .fixes { margin-bottom: 8px; }
.sc .fix .row { margin-top: 8px; }
.sc-cat { border-bottom: 1px solid var(--line); }
.sc-cat > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; cursor: pointer; list-style: none; font-size: var(--text-15); font-weight: var(--weight-500); }
.sc-cat > summary::-webkit-details-marker { display: none; }
.sc-cat > summary span { font-weight: var(--weight-400); color: var(--ink-2); font-size: var(--text-14); font-variant-numeric: tabular-nums; }
.sc-checks { list-style: none; margin: 0 0 12px; padding: 0; }
.sc-checks li { padding-block: 8px; border-top: 1px solid var(--line); font-size: var(--text-14); }
.sc-checks p { margin: 2px 0 0; color: var(--ink-2); font-size: var(--text-13); }
.sc-checks li::before { margin-right: 6px; }
.sc-checks .pass::before { content: "✓" / ""; color: var(--good); }
.sc-checks .miss::before { content: "!" / ""; color: var(--low); }
.sc-checks .skip::before { content: "–" / ""; color: var(--ink-3); }
.sc-check { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: var(--text-14); text-align: left; cursor: pointer; }
.sc-check:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Keywords and the job picker. */
.tg { padding-top: 12px; }
.tg-current { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; box-shadow: var(--shadow-card); }
.tg-current > div { display: grid; flex: 1 1 180px; min-width: 0; }
.tg-current b { font-weight: var(--weight-500); }
.tg-current span { font-size: var(--text-14); color: var(--ink-2); }
.kw { margin-top: 14px; }
.kw-lead { margin: 0; font-size: var(--text-15); }
.kw-miss { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.kw-miss li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding-block: 6px; border-top: 1px solid var(--line); font-size: var(--text-14); }
.kw-word { font-weight: var(--weight-500); }
.kw-where { flex: 1 1 auto; color: var(--ink-2); font-size: var(--text-13); }
.hl-check { margin-top: 14px; min-height: 44px; }
.hl-check input { width: 20px; height: 20px; }
.picker .hint { margin: 6px 0; }
.tg-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tg-pick { display: grid; gap: 2px; width: 100%; min-height: 52px; padding-block: 8px; padding-inline: 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.tg-pick:hover { border-color: var(--ink-3); }
.tg-pick b { font-weight: var(--weight-500); font-size: var(--text-15); }
.tg-pick span { font-size: var(--text-13); color: var(--ink-2); }
.tg-paste { margin-top: 14px; }
.tg-paste > summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--accent); font-size: var(--text-15); list-style: none; }
.tg-paste > summary::-webkit-details-marker { display: none; }
.paper mark.kw { background: var(--accent-soft); color: inherit; border-radius: 2px; box-shadow: 0 0 0 1px var(--accent-soft); }

/* The agent. */
.ag { padding-top: 12px; }
.ag-prompts { display: flex; flex-wrap: wrap; gap: 8px; }
.ag-prompts .btn[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.ag-flow { margin-top: 16px; }
.ag-count { margin: 0 0 10px; font-size: var(--text-13); color: var(--ink-2); }
.ag-step .tg-current { margin-bottom: 4px; }
.jb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.jb { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 12px; align-items: center; padding: 12px; border-radius: 12px; box-shadow: var(--shadow-card); }
.jb-score { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); font-weight: var(--weight-500); font-variant-numeric: tabular-nums; }
.jb-what { display: grid; min-width: 0; }
.jb-what b { font-weight: var(--weight-500); font-size: var(--text-15); }
.jb-what span { font-size: var(--text-13); color: var(--ink-2); }
.jb-acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }

/* Footer: Delete My Data asks on the page. */
.foot .linkish { font-size: var(--text-14); color: var(--ink-2); }
.foot .linkish:hover { color: var(--ink); }
.foot .linkish.foot-delete, .foot .linkish.foot-delete:hover { color: var(--low); }
.wipe { flex-basis: 100%; padding: 16px; border-radius: 12px; background: var(--card); box-shadow: var(--shadow-card); color: var(--ink); }
.wipe p { margin: 0; }
.wipe .btn.danger { color: var(--low); border-color: var(--low); }
#wipe-done { flex-basis: 100%; margin: 0; }

/* Touch: every control 44 px tall. */
@media (max-width: 999px), (pointer: coarse) {
  .edit-col .tab { min-height: 44px; }
  .btn.tiny { min-height: 44px; }
  .look-cats .pill { min-height: 44px; }
  .icon-btn { width: 44px; height: 44px; }
  .rw-toggle, .bl-polish-link, .sc-check { min-height: 44px; }
  .foot nav a, .foot .linkish { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
}
@media (max-width: 520px) {
  .edit-col .tab { min-height: 44px; gap: 3px; }
  .edit-col .tab-badge { margin-left: 0; padding: 0 5px; }
  .bld { padding-block: 16px 0; }
  .bld-title { font-size: var(--text-22); }
  /* On a phone the nav's Resume pill names the page; the title stays for screen readers and a shared resume shows it. */
  body:not([data-mode="share"]) .bld-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .doc-bar { width: 100%; }
  .doc-bar .sel { flex: 1 1 100%; }
  .doc-bar { gap: 6px; }
  .doc-bar .btn { flex: 1 1 auto; padding-inline: 10px; font-size: var(--text-14); }
  .out-bar { margin-top: 10px; }
  .view-switch { flex: 1 1 100%; }
  .view-switch .btn { flex: 1 1 0; }
  .out-actions .btn { flex: 1 1 auto; padding-inline: 12px; }
  .out-label { flex-basis: 100%; }
  .doc-bar select { width: 100%; max-width: none; }
  .out-actions { justify-content: flex-start; }
  .ed-pane { padding-inline: 14px; }
  .paper-stage { padding: 10px; border-radius: 12px; }
  .start { padding: 18px 16px; }
}

/* ---- the paper ---------------------------------------------------------------------------------------------- */
.paper {
  position: relative; width: var(--pw); min-height: var(--ph); padding: var(--pm); transform-origin: top left;
  background: var(--card); box-shadow: var(--shadow-sheet); color: var(--ink);
  font-family: var(--pf); font-size: var(--ps); line-height: var(--plh); cursor: text;
}
.paper * { letter-spacing: 0; }
.paper-in { font-size: 1em; }
.page-cut { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--line-2); pointer-events: none; }
.paper b { font-weight: var(--weight-600); }
.r-head { margin-bottom: .9em; }
.r-name { margin: 0; font-size: 2.1em; font-weight: var(--weight-600); line-height: 1.15; letter-spacing: 0; }
.r-headline { margin: .15em 0 0; font-size: 1.1em; color: var(--ink-2); }
.r-reach { margin: .35em 0 0; font-size: .92em; color: var(--ink-2); }
.r-dot { color: var(--ink-3); }
.r-sec { margin-top: .9em; break-inside: auto; }
.r-h { margin: 0 0 .45em; font-size: 1.08em; font-weight: var(--weight-600); line-height: 1.3; letter-spacing: 0; break-after: avoid; }
.r-entry + .r-entry { margin-top: .65em; }
.r-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1em; break-after: avoid; }
.r-row + .r-row { margin-top: .2em; }
.r-what { min-width: 0; }
.r-when { flex: none; color: var(--ink-2); white-space: nowrap; }
.r-loc { color: var(--ink-2); }
.r-sep { color: var(--ink-3); }
.r-list { margin: .25em 0 0; padding-left: 1.15em; }
.r-list li { margin-top: .12em; break-inside: avoid; }
.r-p { margin: 0 0 .35em; }
.r-p:last-child { margin-bottom: 0; }

/* Classic: centered head, ink headings over a hairline. */
.t-classic .r-head { text-align: center; }
.t-classic .r-h { padding-bottom: .15em; border-bottom: 1px solid var(--line-2); }
/* Modern: the accent rule under the name, accent headings. */
.t-modern .r-head { padding-bottom: .7em; border-bottom: .22em solid var(--pa); }
.t-modern .r-name, .t-modern .r-h { color: var(--pa); }
/* Compact: two columns, the details down the side. */
.t-compact .r-name { font-size: 1.8em; }
.t-compact .r-head { padding-bottom: .5em; border-bottom: 1px solid var(--line-2); }
.t-compact .r-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .44fr); gap: 1.3em; }
.t-compact .r-side { padding-left: 1em; border-left: 1px solid var(--line-2); }
.t-compact .r-side .r-row { display: block; }
.t-compact .r-side .r-when { white-space: normal; }
.t-compact .r-h { color: var(--pa); font-size: 1em; }
.t-compact .r-sec { margin-top: .7em; }
/* Minimal: quiet headings, more air. */
.t-minimal .r-name { font-weight: var(--weight-500); }
.t-minimal .r-h { font-weight: var(--weight-500); font-size: .95em; color: var(--ink-2); }
.t-minimal .r-sec { margin-top: 1.3em; }
.t-minimal .r-entry + .r-entry { margin-top: .9em; }
/* Technical: a bar on each heading, skills first in two columns. */
.t-technical .r-h { padding-left: .5em; border-left: .25em solid var(--pa); }
.t-technical .r-skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .2em 1.4em; }
.t-technical .r-skills .r-p { margin: 0; }
.t-technical .r-when { font-variant-numeric: tabular-nums; }

/* Sidebar: the side column sits left on the page, as tall as the main column, on a light wash of the accent; the file keeps it second. */
.t-sidebar .r-cols { display: grid; grid-template-columns: minmax(0, .5fr) minmax(0, 1fr); gap: 1.4em; }
.t-sidebar .r-side { order: -1; padding: 1em .9em; border-radius: .35em; background: color-mix(in srgb, var(--pa) 8%, var(--card)); }
.t-sidebar .r-side .r-sec:first-child { margin-top: 0; }
.t-sidebar .r-side .r-row { display: block; }
.t-sidebar .r-side .r-when { white-space: normal; }
.t-sidebar .r-reach-list { margin: 0; padding: 0; list-style: none; font-size: .92em; overflow-wrap: anywhere; }
.t-sidebar .r-reach-list li + li { margin-top: .2em; }
.t-sidebar .r-name { color: var(--pa); }
.t-sidebar .r-h { font-size: 1em; color: var(--pa); }

/* Margin: each heading in its own left column, the section beside it. */
.t-margin .r-head { padding-bottom: .6em; border-bottom: 1px solid var(--line-2); }
.t-margin .r-sec { display: grid; grid-template-columns: minmax(0, 22%) minmax(0, 1fr); gap: 1.2em; margin-top: 1em; }
.t-margin .r-h { margin: 0; font-size: 1em; color: var(--pa); }

/* Banner: name, headline and contact on a light wash of the accent. */
.t-banner .r-head { padding: 1em 1.1em; border-radius: .35em; background: color-mix(in srgb, var(--pa) 10%, var(--card)); }
.t-banner .r-name { color: var(--pa); }
.t-banner .r-h { color: var(--pa); }

/* Executive: name and headline left, contact stacked on the right; headings run into a rule. */
.t-executive .r-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1.5em; align-items: end; padding-bottom: .7em; border-bottom: .18em solid var(--pa); }
.t-executive .r-name, .t-executive .r-headline { grid-column: 1; }
.t-executive .r-reach { grid-column: 2; grid-row: 1 / span 2; align-self: end; margin: 0; text-align: right; }
.t-executive .r-reach > span:not(.r-dot) { display: block; }
.t-executive .r-dot { display: none; }
.t-executive .r-h { display: flex; align-items: center; gap: .6em; }
.t-executive .r-h::after { content: ""; flex: 1; border-top: 1px solid var(--line-2); }

/* Elegant: centered head, headings centered between two rules. */
.t-elegant .r-head { text-align: center; }
.t-elegant .r-name { font-size: 2.3em; font-weight: var(--weight-500); }
.t-elegant .r-h { display: flex; align-items: center; gap: .8em; font-weight: var(--weight-500); }
.t-elegant .r-h::before, .t-elegant .r-h::after { content: ""; flex: 1; border-top: 1px solid var(--line-2); }
.t-elegant .r-sec { margin-top: 1.1em; }

/* Timeline: each entry's dates in a left column, its title and lines beside a hairline. */
.t-timeline .r-head { padding-bottom: .6em; border-bottom: 1px solid var(--line-2); }
.t-timeline .r-h { color: var(--pa); }
.t-timeline .r-entry { display: grid; grid-template-columns: minmax(0, 17%) minmax(0, 1fr); column-gap: 1em; }
.t-timeline .r-entry > .r-row { display: contents; }
.t-timeline .r-entry .r-when { grid-column: 1; grid-row: 1 / span 2; white-space: normal; font-size: .92em; line-height: 1.5; }
.t-timeline .r-entry .r-what, .t-timeline .r-entry > .r-list { grid-column: 2; padding-left: .9em; border-left: 1px solid var(--line-2); }
.t-timeline .r-entry > .r-list { margin-top: 0; padding-top: .25em; padding-left: 2.05em; }
.t-timeline .r-entry + .r-entry { margin-top: 0; }
.t-timeline .r-entry + .r-entry .r-what { padding-top: .65em; }
.t-timeline .r-entry + .r-entry .r-when { padding-top: .65em; }
/* A section with no dated entries (summary, skills, certifications) sits in the text column, beside the same line. */
.t-timeline .r-body > :not(.r-entry) { margin-left: calc(17% + 1em); padding-left: .9em; border-left: 1px solid var(--line-2); }
.t-timeline .r-body > .r-p { margin-bottom: 0; padding-bottom: .35em; }

/* Ledger: one accent rule down the whole page, the name large beside it. */
.t-ledger.paper-in { padding-left: 1.1em; border-left: .3em solid var(--pa); }
.t-ledger .r-name { font-size: 2.4em; font-weight: var(--weight-500); }
.t-ledger .r-h { font-size: .98em; color: var(--pa); }
.t-ledger .r-sec { margin-top: 1.05em; }

/* Bar: each heading on a light wash of the accent across the column. */
.t-bar .r-head { padding-bottom: .4em; }
.t-bar .r-h { padding: .2em .55em; border-radius: .25em; background: color-mix(in srgb, var(--pa) 12%, var(--card)); font-size: 1em; }

/* Cards: every section in its own hairline box. */
.t-cards .r-head { margin-bottom: .7em; }
.t-cards .r-sec { margin-top: .6em; padding: .7em .85em; border: 1px solid var(--line-2); border-radius: .4em; }
.t-cards .r-h { font-size: 1em; color: var(--pa); }

/* Balanced: education and skills share one row of two columns under the experience. */
.t-balanced .r-head { padding-bottom: .6em; border-bottom: .12em solid var(--pa); }
.t-balanced .r-h { color: var(--pa); }
.t-balanced .r-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4em; }
.t-balanced .r-pair .r-row { display: block; }
.t-balanced .r-pair .r-when { white-space: normal; }

/* Editorial: a serif for the name and headings over the chosen body font, a double hairline under the head. */
.t-editorial .r-name, .t-editorial .r-h { font-family: Georgia, 'Times New Roman', serif; font-weight: var(--weight-400); }
.t-editorial .r-name { font-size: 2.3em; }
.t-editorial .r-head { padding-bottom: .6em; border-bottom: 3px double var(--line-2); }
.t-editorial .r-h { font-size: 1.2em; }
.t-editorial .r-headline { font-style: italic; }

/* Underline: a short accent stroke under each heading; dates in the accent. */
.t-underline .r-h { display: inline-block; padding-bottom: .2em; border-bottom: .16em solid var(--pa); margin-bottom: .55em; }
.t-underline .r-when { color: var(--pa); }

/* Panel: the side column on the right carries a light wash of the accent. */
.t-panel .r-head { padding-bottom: .5em; border-bottom: .15em solid var(--pa); }
.t-panel .r-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .46fr); gap: 1.3em; }
.t-panel .r-side { padding: .9em; border-radius: .35em; background: color-mix(in srgb, var(--pa) 8%, var(--card)); }
.t-panel .r-side .r-sec:first-child { margin-top: 0; }
.t-panel .r-side .r-row { display: block; }
.t-panel .r-side .r-when { white-space: normal; }
.t-panel .r-h { color: var(--pa); font-size: 1em; }

/* Print: only the paper, at the paper's size; @page comes from the look (builder.js). */
#print-root { display: none; }
@media print {
  body > *:not(#print-root) { display: none !important; }
  html, body { background: none; padding: 0; margin: 0; }
  /* styles.css hides every body child but its own #print-sheet, with !important; this sheet's paper comes back. */
  html body > #print-root { display: block !important; }
  .print-paper { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .print-paper { width: auto; min-height: 0; padding: 0; box-shadow: none; transform: none; }
}
