/* Assessment + Time Log pages. Plain CSS (no Tailwind rebuild needed), same brand tokens as the main site. */
/* Fonts are self-hosted like the rest of the site (the trust sheet says no third-party fonts). */
@font-face { font-family: "Source Sans 3"; src: url(/fonts/source-sans-3-latin-wght-normal.woff2) format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "QW Cond"; src: url(/fonts/oswald-latin-wght-normal.woff2) format("woff2"); font-weight: 200 700; font-display: swap; }
:root {
  --charcoal: #2B2B2B; --orange: #E8641B; --orange-dk: #C9520F; --orange-dkr: #B0470C;
  --steam: #F6F1E7; --paper: #FBF8F2; --ink: #181817; --line: rgba(43,43,43,.18); --muted: rgba(43,43,43,.72); --err: #B3261E;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-bottom: 96px; scroll-padding-top: 12px; }
body { margin: 0; background: var(--paper); color: var(--charcoal); font-family: "Source Sans 3", system-ui, sans-serif;
       font-size: 18px; line-height: 1.55; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, .chip:focus-within
  { outline: 3px solid var(--orange); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 99; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 42rem; }
.muted { color: var(--muted); }

.top { border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { height: 32px; width: auto; display: block; }
.top-link { font-weight: 700; padding: 10px 0; }
.top-dark { background: var(--ink); border-bottom: 0; }
.top-dark .logo { height: 30px; }
.top-dark .top-link { color: var(--steam); text-decoration-color: var(--orange); text-underline-offset: 4px; }

.hero { padding: 28px 0 8px; }
.badge { display: inline-flex; align-items: center; gap: 14px; margin: 8px 0 0; font: 600 13px/1 "QW Cond", "Arial Narrow", sans-serif;
         letter-spacing: .01em; color: var(--muted); }
.badge > span:first-child { color: var(--orange-dkr); }
.badge::after { content: ""; width: 120px; height: 1px; background: var(--line); }
h1 { font-weight: 900; letter-spacing: 0; font-size: 2.1rem; line-height: 1.08; margin: 14px 0 0; }
h2 { font-weight: 900; letter-spacing: 0; font-size: 1.6rem; line-height: 1.15; margin: 0; }
h3 { font-weight: 900; font-size: 1.2rem; margin: 0; }
.lede { font-size: 1.1rem; margin: 12px 0 0; }
@media (min-width: 768px) { h1 { font-size: 3rem; } h2 { font-size: 2rem; } }

.banner { background: #FFF3B0; border: 1px dashed #C9A227; padding: 10px 14px; margin: 16px 0 0; font-size: 1rem; }

.progress { height: 10px; background: var(--steam); margin-top: 22px; border: 1px solid var(--line); }
.progress-bar { height: 100%; width: 0; background: var(--orange); transition: width .25s ease; }
.step-count { margin: 8px 0 0; font-weight: 700; font-size: 1rem; color: var(--muted); }

.step-head { margin: 18px 0 6px; }
.step-head p { margin: 6px 0 0; color: var(--muted); }
.q { border: 0; margin: 0; padding: 22px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.q:last-child { border-bottom: 0; }
.q-label, .q legend { display: block; font-weight: 700; font-size: 1.1rem; padding: 0; margin-bottom: 4px; }
.req { color: var(--orange-dk); font-weight: 700; }
.opt { color: var(--muted); font-weight: 400; font-size: .95rem; }
.hint { margin: 2px 0 10px; color: var(--muted); font-size: 1rem; }
.sub { margin-top: 14px; }
.sub-label { display: block; font-weight: 700; font-size: 1rem; margin-bottom: 4px; }

input[type=text], input[type=email], input[type=tel], input[type=number], input[type=url], textarea, select {
  width: 100%; font: inherit; font-size: 18px; color: inherit; background: #fff;
  border: 2px solid rgba(43,43,43,.45); border-radius: 0; padding: 12px 14px; min-height: 52px; }
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--charcoal); }
.money { position: relative; }
.money > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--muted); }
.money > input { padding-left: 30px; }

.chips { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 8px; }
@media (min-width: 560px) { .chips.two { grid-template-columns: 1fr 1fr; } }
.chips.row { grid-template-columns: repeat(auto-fill, minmax(5.2rem, 1fr)); }
.chip { position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px;
        border: 2px solid rgba(43,43,43,.3); background: #fff; cursor: pointer; font-size: 1.05rem; line-height: 1.25;
        text-align: left; font-family: inherit; color: inherit; width: 100%; }
.chip input { position: absolute; left: 0; top: 0; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip .mark { flex: none; width: 24px; height: 24px; border: 2px solid var(--charcoal); background: #fff; display: grid; place-items: center;
              font-weight: 900; font-size: .9rem; }
.chip.radio .mark { border-radius: 50%; }
.chip.is-on { border-color: var(--charcoal); background: var(--steam); box-shadow: inset 4px 0 0 var(--orange); }
.chip.is-on .mark { background: var(--charcoal); color: #fff; }
.chip.radio.is-on .mark::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.chip.check.is-on .mark::after { content: "\2713"; }
.chip.rank .mark { border-radius: 0; }
.chips.row .chip { justify-content: center; flex-direction: column; gap: 4px; text-align: center; padding: 10px 6px; }
.chips.row .chip .mark { display: none; }
.scale-ends { display: flex; justify-content: space-between; color: var(--muted); font-size: .95rem; margin-top: 6px; }
.other { margin-top: 8px; }
.rank-note { margin: 8px 0 0; font-size: 1rem; color: var(--muted); min-height: 1.5em; }

.pain { border: 2px solid var(--line); padding: 14px; margin-top: 12px; }
.pain h3 { font-size: 1.05rem; }
.pain-grid { display: grid; gap: 12px; margin-top: 10px; }
@media (min-width: 560px) { .pain-grid { grid-template-columns: 10rem 1fr; } }

.err { color: var(--err); font-weight: 700; margin: 8px 0 0; font-size: 1rem; }
.q.has-err > .q-label, .q.has-err > legend { color: var(--err); }
.q.has-err > input, .q.has-err > textarea, input.bad { border-color: var(--err); }
.errors { border: 2px solid var(--err); padding: 12px 14px; margin-top: 18px; font-weight: 700; color: var(--err); }

.nav { position: sticky; bottom: 0; display: flex; gap: 10px; justify-content: space-between; background: var(--paper);
       padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); margin-top: 16px; z-index: 5; }
.nav .btn { flex: 1; }
@media (min-width: 640px) { .nav .btn { flex: 0 0 auto; min-width: 9rem; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 52px; padding: .75rem 1.5rem;
       font: inherit; font-weight: 700; font-size: 1.1rem; text-align: center; text-decoration: none; cursor: pointer;
       border: 3px solid transparent; border-radius: 0; }
.btn-orange { background: var(--orange-dkr); color: #fff; }
.btn-orange:hover { background: #963C0A; }
.btn-ghost { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn-ghost:hover { background: var(--steam); }
.btn-small { min-height: 44px; padding: .4rem 1rem; font-size: 1rem; }
.btn[disabled] { opacity: .55; cursor: wait; }
.saved { color: var(--muted); font-size: .95rem; margin: 6px 0 24px; min-height: 1.5em; }

/* Value worksheet */
.ws { background: var(--steam); border: 2px solid var(--charcoal); padding: 16px; margin-top: 10px; }
.ws-line { padding: 14px 0; border-bottom: 1px solid var(--line); }
.ws-line:last-of-type { border-bottom: 0; }
.ws-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.ws-inputs label { font-size: .95rem; font-weight: 700; }
.ws-inputs input { min-height: 46px; padding: 8px 10px; }
.ws-inputs .money > input { padding-left: 26px; }
.ws-math { margin: 8px 0 0; font-size: 1rem; color: var(--muted); }
.ws-result { margin: 6px 0 0; font-weight: 900; font-size: 1.35rem; }
.ws-result small { font-weight: 400; font-size: .95rem; color: var(--muted); }
.ws-total { background: var(--charcoal); color: #fff; padding: 16px; margin-top: 12px; }
.ws-total .ws-result { font-size: 1.8rem; }
.ws-total small { color: rgba(255,255,255,.75); }
.ws-foot { font-size: .95rem; margin: 12px 0 0; }

/* Data note + review */
.data-note { border-left: 6px solid var(--orange); background: var(--steam); padding: 14px 16px; margin: 16px 0; }
.data-note h3 { margin-bottom: 6px; }
.data-note p { margin: 0; }
.review-sec { border-top: 3px solid var(--charcoal); padding: 14px 0 6px; margin-top: 18px; }
.review-sec header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.review-sec dl { margin: 10px 0 0; }
.review-sec dt { font-weight: 700; font-size: .95rem; color: var(--muted); margin-top: 10px; }
.review-sec dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.consent { margin-top: 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.actions .btn { flex: 1 1 14rem; }

.thanks { border-left: 8px solid var(--orange); padding: 20px; margin: 24px 0 40px; }
.thanks p { margin: 10px 0 0; }

.foot { background: var(--ink); color: #fff; padding: 22px 0 calc(22px + env(safe-area-inset-bottom)); margin-top: 24px; font-size: 1rem; }
.foot p { margin: 4px 0; }
.foot .muted { color: rgba(255,255,255,.75); }

@media print {
  .top, .foot, .nav, .progress, .step-count, .banner, .saved, .no-print, .hero .lede, .errors, .skip { display: none !important; }
  body { font-size: 12pt; }
  .review-sec { break-inside: avoid; }
  a { text-decoration: none; }
}

/* Fieldset legends sit inside the padding like the text-field labels do, instead of riding the top edge. */
.q legend { float: left; width: 100%; }
.q legend ~ * { clear: both; }
