/* 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(--card);
  border-bottom: 1px solid var(--rule);
}
.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-2);
  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(--rule-2);
}
.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-2);
}

.ws__sub {
  margin: 26px 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.ws__warn {
  margin: 0 0 20px;
  padding: 12px 14px;
  max-width: 72ch;
  background: var(--amber-soft);
  border-radius: 12px;
  font-size: 14.5px;
}

.ws__noscript {
  margin: 24px 0;
  padding: 14px 16px;
  background: var(--amber-soft);
  border-radius: 12px;
}

.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: 22px 24px;
  border: 1px solid var(--rule);
  border-radius: var(--r-panel);
  background: var(--card);
}


.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-3);
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  margin: 0 0 6px;
  border: 1px solid var(--rule-2);
  border-radius: var(--r-btn);
  background: var(--paper);
}
.choice__radio { margin: 5px 0 0; flex: 0 0 auto; }
.choice__label { cursor: pointer; }
.choice__desc { font-size: 14.5px; color: var(--ink-2); }

/* --- a quoted source --------------------------------------------------- */

.src { margin: 12px 0 0; }

.src__sum {
  cursor: pointer;
  font-size: 13px;
  color: var(--ink-3);
}

.src__quote {
  margin: 8px 0 6px;
  padding: 10px 14px;
  background: var(--paper);
  font-size: 14px;
  color: var(--ink-2);
}

.src__foot { margin: 0; font-size: 12.5px; color: var(--ink-3); }

/* --- the verdict ------------------------------------------------------- */

.verdictcard {
  padding: 24px;
  border: 1px solid var(--rule);
  border-radius: var(--r-panel);
  background: var(--card);
}


.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(--mixed-fg); }

.verdictcard__body,
.verdictcard__measures,
.verdictcard__ask {
  margin: 0 0 12px;
  max-width: 72ch;
  font-size: 14.5px;
  color: var(--ink-2);
}

.verdictcard__measures {
  padding: 10px 12px;
  background: var(--amber-soft);
  border-radius: var(--r-btn);
}

.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(--rule-2);
}

.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(--mixed-fg); }
.checklist__row--no .checklist__state { color: var(--red); }
.checklist__row--unclear .checklist__state { color: var(--mixed-fg); }
.checklist__row--unanswered .checklist__state { color: var(--ink-3); }

.checklist__q { margin: 0 0 3px; font-size: 14.5px; }
.checklist__a { margin: 0; font-size: 14px; color: var(--ink-3); }
.checklist__why {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: var(--ink-2);
  padding-left: 10px;
}

/* --- the form ---------------------------------------------------------- */

.sec {
  margin: 0 0 20px;
  padding: 22px 24px;
  border: 1px solid var(--rule);
  border-radius: var(--r-panel);
  background: var(--card);
}

.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(--rule-2);
}
.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-3);
}
.sec__intro { margin: 0 0 14px; max-width: 72ch; font-size: 14.5px; color: var(--ink-2); }
.sec__src { margin: 12px 0 0; font-size: 12.5px; color: var(--ink-3); }

.f { margin: 0 0 16px; }

.f__label {
  display: block;
  margin: 0 0 5px;
  font-size: 14px;
  font-weight: 600;
}

.f__input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-input);
}
.f__input:focus { outline: 2px solid var(--red); outline-offset: 2px; }
.f__input--area { resize: vertical; }
.f__input--cell { min-height: 40px; padding: 6px 10px; font-size: 14px; border-radius: var(--r-btn); }

.f__help {
  margin: 6px 0 0;
  max-width: 72ch;
  font-size: 13.5px;
  color: var(--ink-3);
}

.f__check { margin: 6px 0 0; font-size: 13.5px; }
.f__check--on {
  color: var(--link);
  padding: 8px 10px;
  background: var(--red-soft);
  border-radius: var(--r-btn);
}

/* --- Attachment A units ------------------------------------------------ */

.unit {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px dashed var(--rule);
  border-radius: var(--r-btn);
  background: var(--paper);
}

.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-3);
}
.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(--r-btn);
  border: 1px solid var(--rule);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
}
.btn:hover { border-color: var(--ink-3); }

.btn--primary {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.btn--primary:hover { background: var(--red-hover); border-color: var(--red-hover); color: #fff; }

.btn--ghost {
  background: transparent;
  border-style: dashed;
  color: var(--ink-2);
}

.btn--link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-3);
  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-3);
}

/* --- problems ---------------------------------------------------------- */

.problems:empty { display: none; }
.problems {
  margin: 18px 0;
  padding: 14px 16px;
  background: var(--red-soft);
  border-radius: 12px;
}
.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-2); }

/* --- the draft --------------------------------------------------------- */

.draft { margin: 24px 0; }
.draft__note { margin: 0 0 10px; font-size: 14px; color: var(--ink-2); }
.draft__label {
  display: block;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.draft__text {
  width: 100%;
  padding: 14px;
  font: 13px/1.55 var(--mono);
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-btn);
  resize: vertical;
}

.draft__print { display: none; }

/* --- facts and regions ------------------------------------------------- */

.fact {
  padding: 12px 0;
  border-top: 1px solid var(--rule-2);
}
.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(--rule-2);
  border-radius: var(--r-btn);
  background: var(--card);
}
.region__name { margin: 0 0 4px; font-size: 15px; }
.region__covers { margin: 0 0 8px; font-size: 13px; color: var(--ink-3); }
.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-2); }

.ws-naming {
  padding: 10px 12px;
  background: var(--panel);
  border-radius: var(--r-btn);
  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; }
}

/* --- tap targets ---------------------------------------------------------

   Added in the September 2026 facelift: every control is at least 44px tall
   on a phone. A radio button is 13px, so the label beside it carries the
   height - it is what a thumb actually lands on. */
.choice__radio { width: 18px; height: 18px; margin: 13px 0 0; accent-color: var(--red); }
.choice__label { display: flex; align-items: center; min-height: 44px; }
.wsnav a { display: inline-block; min-height: 44px; padding: 12px 0; }
.src__sum { padding: 12px 0; line-height: 20px; }
.f__input--cell { min-height: 44px; }
.btn { min-height: 44px; }
.region__mail { display: inline-block; padding: 12px 0; }
.ws__links a { display: inline-block; min-height: 44px; padding: 12px 0; }

/* "Quick answer" under the masthead: the eligibility rules and the paperwork in
   two short paragraphs, each fact taken from the rules further down the page. */
.ws-quick {
  margin-top: 8px; margin-bottom: 8px; padding: 18px 22px;
  background: var(--card); border: 1px solid var(--rule); border-left: 3px solid var(--red);
  border-radius: var(--r-panel);
}
.ws-quick__label {
  margin: 0 0 8px; font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--red);
}
.ws-quick p { margin: 0 0 10px; max-width: 76ch; }
.ws-quick p:last-child { margin-bottom: 0; }
