/* Styles for work-sharing.html, loaded after app.css and using its tokens.

   Same arrangement as brief.css and calculator.css: palette, wrap, masthead
   and footer come from app.css; only what is specific to this page is here.

   The print block at the bottom is load-bearing rather than decoration. The
   draft is meant to be printed and typed from, so printing has to produce the
   draft and nothing else - not the questionnaire, not the navigation, not the
   two thousand words of explanation above it. */

.ws { padding: 24px 0 10px; }

/* --- section navigation ----------------------------------------------- */

/* Not sticky, on purpose, and the directory's own filter bar is - so this is a
   deliberate difference rather than an oversight.

   A sticky bar is an overlay, and an overlay over a page whose main content is
   small radio buttons and form fields can swallow a click on anything that ends
   up at the top edge of the viewport. That is not hypothetical: the smoke test
   caught it here, clicking a radio that a scroll had parked underneath the bar,
   and scroll-padding-top did not fully move it clear. On the directory the
   worst case is a mis-clicked category filter. On this page it is a wrong
   answer inside an eligibility check that an employer is going to act on, so
   the four anchor links are not worth the overlay. */
.wsnav {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.wsnav__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.wsnav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
}
.wsnav a:hover { color: var(--ink); text-decoration: underline; }

/* --- parts ------------------------------------------------------------- */

.ws__part {
  margin: 0 0 40px;
  padding: 0 0 30px;
  border-bottom: 1px solid var(--line-soft);
}
.ws__part:last-of-type { border-bottom: 0; }

.ws__part-title {
  margin: 26px 0 10px;
  font-size: clamp(22px, 4vw, 28px);
  letter-spacing: -.02em;
}

.ws__lede {
  margin: 0 0 18px;
  max-width: 72ch;
  color: var(--ink-soft);
}

