.hamlookup-page .hero{text-align:center}.hamlookup-page .hero p{margin-left:auto;margin-right:auto}.hamlookup-page main{width:100%;max-width:1180px;margin-inline:auto;text-align:center}.hamlookup-page label{text-align:left}.lookup-actions{justify-content:center}.record-fields{text-align:left}.lookup-primary{display:grid;grid-template-columns:minmax(220px,2fr) minmax(180px,1fr) auto;gap:16px;align-items:end}.hamlookup-page label{display:flex;flex-direction:column;gap:5px;font-size:15px}.hamlookup-page input,.hamlookup-page select{font:inherit;color:var(--ink);background:transparent;border:1px solid #7b899780;border-radius:5px;padding:9px;min-height:44px;max-width:100%;min-width:0}.hamlookup-page option{color:CanvasText;background:Canvas}.hamlookup-page button{font:inherit;cursor:pointer}.hamlookup-page .button{border:0;min-height:44px;padding:10px 20px}.hamlookup-page button:disabled{opacity:.5;cursor:default}.lookup-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:14px;align-items:end;margin:18px 0}.lookup-filters[hidden],.hamlookup-page [hidden]{display:none!important}.hamlookup-page .lookup-check{flex-direction:row;align-items:center;gap:8px;min-height:44px}.lookup-check input{min-height:auto}.lookup-actions{display:flex;align-items:end;gap:16px;flex-wrap:wrap;margin:20px 0}.lookup-actions h2{margin:0;flex:1}.lookup-link{background:transparent;border:0;color:var(--accent);text-decoration:underline;text-underline-offset:4px;min-height:44px;padding:6px}.lookup-radius{border-block:1px solid #7b899740;padding:12px 0}.lookup-radius summary{cursor:pointer}.lookup-table-wrap{overflow:auto}.lookup-table{border-collapse:collapse;width:100%;text-align:left}.lookup-table th{white-space:nowrap;font-weight:600;color:var(--accent);background:transparent}.lookup-table td,.lookup-table th{padding:12px 10px;border-bottom:1px solid #7b899740}.lookup-table td:first-child{white-space:nowrap}.lookup-table button{padding:0;min-height:32px}.lookup-table td:nth-child(n+4){white-space:nowrap}.lookup-paging{justify-content:center;align-items:center}#lookup-message{padding:18px 0;margin:0}#lookup-map{height:440px;border-radius:8px;color:#20242a}#record-dialog{width:min(850px,95vw);max-height:90vh;overflow:auto;background:Canvas;color:CanvasText;border:1px solid #7b8997;border-radius:10px;padding:24px}#record-dialog::backdrop{background:#0008}.record-fields{display:grid;grid-template-columns:max-content 1fr;gap:8px 20px}.record-fields dt{font-weight:600}.record-fields dd{margin:0}.expiry-warning{color:#996600}.hamlookup-page :focus-visible{outline:3px solid #d3bc79;outline-offset:3px}@media(max-width:700px){.lookup-primary{grid-template-columns:1fr}.lookup-filters{grid-template-columns:1fr 1fr}.lookup-actions{gap:10px}.lookup-table{font-size:14px}.record-fields{grid-template-columns:1fr}.record-fields dd{margin-bottom:10px}}@media print{header,footer,.theme-control,#lookup-form,.lookup-actions button,.lookup-paging,#lookup-message,#map-area{display:none!important}main{max-width:none!important;padding:0!important}.lookup-table-wrap{overflow:visible}.lookup-table{font-size:10pt}body{background:white!important;color:black!important}body.print-record main>*:not(#record-dialog){display:none!important}#record-dialog[open]{position:static;max-height:none;width:100%;border:0}#record-dialog::backdrop{display:none}.lookup-table th,.lookup-table td{padding:5px}}

.lookup-exact{display:flex;justify-content:center;margin:0 0 16px}

/* Record details use the same photograph, palette and typography as the page. */
#record-dialog{box-sizing:border-box;width:min(900px,calc(100vw - 32px));max-height:90dvh;padding:28px 32px;color:var(--ink);background-color:var(--page-bg);background-image:linear-gradient(var(--record-wash),var(--record-wash)),var(--backdrop);background-size:cover;background-position:center;--record-wash:rgba(248,249,251,.72);border:1px solid var(--border);border-radius:8px;font:inherit;text-align:left}
:root[data-theme=dark] #record-dialog{--record-wash:rgba(24,28,35,.78)}
#record-dialog .record-header{display:block;text-align:center;margin:0 0 24px;padding-bottom:20px;border-bottom:1px solid var(--border)}
#record-dialog h2{font-size:36px;margin:0 0 18px}
.record-header .record-actions,.record-official{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}
#record-dialog .record-fields{grid-template-columns:minmax(130px,180px) minmax(0,1fr);gap:10px 24px;margin:0 0 26px}
.record-fields dd{overflow-wrap:anywhere}.record-fields dt{color:var(--muted)}
.record-official{margin:24px 0 30px}#record-dialog h3{text-align:center;margin:0 0 18px}
#record-dialog .lookup-table th,#record-dialog .lookup-table td{background:transparent}
@media(max-width:600px){#record-dialog{padding:22px 18px}#record-dialog .record-fields{grid-template-columns:1fr;gap:3px}#record-dialog .record-fields dd{margin-bottom:12px}}
@media print{#record-dialog{background:white!important;color:black!important;padding:0!important}.record-header .record-actions,.record-official{display:none!important}}

/* Consistent control geometry, including Safari's native select widgets. */
.hamlookup-page .lookup-primary{grid-template-columns:minmax(220px,420px) minmax(180px,240px) auto;justify-content:center;max-width:820px;margin-inline:auto}
.hamlookup-page input:not([type=checkbox]),.hamlookup-page select{box-sizing:border-box;height:44px;line-height:normal}
body[data-backdrop].hamlookup-page select{-webkit-appearance:none;appearance:none;padding:9px 36px 9px 12px;background-color:var(--page-bg);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23596371' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:16px}
@media(max-width:700px){.hamlookup-page .lookup-primary{grid-template-columns:1fr;max-width:none}}
