/* JTS for people (people.py). On top of the hub's style.css and its colour
   tokens, so dark mode comes with it. Big touch targets: most people
   open these on a phone with a pay stub in the other hand. */

.pt-list { display: grid; gap: 22px; margin: 10px 0 40px;
           grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.pt-card { display: block; text-decoration: none; color: var(--ink);
           border: 2px solid var(--rule); border-top: 10px solid var(--c);
           border-radius: var(--r); background: var(--paper);
           box-shadow: var(--shadow); padding: 20px 22px; }
.pt-card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--shade); }
.pt-card h2 { font-size: 26px; margin: 6px 0 4px; }
.pt-card-who { font-size: 12px; font-weight: 700; letter-spacing: .12em;
               text-transform: uppercase; color: var(--ink-2); }
.pt-card-name { font-weight: 700; margin: 0 0 10px; }
.pt-private { font-size: 12px; font-weight: 700; padding: 2px 8px; margin-left: 6px;
              border-radius: 999px; background: var(--gold-soft); color: var(--ink);
              border: 1px solid var(--gold-2); }
.pt-private-bar { display: inline-block; padding: 8px 12px; border-radius: 10px;
                  background: var(--gold-soft); border: 2px solid var(--gold-2);
                  color: var(--ink); font-size: 14.5px; margin: 0 0 12px; }

.pt-io { margin: 0 0 12px; }
.pt-io dt { font-size: 12px; font-weight: 700; letter-spacing: .12em;
            text-transform: uppercase; color: var(--ink-2); margin-top: 10px; }
.pt-io dd { margin: 2px 0 0; }
.pt-io-big dd { font-size: 18px; max-width: 60ch; }
.pt-price { font-weight: 700; margin: 12px 0; }
.pt-promise { font-size: 14.5px; color: var(--ink-2); margin: 0 0 18px; }
.pt-hero h1 { max-width: 18ch; }

.pt-about h2 { margin: 36px 0 12px; }
.pt-steps { padding-left: 1.3em; }
.pt-steps li { margin: 0 0 8px; font-size: 17px; }
.pt-faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.pt-faq summary { cursor: pointer; font-weight: 700; font-size: 17px; }
.pt-faq p { margin: 10px 0 4px; max-width: 64ch; }
.pt-foot { margin: 34px 0 50px; }

/* The simplified W-2 drawing. */
.pt-w2 { margin: 0; }
.pt-w2 svg { width: 100%; max-width: 640px; height: auto; display: block; }
.pt-w2 figcaption { font-size: 15px; color: var(--ink-2); max-width: 64ch; margin-top: 10px; }
.w2-paper { fill: var(--paper); stroke: var(--rule); stroke-width: 2; }
.w2-box { fill: none; stroke: var(--line); stroke-width: 1.5; }
.w2-hi { fill: var(--gold-soft); stroke: var(--gold-2); stroke-width: 2.5; }
.w2-line { stroke: var(--gold-2); stroke-width: 1; }
.w2-t { font-size: 12px; fill: var(--ink-2); font-family: Archivo, sans-serif; }
.w2-n { font-size: 12px; font-weight: 700; fill: var(--ink); font-family: Archivo, sans-serif; }
.w2-code { font-size: 14px; font-weight: 800; fill: var(--ink); font-family: Archivo, sans-serif; }

/* The tool. */
.pt-tool { padding: 30px 0 60px; }
.pt-tool .eyebrow a { color: inherit; text-decoration: none; }
.pt-screen h2 { font-size: clamp(26px, 4vw, 36px); margin: 4px 0 14px; outline: none; }
.pt-screen > p { max-width: 62ch; }
.pt-fld select { width: 100%; }
.pt-hint { display: block; font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.pt-money { display: flex; align-items: center; gap: 0; position: relative; }
.pt-money i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
             font-style: normal; color: var(--ink-2); pointer-events: none; }