.ws__sub {
  margin: 26px 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.ws__warn {
  margin: 0 0 20px;
  padding: 12px 14px;
  max-width: 72ch;
  background: var(--amber-soft);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14.5px;
}

.ws__noscript {
  margin: 24px 0;
  padding: 14px 16px;
  background: var(--amber-soft);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.ws__links { margin: 0 0 16px; padding-left: 20px; }
.ws__links li { margin: 0 0 6px; font-size: 14.5px; }

/* --- questions --------------------------------------------------------- */

.q {
  margin: 0 0 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.q--first { border-left: 4px solid var(--slate); }

.q__text {
  padding: 0;
  margin: 0 0 8px;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.q__help {
  margin: 0 0 12px;
  max-width: 70ch;
  font-size: 14px;
  color: var(--ink-faint);
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  margin: 0 0 6px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--bg);
}
.choice__radio { margin: 5px 0 0; flex: 0 0 auto; }
.choice__label { cursor: pointer; }
.choice__desc { font-size: 14.5px; color: var(--ink-soft); }

/* --- a quoted source --------------------------------------------------- */

.src { margin: 12px 0 0; }

.src__sum {
  cursor: pointer;
  font-size: 13px;
  color: var(--ink-faint);
}

.src__quote {
  margin: 8px 0 6px;
  padding: 10px 14px;
  border-left: 3px solid var(--line);
  background: var(--bg);
  font-size: 14px;
  color: var(--ink-soft);
}

.src__foot { margin: 0; font-size: 12.5px; color: var(--ink-faint); }

/* --- the verdict ------------------------------------------------------- */

.verdictcard {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.verdictcard--likely { border-left-color: var(--green); }
.verdictcard--unlikely { border-left-color: var(--red); }
.verdictcard--unclear { border-left-color: var(--amber); }
.verdictcard--empty { border-left-color: var(--line); }

.verdictcard__title {
  margin: 0 0 8px;
  font-size: clamp(18px, 3vw, 22px);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -.015em;
}
.verdictcard--likely .verdictcard__title { color: var(--green); }
.verdictcard--unlikely .verdictcard__title { color: var(--red); }
.verdictcard--unclear .verdictcard__title { color: var(--amber); }

.verdictcard__body,
.verdictcard__measures,
.verdictcard__ask {
  margin: 0 0 12px;
  max-width: 72ch;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.verdictcard__measures {
  padding: 10px 12px;
  background: var(--amber-soft);
  border-radius: var(--radius);
}

.verdictcard__ask { margin-bottom: 0; }

.checklist { list-style: none; margin: 16px 0; padding: 0; }

.checklist__row {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 4px 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
}

.checklist__state {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding-top: 2px;
}
.checklist__row--ok .checklist__state { color: var(--green); }
.checklist__row--sm .checklist__state { color: var(--amber); }
.checklist__row--no .checklist__state { color: var(--red); }
.checklist__row--unclear .checklist__state { color: var(--amber); }
.checklist__row--unanswered .checklist__state { color: var(--ink-faint); }

.checklist__q { margin: 0 0 3px; font-size: 14.5px; }
.checklist__a { margin: 0; font-size: 14px; color: var(--ink-faint); }
.checklist__why {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  border-left: 2px solid var(--line);
  padding-left: 10px;
}

/* --- the form ---------------------------------------------------------- */

.sec {
  margin: 0 0 20px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.sec__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}
.sec__title { margin: 0; font-size: 17px; letter-spacing: -.01em; }
.sec__form {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.sec__intro { margin: 0 0 14px; max-width: 72ch; font-size: 14.5px; color: var(--ink-soft); }
.sec__src { margin: 12px 0 0; font-size: 12.5px; color: var(--ink-faint); }

.f { margin: 0 0 16px; }

.f__label {
  display: block;
  margin: 0 0 5px;
  font-size: 14px;
  font-weight: 600;
}

.f__input {
  width: 100%;
  padding: 9px 11px;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.f__input:focus { outline: 2px solid var(--slate); outline-offset: 1px; }
.f__input--area { resize: vertical; }
.f__input--cell { padding: 6px 8px; font-size: 14px; }

.f__help {
  margin: 6px 0 0;
  max-width: 72ch;
  font-size: 13.5px;
  color: var(--ink-faint);
}

.f__check { margin: 6px 0 0; font-size: 13.5px; }
.f__check--on {
  color: var(--red);
  padding: 8px 10px;
  background: var(--red-soft);
  border-radius: var(--radius);
}

/* --- Attachment A units ------------------------------------------------ */

.unit {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.unit__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
}
.unit__title { margin: 0; font-size: 15px; }

.emps { margin: 0 0 12px; overflow-x: auto; }

.emps__table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}
.emps__table th {
  text-align: left;
  padding: 0 8px 6px 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.emps__table td { padding: 0 8px 8px 0; vertical-align: top; }

/* --- buttons ----------------------------------------------------------- */

.btn {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.btn:hover { border-color: var(--slate); }

.btn--primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.btn--primary:hover { opacity: .9; }

.btn--ghost {
  background: transparent;
  border-style: dashed;
  color: var(--ink-soft);
}

.btn--link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-faint);
  font-size: 13px;
  text-decoration: underline;
}

.ws__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}
.ws__actions-note {
  flex: 1 1 100%;
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-faint);
}

/* --- problems ---------------------------------------------------------- */

.problems:empty { display: none; }
.problems {
  margin: 18px 0;
  padding: 14px 16px;
  background: var(--red-soft);
  border-left: 3px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.problems__title { margin: 0 0 8px; font-size: 15px; color: var(--red); }
.problems__list { margin: 0; padding-left: 20px; }
.problems__list li { margin: 0 0 6px; font-size: 14.5px; color: var(--ink-soft); }

/* --- the draft --------------------------------------------------------- */

.draft { margin: 24px 0; }
.draft__note { margin: 0 0 10px; font-size: 14px; color: var(--ink-soft); }
.draft__label {
  display: block;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.draft__text {
  width: 100%;
  padding: 14px;
  font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  resize: vertical;
}

.draft__print { display: none; }

/* --- facts and regions ------------------------------------------------- */

.fact {
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
}
.fact__label { margin: 0; font-size: 15px; }

.regions {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin: 0 0 16px;
}
.region {
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
}
.region__name { margin: 0 0 4px; font-size: 15px; }
.region__covers { margin: 0 0 8px; font-size: 13px; color: var(--ink-faint); }
.region__mail { font-size: 13px; word-break: break-all; }

/* --- steps ------------------------------------------------------------- */

.steps { margin: 0 0 20px; padding-left: 22px; }
.steps > li { margin: 0 0 16px; }
.steps h3 { margin: 0 0 5px; font-size: 15.5px; }
.steps p { margin: 0; max-width: 72ch; font-size: 14.5px; color: var(--ink-soft); }

.ws-naming {
  padding: 10px 12px;
  background: var(--slate-soft);
  border-radius: var(--radius);
  font-size: 14px;
}

@media (max-width: 620px) {
  .checklist__row { grid-template-columns: 1fr; }
  .sec { padding: 14px 15px; }
  .q { padding: 15px 16px; }
}

/* --- print -------------------------------------------------------------

   Printing this page must produce the draft and nothing else. An employer
   hitting print wants the sheet they are going to type from, not forty
   questions and their sources. */

@media print {
  .masthead, .explainer, .wsnav, .foot,
  #eligibility, #how, #wrrp,
  .ws__form, .ws__actions, .problems,
  .ws__lede, .ws__warn, .draft__note, .draft__label,
  .draft__text { display: none !important; }

  body { background: #fff; color: #000; }
  .ws__part { border: 0; margin: 0; padding: 0; }
  .ws__part-title { display: none; }

  .draft { margin: 0; }
  .draft__print {
    display: block;
    margin: 0;
    color: #000;
    background: #fff;
    font: 10.5pt/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
  }
  .ws__sub { color: #000; }
}
