/* Contractor payment law reference pages and their tools. Uses the site tokens
   defined on every page (--accent, --border, --surface, --text, --muted). */

.answer-box{background:var(--accent-light,#E3EEF0);border:1.5px solid var(--accent,#156B7A);border-radius:14px;padding:22px 26px;margin:22px 0 12px}
.answer-box p{margin:0;font-size:clamp(17px,2.2vw,20px);line-height:1.55;color:var(--text,#0B3A44);font-weight:500}
.answer-source{font-size:13.5px;color:var(--muted,#5C6B70);margin:0 0 6px}
.state-switch{font-size:14.5px;margin:10px 0 0}

.law-table th[scope="row"]{white-space:nowrap}
.law-table td{color:var(--text-2,#34474D)}
.table-note{font-size:14px;color:var(--muted,#5C6B70)}

.tool-card{background:var(--surface,#fff);border:1px solid var(--border,#E7DFD3);border-radius:16px;padding:26px 26px 22px;margin:22px 0 10px;box-shadow:0 4px 22px rgba(11,58,68,.07)}
.tool-card h3{margin:0 0 4px}
.tool-intro{font-size:15px;color:var(--muted,#5C6B70);margin:0 0 18px}
.tool-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:18px}
@media(max-width:640px){.tool-fields{grid-template-columns:1fr}}
.tool-field label{display:block;font-weight:600;font-size:15px;color:var(--text,#0B3A44);margin-bottom:6px}
.money-input{position:relative}
.money-input span{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:var(--muted,#5C6B70);font-weight:600;pointer-events:none}
.money-input input{width:100%;font:inherit;font-size:17px;padding:12px 14px 12px 30px;border:1.5px solid var(--border,#E7DFD3);border-radius:10px;background:#fff;color:var(--text,#0B3A44)}
.money-input input:focus{outline:3px solid var(--accent-light,#E3EEF0);border-color:var(--accent,#156B7A)}
.money-input input[aria-invalid="true"]{border-color:var(--red,#D2583E)}
.tool-error{margin:6px 0 0;font-size:14px;color:var(--red,#D2583E);font-weight:600}
.tool-card button.btn-primary{border:0;cursor:pointer;font-family:inherit}
.tool-card button.btn-primary:focus-visible{outline:3px solid var(--accent,#156B7A);outline-offset:2px}
.tool-foot{font-size:13.5px;color:var(--muted,#5C6B70);margin:14px 0 0}

.tool-result{margin-top:18px;padding:16px 18px;border-radius:12px;border:1px solid var(--border,#E7DFD3);background:var(--surface-alt,#F4EDE2)}
.tool-result.is-within{background:#EAF5EF;border-color:#BFE0CC}
.tool-result.is-over{background:var(--red-light,#F8E9E4);border-color:var(--red-border,#EBC4BA)}
.tool-result-label{display:block;font-size:12px;text-transform:uppercase;letter-spacing:1px;margin-bottom:4px;color:var(--text,#0B3A44)}
.tool-result-text{margin:0;font-size:16px;line-height:1.6;color:var(--text,#0B3A44)}

.ny-check fieldset{border:0;border-bottom:1px solid var(--border,#E7DFD3);margin:0;padding:14px 0;display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.ny-check fieldset:last-of-type{border-bottom:0}
.ny-check legend{float:left;max-width:560px;font-size:15.5px;color:var(--text,#0B3A44);line-height:1.5;padding:0}
.ny-check .yn{display:inline-flex;border:1.5px solid var(--border,#E7DFD3);border-radius:10px;overflow:hidden;flex-shrink:0}
.ny-check .yn label{position:relative;cursor:pointer}
.ny-check .yn input{position:absolute;opacity:0;width:1px;height:1px}
.ny-check .yn span{display:block;padding:9px 18px;font-weight:600;font-size:14.5px;color:var(--text-2,#34474D);min-width:58px;text-align:center}
.ny-check .yn label+label span{border-left:1.5px solid var(--border,#E7DFD3)}
.ny-check .yn input:checked+span{background:var(--accent,#156B7A);color:#fff}
.ny-check .yn input:focus-visible+span{outline:3px solid var(--accent,#156B7A);outline-offset:-3px}
.ny-check .tool-actions{margin-top:18px}
.check-results{list-style:none;margin:12px 0 0;padding:0}
.check-results li{display:flex;gap:12px;align-items:flex-start;padding:10px 0;border-top:1px solid rgba(11,58,68,.1)}
.check-state{flex-shrink:0;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.8px;padding:3px 9px;border-radius:100px;margin-top:2px}
.is-missing .check-state{background:var(--red,#D2583E);color:#fff}
.is-present .check-state{background:#3A9D6B;color:#fff}
.check-body{display:flex;flex-direction:column;gap:2px}
.check-name{font-weight:600;color:var(--text,#0B3A44)}
.check-cite{font-size:13.5px;color:var(--muted,#5C6B70)}
.check-ask{font-size:15px;color:var(--text-2,#34474D)}

.copy-box{background:var(--surface,#fff);border:1px solid var(--border,#E7DFD3);border-left:4px solid var(--accent,#156B7A);border-radius:10px;padding:16px 18px;margin:14px 0 18px}
.copy-box p{margin:0 0 12px;font-size:16px;color:var(--text,#0B3A44)}
.copy-btn{font:inherit;font-size:14px;font-weight:600;padding:8px 16px;border-radius:8px;border:1.5px solid var(--accent,#156B7A);background:#fff;color:var(--accent,#156B7A);cursor:pointer}
.copy-btn:focus-visible{outline:3px solid var(--accent,#156B7A);outline-offset:2px}
.legal-statement{font-weight:700;letter-spacing:.2px;background:var(--surface-alt,#F4EDE2);border-radius:8px;padding:12px 14px;color:var(--text,#0B3A44)}
.not-list li::marker{color:var(--red,#D2583E)}
.sources-list{margin:10px 0 16px 20px}
.sources-list li{font-size:15px;line-height:1.7;margin-bottom:4px;color:var(--text-2,#34474D)}
.disclaimer{font-size:14px;color:var(--muted,#5C6B70);border-top:1px solid var(--border,#E7DFD3);padding-top:14px;margin-top:18px}
.hub-card h2{font-size:clamp(20px,2.6vw,24px);margin-bottom:8px}