.pt-money input { padding-left: 28px !important; }
.pt-grid { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.pt-choice { border: 0; padding: 0; margin: 18px 0; }
.pt-choice legend { font-weight: 700; font-size: 17px; margin: 0 0 10px; padding: 0; }
.pt-opt { display: inline-flex; flex-direction: column; align-items: flex-start;
          min-height: 48px; margin: 0 10px 10px 0; padding: 11px 18px;
          border: 2px solid var(--rule); border-radius: 12px; background: var(--paper);
          color: var(--ink); font: inherit; font-size: 16px; cursor: pointer; text-align: left; }
.pt-opt small { color: var(--ink-2); font-size: 13.5px; }
.pt-opt[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.pt-opt[aria-pressed="true"] small { color: var(--paper); }
.pt-week { border: 2px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 0 0 14px; }
.pt-week legend { font-weight: 700; padding: 0 6px; }
.pt-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 22px 0; }
.pt-note { border-left: 4px solid var(--gold); padding: 6px 0 6px 12px; max-width: 62ch; }
.pt-note .linkish, .pt-letters .linkish, .pt-letterbox .linkish {
  background: none; border: 0; padding: 0; font: inherit; color: var(--ink);
  text-decoration: underline; cursor: pointer; }

.pt-result { border: 2px solid var(--rule); border-left-width: 10px; border-radius: var(--r);
             padding: 18px 20px; margin: 10px 0 22px; background: var(--paper); }
.pt-result.pt-ok { border-left-color: var(--ok); background: var(--ok-soft); }
.pt-result.pt-warn { border-left-color: var(--gold-2); background: var(--gold-soft); }
.pt-result.pt-bad { border-left-color: var(--bad); background: var(--bad-soft); }
.pt-verdict { font-size: clamp(20px, 3vw, 24px); font-weight: 800; margin: 0 0 8px; }
.pt-math { margin: 12px 0; }
.pt-math summary { cursor: pointer; font-weight: 700; }
.pt-math li { margin: 6px 0; }
.pt-next h3 { font-size: 18px; margin: 14px 0 6px; }
.pt-deduct { border-top: 2px solid var(--line); padding-top: 6px; margin: 20px 0; }
.pt-deduct h3, .pt-letters > h3 { font-size: 22px; margin: 14px 0 8px; }
.pt-big { font-size: 19px; font-weight: 700; }

.pt-letters { margin: 26px 0; scroll-margin-top: 20px; }
.pt-letterbox { border: 2px solid var(--rule); border-radius: var(--r); padding: 18px 20px; margin: 16px 0; }
.pt-letterbox h3 { margin: 0 0 6px; }
.pt-letter { width: 100%; font: 15px/1.5 ui-monospace, Consolas, monospace; padding: 14px;
             border: 2px solid var(--rule); border-radius: 10px; background: var(--field); color: var(--ink); }
.pt-copied { font-size: 14.5px; color: var(--ok-ink); }
.pt-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin: 8px 0; }
.pt-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.pt-havecode { margin: 14px 0; }
.pt-havecode summary { cursor: pointer; }
.pt-code code { word-break: break-all; font-size: 13px; }
.pt-sheet { border-collapse: collapse; width: 100%; }
.pt-sheet th, .pt-sheet td { text-align: left; vertical-align: top; padding: 8px 10px;
                             border-bottom: 1px solid #999; font-size: 14px; }
#pt-print { display: none; }

/* Print: the letter on its own page, then the math sheet. Nothing else. */
@media print {
  html.pt-printing body > *:not(#pt-print) { display: none !important; }
  html.pt-printing #pt-print { display: block; color: #000; background: #fff; }
  .pt-print-letter { white-space: pre-wrap; font: 12pt/1.5 Georgia, serif; margin: 0; }
  .pt-print-sheet { break-before: page; font-family: Georgia, serif; }
  .pt-print-sheet h2 { font-size: 16pt; }
}

/* Payback Check: the menu, the 1095-A rows and the tracker's log. */
.pt-menu { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.pt-menu .pt-opt { margin: 0; min-height: 84px; justify-content: center; }
.pt-scroll { overflow-x: auto; }
.pt-form-rows { display: grid; gap: 6px; min-width: 520px; margin: 10px 0 18px; }
.pt-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: 8px; align-items: center; }
.pt-row5 { grid-template-columns: 1fr 1.1fr 1fr 1fr .9fr; }
.pt-row-head { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.pt-row input, .pt-row select { width: 100%; font: 15px Archivo, sans-serif; padding: 9px 10px;
  border: 2px solid var(--rule); border-radius: 8px; background: var(--paper); color: var(--ink); }
.pt-net { font-weight: 700; text-align: right; }
.pt-alert { border: 2px solid var(--rule); border-left-width: 8px; border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.pt-alert.pt-bad { border-left-color: var(--bad); background: var(--bad-soft); }
.pt-alert.pt-warn { border-left-color: var(--gold-2); background: var(--gold-soft); }
.pt-alert.pt-ok { border-left-color: var(--ok); background: var(--ok-soft); }

/* 1099 Check: one big question per screen, and the packet. */
.pt-progress { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.pt-bigchoice { display: grid; gap: 12px; max-width: 520px; margin: 18px 0; }
.pt-opt-big { width: 100%; margin: 0; min-height: 60px; justify-content: center; font-size: 18px; }
.pt-side td:first-child { color: var(--ink-2); }
.pt-packet h4 { margin: 14px 0 4px; }
@media print { .pt-print-sheet.pt-first { break-before: auto; } }

/* Move Check: the flags under each quote, and the FMCSA record. */
.pt-quote { margin: 0 0 30px; }
.pt-flags { list-style: none; padding: 0; margin: 0 0 14px; }
.pt-flag { border-left: 5px solid var(--line); padding: 6px 0 6px 12px; margin: 0 0 8px; max-width: 64ch; }
.pt-flag.pt-red { border-left-color: var(--bad); }
.pt-flag.pt-amber { border-left-color: var(--gold-2); }
.pt-flag.pt-info { border-left-color: var(--ink-2); }
.pt-flag small { display: block; color: var(--ink-2); font-size: 14px; }
.pt-mover { border: 2px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 12px 0; }
.pt-mover h4 { margin: 0 0 6px; }
.pt-flag.pt-ok { border-left-color: var(--ok); }

/* Earnings Check: one W-2 per row inside a year. */
.pt-job { border-top: 1px dashed var(--line); padding-top: 8px; }
.pt-jobname { grid-column: 1 / -1; margin: 0 0 4px; font-weight: 700; }

/* Tool Log. */
.pt-opt-red { border-color: var(--bad); }
.pt-photo input { font-size: 14px; }
.pt-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 2px solid var(--line); display: inline-block; }
.pt-photo .pt-thumb { margin-top: 8px; width: 96px; height: 96px; }
.pt-nothumb { display: inline-grid; place-items: center; font-weight: 800; font-size: 26px; background: var(--paper-2); }
.pt-tools { display: grid; gap: 10px; margin: 10px 0; }
.pt-toolcard { display: flex; gap: 14px; align-items: center; text-align: left; width: 100%; padding: 10px 12px;
  border: 2px solid var(--rule); border-radius: 12px; background: var(--paper); color: var(--ink); font: inherit; cursor: pointer; }
.pt-toolcard small { display: block; color: var(--ink-2); font-size: 14px; }
.pt-print-thumb { width: 90px; height: 90px; object-fit: cover; }

/* Pay Check. */
.pt-days { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.pt-script { font-style: italic; border-left: 4px solid var(--line); padding-left: 12px; max-width: 62ch; }
.pt-raw { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; white-space: pre-wrap; }

/* Checklists (Storm Photo Checklist, Moving Countdown, New State Checklist). */
.pt-checklist .pt-check { font-size: 16px; margin: 10px 0; }
.pt-checklist .linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--ink);
  text-decoration: underline; cursor: pointer; }
@media print {
  .pt-print-list { break-before: auto; }
  .pt-print-list ul { list-style: none; padding: 0; }
  .pt-print-list li { margin: 4px 0; font-size: 11pt; }
}
