.tempo-calculator{margin:2.5rem 0;padding:1.5rem;border:1px solid #b8c9cf;border-radius:8px;background:#f3f7f8;color:#203a49;scroll-margin-top:1rem}
.tempo-calculator [hidden]{display:none!important}
.tempo-calculator h3{font-size:1.2rem;line-height:1.35;margin:1.2rem 0 .7rem}
.tempo-calculator fieldset{min-width:0;margin:1.3rem 0;padding:1rem;border:1px solid #b8c9cf;border-radius:6px;background:white}
.tempo-calculator legend{padding:0 .4rem;font-weight:700;font-size:1.1rem;max-width:100%}
.tempo-calculator label{display:block;font-size:.95rem;line-height:1.5;margin:0}
.tempo-calculator input,.tempo-calculator select{display:block;width:100%;max-width:100%;min-width:0;box-sizing:border-box;padding:.65rem .7rem;margin:.3rem 0 0;border:1px solid #8ca1ad;border-radius:4px;color:#203a49;background:#fff;font:inherit;min-height:44px}
.tempo-calculator input:focus-visible,.tempo-calculator select:focus-visible,.tempo-calculator button:focus-visible{outline:3px solid #a46c12;outline-offset:3px}
.tempo-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:.8rem 0}
.tempo-colour{border-top:1px solid #d4dfe3;padding:.6rem 0}
.tempo-colour h4{margin:.3rem 0;font-size:1rem}
.tempo-calculator .tempo-note{font-size:.92rem;line-height:1.6}
.tempo-calculator .tempo-buttons{display:flex;flex-wrap:wrap;gap:.7rem;margin:1rem 0}
.tempo-calculator button{font:inherit;font-weight:600;line-height:1.4;border:1px solid #203a49;border-radius:4px;padding:.7rem 1rem;background:white;color:#203a49;cursor:pointer;min-height:44px}
.tempo-calculator button[type=submit]{background:#203a49;color:white}
.tempo-calculator .tempo-error{color:#983322;font-weight:600}
.tempo-calculator .tempo-results{padding:1rem;background:#fff;border:2px solid #627d65;border-radius:6px;margin-top:1rem}
.tempo-results h3{margin-top:0}
.tempo-calculator .cost-table{min-width:0;width:100%;font-size:.95rem}
.tempo-calculator .cost-table th,.tempo-calculator .cost-table td{padding:.6rem;white-space:normal;overflow-wrap:anywhere}
.tempo-calculator .cost-table td{white-space:nowrap;overflow-wrap:normal;word-break:normal}
.tempo-result-summary{font-weight:700;font-size:1.15rem}
@media(max-width:600px){.tempo-calculator{padding:1rem .8rem}.tempo-calculator fieldset{padding:.8rem}.tempo-fields{grid-template-columns:1fr}.tempo-calculator .tempo-results{padding:.7rem}.tempo-calculator .cost-table{font-size:.85rem}.tempo-calculator .cost-table th,.tempo-calculator .cost-table td{padding:.4rem}.tempo-buttons button{width:100%}}
