/* Foreign worker approvals (LMIA) pages: lmia-map.php, lmia-riding.php, lmia-employer.php. Builds on country.css and
   immigration.css; theme colour variables only (the map's own colours are set in lmia.js). */

.pt-lmia-crumb { color: var(--accent); font-size: 10px; letter-spacing: 0.22em; margin-bottom: 10px; }
.pt-lmia-crumb a { color: inherit; }
.pt-lmia-h { margin: 0 0 6px; font-size: 26px; font-weight: 700; letter-spacing: 0.02em; overflow-wrap: anywhere; }
.pt-lmia-lede { color: var(--ink-1); font-size: 13px; line-height: 1.6; max-width: 780px; }
.pt-lmia-h4 { margin: 14px 0 6px; font-size: 12px; color: var(--ink-0); letter-spacing: 0.04em; }
.pt-lmia-h4:first-child { margin-top: 0; }
.pt-lmia .pt-cty-table td a { overflow-wrap: break-word; }
.pt-lmia .pt-cty-table td:first-child, .pt-lmia .pt-cty-table td:has(> a) { min-width: 130px; }
.pt-lmia-total td { font-weight: 600; border-top: 1px solid var(--line-2); }

/* controls */
.pt-lmia-controls { gap: 8px 14px; }
.pt-lmia-check { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--ink-1); cursor: pointer; }
.pt-lmia-search { position: relative; flex: 1 1 240px; min-width: 0; max-width: 420px; }
.pt-lmia-search input { width: 100%; margin: 0; box-sizing: border-box; }
.pt-lmia-hits { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin: 2px 0 0; padding: 0; list-style: none; background: var(--bg-1); border: 1px solid var(--line-2); max-height: 320px; overflow-y: auto; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); }
.pt-lmia-hits a { display: flex; flex-direction: column; gap: 1px; padding: 6px 8px; color: var(--ink-0); text-decoration: none; border-bottom: 1px solid var(--line); font-size: 12px; }
.pt-lmia-hits a:hover, .pt-lmia-hits a:focus { background: var(--accent-soft); }

/* map */
.pt-lmia-mapwrap { position: relative; border: 1px solid var(--line); background: var(--bg-2); }
.pt-lmia-map { height: 620px; max-height: 75vh; width: 100%; }
.pt-lmia-panel { position: absolute; top: 8px; right: 8px; bottom: 8px; width: 300px; max-width: calc(100% - 16px); overflow-y: auto; z-index: 5; background: var(--bg-1); color: var(--ink-1); border: 1px solid var(--line-2); padding: 12px 12px 8px; box-sizing: border-box; font-size: 12px; box-shadow: 0 6px 22px rgba(0, 0, 0, 0.3); }
.pt-lmia-panel[hidden] { display: none; }
.pt-lmia-close { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-1); cursor: pointer; font-size: 16px; line-height: 1; }
.pt-lmia-close:hover { color: var(--accent); border-color: var(--accent); }
.pt-lmia-pt { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin: 0 30px 4px 0; }
.pt-lmia-ph { margin: 0 30px 2px 0; font-size: 15px; line-height: 1.3; }
.pt-lmia-ph a { color: var(--ink-0); }
.pt-lmia-pk { margin: 8px 0; }
.pt-lmia-emp { padding: 6px 0; border-bottom: 1px solid var(--line); }
.pt-lmia-emp a { color: var(--ink-0); font-weight: 600; }
.pt-lmia-row { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; border-bottom: 1px solid var(--line); }
.pt-lmia-row a { color: var(--ink-0); min-width: 0; overflow-wrap: anywhere; }
.pt-lmia-legend { position: absolute; left: 8px; bottom: 28px; z-index: 4; background: var(--bg-1); border: 1px solid var(--line-2); padding: 6px 8px; font-size: 10px; color: var(--ink-1); max-width: 230px; opacity: 0.94; }
.pt-lmia-legend:empty { display: none; }
.pt-lmia-lgt { color: var(--ink-2); margin-bottom: 3px; }
.pt-lmia-lg { display: block; line-height: 1.6; }
.pt-lmia-lg i { display: inline-block; width: 12px; height: 10px; margin-right: 6px; vertical-align: -1px; border: 1px solid var(--line); }
.pt-lmia-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.pt-lmia .maplibregl-ctrl-attrib { font-size: 10px; }
.pt-lmia .maplibregl-ctrl-group button { background-color: #fff; }

@media (max-width: 700px) {
	.pt-lmia-map { height: 460px; max-height: 70vh; }
	.pt-lmia-panel { top: auto; left: 8px; right: 8px; width: auto; max-height: 55%; }
	.pt-lmia-legend { bottom: auto; top: 8px; left: auto; right: 8px; max-width: 150px; font-size: 9px; }
	.pt-lmia-h { font-size: 21px; }
	.pt-lmia .hd .meta { display: none; }
	.pt-lmia-search { flex-basis: 100%; max-width: none; }
}

/* employer page: non-compliance, names and registry records, records */
.pt-lmia-nc { border-left: 3px solid var(--warn); padding-left: 10px; margin-bottom: 12px; }
.pt-lmia-nc td:first-child { white-space: nowrap; color: var(--ink-2); width: 1%; }
.pt-lmia-name { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12px; overflow-wrap: anywhere; }
.pt-lmia-part { margin: 4px 0 0 12px; }
.pt-lmia-reg { margin: 3px 0 0 12px; font-size: 11px; line-height: 1.5; }
.pt-lmia-reasons li { margin-bottom: 6px; }
.pt-lmia-reasons { list-style: none; padding-left: 0; }
