.tools-page { max-width: 850px; padding-bottom: 90px; }
.tool-hero { padding-block: 64px 40px; }
.tool-hero h1 { font-size: clamp(40px, 5vw, 66px); max-width: 850px; }
.tool-hero .lead { max-width: 750px; font-size: 18px; }
.tool-back { margin-bottom: 36px; }
.tool-facts { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; padding: 0; margin: 24px 0; font-size: 14px; color: #53625b; }
.tool-privacy, .tool-small { font-size: 13px; line-height: 1.6; color: #53625b; }
.tools-list { display: grid; gap: 24px; }
.tool-card { padding: 36px; border: 1px solid var(--line); background: var(--sage); }
.tool-card h2 { font-size: clamp(32px, 4vw, 46px); }
.tool-card h2 em { color: #4f796d; }
.tool-card > p:not(.eyebrow) { color: #485850; margin: 22px 0; }
.tool-note { margin-top: 44px; padding: 32px; background: #ebe7dd; }
.tool-note h2 { font-size: clamp(28px, 3vw, 38px); }
.tool-note p { color: #485850; }
.tool-note .button { margin-top: 12px; }
.questionnaire { padding: 32px; border: 1px solid var(--line); background: #fffdf9; }
.questionnaire > h2 { font-size: clamp(28px, 3vw, 36px); }
.questionnaire > p { color: #53625b; }
.phq9-progress { margin: 28px 0; }
.phq9-progress p { font-size: 13px; margin-bottom: 8px; }
.phq9-progress progress { display: block; width: 100%; height: 8px; accent-color: #4f796d; }
.phq9-question { min-width: 0; padding: 0; margin: 0 0 32px; border: 0; }
.phq9-question legend { width: 100%; padding: 0; margin-bottom: 14px; font-size: 17px; font-weight: 500; line-height: 1.5; }
.phq9-number { color: #4f796d; margin-right: 3px; }
.phq9-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.phq9-options label { display: flex; align-items: center; gap: 8px; padding: 12px; min-height: 54px; border: 1px solid var(--line); border-radius: 3px; font-size: 13px; cursor: pointer; line-height: 1.4; }
.phq9-options label:hover { border-color: #4f796d; }
.phq9-options label:has(input:checked) { background: var(--sage); border-color: #4f796d; }
.phq9-options input { flex-shrink: 0; margin: 0; width: 16px; height: 16px; accent-color: #4f796d; }
.phq9-options input:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
.phq9-functioning { padding-top: 24px; border-top: 1px solid var(--line); }
.phq9-functioning .tool-small { margin: 0 0 14px; }
.phq9-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.phq9-actions .button { font-family: inherit; border: 0; cursor: pointer; }
.phq9-actions .button:disabled { cursor: default; opacity: .5; }
.tool-reset { color: #53625b; padding: 12px 0; min-height: 44px; border: 0; border-bottom: 1px solid var(--line); background: transparent; font: inherit; font-size: 14px; cursor: pointer; }
.tool-reset:focus-visible, .phq9-actions .button:focus-visible { outline: 2px solid var(--coral); outline-offset: 4px; }
.tool-support { margin-top: 32px; padding: 28px; background: #f3e4da; border-left: 3px solid #a45e40; }
.tool-support h2 { font-size: clamp(28px, 3vw, 36px); }
.tool-support p { color: #485850; }
.tool-support a { text-decoration: underline; text-underline-offset: 3px; }
.phq9-result { margin-top: 32px; padding: 28px; background: #eeeee5; }
.tool-support[hidden], .phq9-result[hidden], #phq9-functioning-comment[hidden] { display: none; }
.phq9-result h2 { font-size: 36px; }
.phq9-score { margin: 22px 0; }
.phq9-score strong { font: 400 58px/1 "Newsreader", serif; }
.phq9-score > span { color: #53625b; font-size: 14px; }
.phq9-result h3 { font-size: 28px; }
.phq9-result > p:not(.eyebrow, .phq9-score) { color: #485850; }
.tool-support:focus, .phq9-result:focus { outline: 2px solid #4f796d; outline-offset: 4px; }
.tool-commentary { padding-top: 54px; }
.tool-commentary h2 { font-size: clamp(32px, 4vw, 44px); }
.tool-commentary > p:not(.eyebrow) { color: #485850; margin-top: 22px; }
.tool-sources { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 13px; color: #53625b; }
.tool-sources h2 { font-size: 28px; }
.tool-sources li { margin-block: 10px; }
.tool-sources a { overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .tools-page { padding-bottom: 60px; }
  .tool-hero { padding-block: 32px 28px; }
  .tool-hero h1 { font-size: clamp(34px, 9vw, 48px); }
  .tool-hero .lead { font-size: 16px; }
  .tool-card, .tool-note { padding: 26px 22px; }
  .questionnaire { padding: 26px 18px; }
  .phq9-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phq9-options label { padding: 12px 10px; }
  .phq9-question legend { font-size: 16px; }
  .phq9-actions { align-items: stretch; flex-direction: column; gap: 12px; }
  .phq9-actions .button { justify-content: center; font-size: 13px; gap: 12px; padding-inline: 14px; }
  .tool-support, .phq9-result { padding: 24px 18px; }
  .tool-sources ul { padding-left: 20px; }
}
