/* Shared styles for Free Everyday Tools. Matches the unit converter look. */
.tl-hero{padding:28px 0 12px}
.tl-hero h1{font-size:34px;margin:0 0 10px}
.tl-hero p{margin:0;max-width:70ch;font-size:18px}
.tl-section{padding:16px 0 36px}
.tl-app{background:#fff;border:1px solid #dbe3ea;border-radius:12px;padding:16px 16px 18px;max-width:820px}
.tl-crumbs{margin:0 0 10px;font-size:14px}
.tl-crumbs a{font-weight:600}
.tl-cats,.tl-shapes{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
.tl-cats button,.tl-shapes button,.tl-preset{min-height:44px;padding:10px 14px;border:2px solid #142E84;background:#fff;color:#142E84;font:inherit;font-weight:700;border-radius:8px;cursor:pointer;touch-action:manipulation}
.tl-cats button[aria-selected="true"],.tl-shapes button[aria-selected="true"],.tl-preset[aria-pressed="true"]{background:#142E84;color:#fff}
.tl-cats button:focus-visible,.tl-shapes button:focus-visible,.tl-preset:focus-visible,.tl-btn:focus-visible{outline:3px solid #F81617;outline-offset:3px}
.tl-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.tl-grid3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px}
.tl-field{margin:0 0 12px}
.tl-field label,.tl-check{display:block;font-weight:700;color:#142E84;margin:0 0 6px;font-size:15px}
.tl-field input,.tl-field select,.tl-field textarea{display:block;width:100%;font:16px Arial,Helvetica,sans-serif;color:#1d2733;background:#fff;border:1px solid #b9c3d6;border-radius:8px;padding:12px;min-height:48px;-webkit-appearance:none;appearance:none}
.tl-field select{background-image:linear-gradient(45deg,transparent 50%,#142E84 50%),linear-gradient(135deg,#142E84 50%,transparent 50%);background-position:calc(100% - 16px) 22px,calc(100% - 11px) 22px;background-size:5px 5px;background-repeat:no-repeat;padding-right:28px}
.tl-field input:focus,.tl-field select:focus{outline:none;border-color:#142E84;box-shadow:0 0 0 2px rgba(20,46,132,.25)}
.tl-check{display:flex;align-items:center;gap:10px;font-weight:700;min-height:44px;cursor:pointer}
.tl-check input{width:22px;height:22px;min-height:22px;margin:0;accent-color:#142E84}
.tl-btn{min-height:48px;padding:10px 16px;border:2px solid #142E84;background:#142E84;color:#fff;font:inherit;font-weight:800;border-radius:8px;cursor:pointer;touch-action:manipulation}
.tl-btn.ghost{background:#fff;color:#142E84}
.tl-actions{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 4px}
.tl-area{border:1px solid #dbe3ea;border-radius:10px;padding:12px;margin:0 0 12px;background:#f9fbfc}
.tl-area-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:0 0 8px}
.tl-area-head b{color:#142E84}
.tl-remove{min-height:44px;padding:8px 12px;border:0;background:transparent;color:#142E84;font:inherit;font-weight:700;cursor:pointer;text-decoration:underline}
.tl-results{background:#f3f6f9;border-radius:12px;padding:16px;margin:16px 0 0}
.tl-results h2{margin:0 0 10px;font-size:20px}
.tl-big{font-size:32px;line-height:1.15;color:#142E84;font-weight:800;margin:0 0 6px}
.tl-big span{display:block;font-size:15px;font-weight:700;color:#4a5866;margin-top:4px}
.tl-result-list{margin:10px 0 0;padding:0;list-style:none}
.tl-result-list li{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-top:1px solid #dbe3ea;font-size:16px}
.tl-result-list b{color:#142E84}
.tl-status{min-height:1.3em;margin:10px 0 0;color:#8a1010;font-size:15px;font-weight:700}
.tl-help{margin:8px 0 0;font-size:14px;color:#4a5866;max-width:70ch}
.tl-disclaimer{display:block;background:#f3f6f9;border:1px solid #dbe3ea;border-radius:10px;padding:14px 16px;margin:24px 0 8px;max-width:800px;color:#4a5866;font-size:13px;line-height:1.55;box-sizing:border-box}
.tl-note,.tl-soft{margin:16px 0 0;max-width:70ch;font-size:16px}
.tl-warn{margin:12px 0 0;padding:12px 14px;background:#fdecec;border:1px solid #f5b5b5;border-radius:10px;color:#8a1010;max-width:70ch}
.tl-faq details{background:#fff;border:1px solid #dbe3ea;border-radius:10px;padding:14px 18px;margin:10px 0}
.tl-faq summary{font-weight:700;cursor:pointer;min-height:24px}
.tl-tool-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:18px 0 0}
.tl-card{display:block;background:#fff;border:1px solid #dbe3ea;border-radius:12px;padding:16px;text-decoration:none;color:#1d2733}
.tl-card h2,.tl-card h3{margin:0 0 6px;font-size:20px;color:#142E84}
.tl-card p{margin:0;color:#4a5866}
.tl-card:hover,.tl-card:focus-visible{border-color:#142E84;box-shadow:0 0 0 2px rgba(20,46,132,.2)}
.tl-group{margin:28px 0 0}
.tl-group h2{margin-bottom:8px}
.tl-towns{margin:12px 0 0;max-width:80ch;line-height:1.7}
.tl-towns a{font-weight:600;white-space:nowrap}
.tl-attr{margin:8px 0 0;font-size:13px;color:#4a5866}
.tl-attr a{font-weight:600}
.tl-fx-row{display:grid;grid-template-columns:1fr auto 1fr;gap:12px;align-items:end}
.tl-swap{min-height:48px;min-width:48px;padding:10px 14px;border:2px solid #142E84;background:#fff;color:#142E84;font:inherit;font-weight:800;border-radius:8px;cursor:pointer;touch-action:manipulation}
.tl-swap:hover,.tl-swap:focus-visible{background:#142E84;color:#fff}
.tl-print{margin:16px 0 0}
.tl-checklist{margin:8px 0 0;padding:0;list-style:none}
.tl-checklist li{display:flex;align-items:flex-start;gap:10px;padding:8px 0;border-bottom:1px solid #dbe3ea}
.tl-checklist input{width:22px;height:22px;margin-top:2px;accent-color:#142E84;flex:none}
@media(max-width:760px){
  .tl-hero{padding:20px 0 8px}
  .tl-hero h1{font-size:26px}
  .tl-hero p{font-size:17px}
  .tl-section{padding:12px 0 28px}
  .tl-app{padding:14px 12px 16px}
  .tl-grid,.tl-grid3,.tl-tool-grid,.tl-fx-row{grid-template-columns:1fr}
  .tl-swap{justify-self:center;width:100%;max-width:220px}
  .tl-big{font-size:28px}
  .tl-disclaimer{padding:12px 14px;margin:20px 0 4px;font-size:12.5px;width:100%;max-width:100%}
}
@media print{
  header,footer,.cta,.nx-bar,.nx-chat,.tl-actions,.tl-crumbs,nav,.call{display:none!important}
  body{background:#fff;color:#000}
  .tl-app,.tl-print{border:0;padding:0;max-width:none}
}
@media(prefers-reduced-motion:reduce){
  .tl-cats button,.tl-btn,.tl-swap{transition:none}
}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Range sliders: the generic .tl-field input rule sets -webkit-appearance:none,
   which on iOS Safari leaves only a tiny thumb and no track. Style track + thumb. */
.tl-field input[type=range]{
  -webkit-appearance:none;
  appearance:none;
  display:block;
  width:100%;
  height:44px;
  min-height:44px;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  accent-color:#142E84;
  touch-action:manipulation;
  cursor:pointer;
  box-sizing:border-box;
}
.tl-field input[type=range]:focus{
  outline:none;
  border:0;
  box-shadow:none;
}
.tl-field input[type=range]:focus-visible::-webkit-slider-thumb{
  outline:3px solid #F81617;
  outline-offset:2px;
}
.tl-field input[type=range]:focus-visible::-moz-range-thumb{
  outline:3px solid #F81617;
  outline-offset:2px;
}
.tl-field input[type=range]:disabled{opacity:.45;cursor:default}
.tl-field input[type=range]::-webkit-slider-runnable-track{
  -webkit-appearance:none;
  appearance:none;
  width:100%;
  height:8px;
  border:0;
  border-radius:8px;
  background:#dbe3ea;
}
.tl-field input[type=range]::-webkit-slider-thumb{
  -webkit-appearance:none;
  appearance:none;
  width:28px;
  height:28px;
  margin-top:-10px;
  border:3px solid #fff;
  border-radius:50%;
  background:#142E84;
  box-shadow:0 1px 4px rgba(20,46,132,.45);
  box-sizing:border-box;
}
.tl-field input[type=range]::-moz-range-track{
  width:100%;
  height:8px;
  border:0;
  border-radius:8px;
  background:#dbe3ea;
}
.tl-field input[type=range]::-moz-range-thumb{
  width:28px;
  height:28px;
  border:3px solid #fff;
  border-radius:50%;
  background:#142E84;
  box-shadow:0 1px 4px rgba(20,46,132,.45);
  box-sizing:border-box;
}
