/* Unit converter page styles. Uses the site palette. Loaded only on this page. */
.uc-hero{padding:28px 0 12px}
.uc-hero h1{font-size:34px;margin:0 0 10px}
.uc-hero p{margin:0;max-width:70ch;font-size:18px}
.uc-section{padding:16px 0 36px}
.uc-app{background:#fff;border:1px solid #dbe3ea;border-radius:12px;padding:16px 16px 18px;max-width:820px}
.uc-cats{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
.uc-cats button{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}
.uc-cats button[aria-selected="true"]{background:#142E84;color:#fff}
.uc-cats button:focus-visible{outline:3px solid #F81617;outline-offset:3px}
.uc-row{display:grid;grid-template-columns:1fr auto 1fr;gap:12px;align-items:end}
.uc-field label{display:block;font-weight:700;color:#142E84;margin:0 0 6px;font-size:15px}
.uc-field input,.uc-field select{display:block;width:100%;font:16px Arial,Helvetica,sans-serif;color:#1d2733;background:#fff;border:1px solid #b9c3d6;border-radius:8px;padding:12px 12px;min-height:48px;-webkit-appearance:none;appearance:none}
.uc-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;margin-top:8px}
.uc-field input:focus,.uc-field select:focus{outline:none;border-color:#142E84;box-shadow:0 0 0 2px rgba(20,46,132,.25)}
.uc-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;align-self:end;margin-bottom:0}
.uc-swap:hover,.uc-swap:focus-visible{background:#142E84;color:#fff}
.uc-swap:focus-visible{outline:3px solid #F81617;outline-offset:3px}
.uc-status{min-height:1.3em;margin:10px 0 0;color:#8a1010;font-size:15px;font-weight:700}
.uc-disclaimer{margin:16px 0 0;padding:14px 0 0;border-top:1px solid #dbe3ea;font-size:13px;line-height:1.55;color:#4a5866;max-width:820px}
.uc-note{margin:20px 0 0;max-width:70ch}
.uc-ref{padding-top:8px}
.uc-ref h2{margin-top:28px}
.uc-ref h2:first-child{margin-top:0}
.uc-table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;margin:12px 0 8px}
.uc-table{border-collapse:collapse;width:100%;max-width:720px;background:#fff;border:1px solid #dbe3ea}
.uc-table th,.uc-table td{border:1px solid #dbe3ea;padding:10px 12px;text-align:left;vertical-align:top}
.uc-table thead{color:#fff;background:#142E84}
.uc-table tbody th{color:#142E84;font-weight:700;white-space:nowrap;width:40%}
.uc-faq details{background:#fff;border:1px solid #dbe3ea;border-radius:10px;padding:14px 18px;margin:10px 0}
.uc-faq summary{font-weight:700;cursor:pointer;min-height:24px}
@media(max-width:760px){
  .uc-hero{padding:20px 0 8px}
  .uc-hero h1{font-size:26px}
  .uc-hero p{font-size:17px}
  .uc-section{padding:12px 0 28px}
  .uc-app{padding:14px 12px 16px}
  .uc-row{grid-template-columns:1fr;gap:10px}
  .uc-swap{justify-self:center;width:100%;max-width:220px}
  .uc-disclaimer{font-size:12.5px;line-height:1.55;padding-top:12px}
  .uc-table th,.uc-table td{padding:10px}
  .uc-table tbody th{white-space:normal}
}
@media(prefers-reduced-motion:reduce){
  .uc-cats button,.uc-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}
