/* Price check tools — shared styles (uses site CSS variables from /static/style.css) */
.tool-page{max-width:860px;margin:0 auto}
.tool-head h1{font-size:1.75rem;line-height:1.25;color:var(--heading-color);margin-bottom:.6rem}
.tool-lede{font-size:1.02rem;line-height:1.7;color:var(--text-color)}
.tool-meta{font-size:.8rem;color:var(--text-muted);line-height:1.6}
.tool-card{background:var(--card-bg);border:1px solid var(--card-border);border-radius:10px;padding:1.1rem 1.1rem 1.25rem;margin:1.25rem 0}
.tool-card h2{font-size:1.15rem;color:var(--heading-color);margin-bottom:.75rem}
.tool-card h3{font-size:1rem;color:var(--heading-color);margin:1rem 0 .5rem}
.tool-field{display:flex;flex-direction:column;gap:.3rem;margin-bottom:.9rem}
.tool-field label,.tool-field .lbl{font-weight:600;font-size:.9rem;color:var(--heading-color)}
.tool-field .hint{font-size:.8rem;color:var(--text-muted);line-height:1.5}
.tool-page select,.tool-page input[type=number],.tool-page input[type=date]{width:100%;max-width:340px;padding:.55rem .65rem;border:1px solid var(--pico-form-element-border-color,#d6d3d1);border-radius:6px;background:#fff;font-size:1rem}
.tool-radio{display:flex;flex-wrap:wrap;gap:.5rem 1rem}
.tool-radio label{font-weight:400;display:flex;align-items:center;gap:.35rem;font-size:.92rem;color:var(--text-color)}
.line-table{width:100%;border-collapse:collapse;font-size:.9rem}
.line-table th,.line-table td{padding:.5rem .4rem;border-bottom:1px solid var(--section-border);vertical-align:top;text-align:left}
.line-table th{font-size:.78rem;text-transform:uppercase;letter-spacing:.03em;color:var(--text-muted)}
.line-table td.amt{width:130px}
.line-table td.amt input{max-width:120px}
.line-table .item-name{font-weight:600;color:var(--heading-color)}
.line-table .item-note{display:block;font-size:.78rem;color:var(--text-muted);font-weight:400;line-height:1.45;margin-top:.15rem}
.tag{display:inline-block;font-size:.7rem;font-weight:700;padding:.1rem .45rem;border-radius:4px;margin-left:.3rem;vertical-align:1px;white-space:nowrap}
.tag-req{background:#fef3c7;color:#92400e}
.tag-opt{background:#dcfce7;color:#166534}
.tag-cash{background:#e0e7ff;color:#3730a3}
.tool-btn{display:inline-block;background:var(--pico-primary,#1e3a5f);color:#fff;border:0;border-radius:8px;padding:.7rem 1.4rem;font-weight:600;font-size:.95rem}
.tool-btn.secondary{background:#fff;color:var(--pico-primary,#1e3a5f);border:2px solid var(--pico-primary,#1e3a5f)}
.tool-actions{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:.5rem}
.tool-result{border:2px solid var(--pico-primary,#1e3a5f);border-radius:10px;padding:1.1rem;margin:1.25rem 0;background:#fff}
.tool-result[hidden]{display:none}
.tool-result h2{font-size:1.15rem;margin-bottom:.6rem;color:var(--heading-color)}
.big-num{font-size:1.6rem;font-weight:800;color:var(--heading-color)}
.result-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:.75rem;margin:.6rem 0 1rem}
.result-grid div{background:var(--body-bg,#f8fafc);border:1px solid var(--card-border);border-radius:8px;padding:.7rem}
.result-grid small{display:block;font-size:.78rem;color:var(--text-muted)}
.flag{border-left:4px solid #dc2626;background:#fef2f2;padding:.65rem .8rem;border-radius:0 6px 6px 0;margin:.5rem 0;font-size:.9rem;line-height:1.6}
.flag.warn{border-color:#d97706;background:#fffbeb}
.flag.info{border-color:#2563eb;background:#eff6ff}
.flag.ok{border-color:#16a34a;background:#f0fdf4}
.flag strong{color:var(--heading-color)}
.cmp-cols{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.tool-notes,.tool-faq,.tool-related,.tool-sources{margin-top:2rem;line-height:1.75;color:var(--text-color)}
.tool-notes h2,.tool-faq h2,.tool-related h2,.tool-sources h2{font-size:1.2rem;color:var(--heading-color)}
.tool-faq details{margin-bottom:.6rem;padding:.8rem 1rem;background:var(--card-bg);border:1px solid var(--card-border);border-radius:8px}
.tool-faq summary{cursor:pointer;font-weight:600;color:var(--heading-color)}
.tool-faq details p{margin:.6rem 0 0;color:var(--text-color);font-size:.92rem}
.tool-sources a,.tool-related a,.tool-notes a,.tool-lede a,.tool-card a,.tool-result a{color:var(--pico-primary,#1e3a5f);text-decoration:underline}
.tool-hub{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1rem;margin:1.25rem 0}
.tool-hub a{display:block;background:var(--card-bg);border:1px solid var(--card-border);border-radius:10px;padding:1.1rem;color:inherit}
.tool-hub a strong{display:block;color:var(--heading-color);font-size:1.02rem;margin-bottom:.35rem}
.tool-hub a span{font-size:.88rem;color:var(--text-muted);line-height:1.55}
.home-answer{max-width:760px;margin:1rem auto 0;text-align:left;background:#fff;border:1px solid var(--card-border);border-radius:10px;padding:1rem 1.2rem}
.home-answer table{font-size:.92rem;margin:.5rem 0}
.home-answer td,.home-answer th{padding:.35rem .4rem;border-bottom:1px solid var(--section-border);text-align:left}
.tool-callout{margin:1.25rem 0;padding:1rem 1.1rem;background:#eff6ff;border:1px solid #bfdbfe;border-radius:10px;font-size:.92rem;line-height:1.6}
.tool-callout a{color:var(--pico-primary,#1e3a5f);font-weight:600;text-decoration:underline}
@media (max-width:640px){
  .cmp-cols{grid-template-columns:1fr}
  .tool-head h1{font-size:1.45rem}
  .line-table td.amt{width:105px}
  .line-table td.amt input{max-width:100px}
  .line-table th.hide-sm,.line-table td.hide-sm{display:none}
}
@media print{
  header,footer,.search-bar,.tool-actions,.tool-related,.breadcrumb{display:none!important}
  .tool-result{border:1px solid #000}
}
.tool-page [hidden]{display:none!important}
