/* Customer workspace: quiet typography, compact records, and the agency's navy. */
:root {
  --workspace-ink: #25333f;
  --workspace-muted: #66717a;
  --workspace-line: #d9dee2;
  --workspace-navy: #082b45;
  --workspace-paper: #f5f5f3;
}

.search-app,
.workspace-login {
  color: var(--workspace-ink);
  background: var(--workspace-paper);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 13px;
}

.search-app a { color: #274e6b; }
.search-app a:hover { color: #082b45; text-decoration: underline; }
.search-app .btn:hover, .workspace-brand:hover { text-decoration: none; }
.search-header { min-height: 72px; padding: 16px 32px; border-bottom: 1px solid var(--workspace-line); }
.workspace-brand { display: inline-flex; align-items: baseline; gap: 20px; color: var(--workspace-navy); }
.workspace-brand strong { font-size: 21px; letter-spacing: 1.2px; font-weight: 700; }
.workspace-brand > span { padding-left: 20px; border-left: 1px solid #cbd2d8; font-size: 13px; color: #5c6770; }
.search-header-actions { gap: 22px; font-size: 12px; }
.search-header-actions .search-username, .search-header-actions .staff-link { color: #63717c; font-size: 12px; }
.search-main { max-width: 1640px; padding: 0 32px; }
.search-heading { align-items: center; margin: 30px 0 23px; }
.search-heading h1 { margin: 0 0 7px; color: #25333f; font-size: 25px; line-height: 1.3; font-weight: 600; letter-spacing: -.5px; }
.search-heading p { font-size: 13px; color: #68757e; }
.registry-date { color: #697780; font-size: 11px; text-align: right; line-height: 1.7; }
.registry-date strong { display: block; color: #34434e; font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.registry-controls { display: flex; align-items: center; gap: 24px; }
.registry-refresh { text-align: right; }
.registry-refresh form { margin: 0; }
.registry-refresh small { display: block; margin-top: 5px; color: #657580; font-size: 10px; }

.search-app .panel { border-radius: 4px; border-color: var(--workspace-line); box-shadow: none; }
.search-filter { padding: 20px; margin-bottom: 23px; }
.search-filter .filter-search { gap: 10px; }
.search-filter .search-field { min-height: 42px; font-size: 14px; }
.search-filter-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 17px; }
.search-filter-grid .filter-field { min-width: 0; }
.search-filter-grid .form-control { min-height: 39px; font-size: 12px; width: 100%; }
.search-app .filter-field label { margin-bottom: 7px; font-size: 12px; font-weight: 500; color: #495965; }
.search-filter-grid .form-select { min-height: 39px; font-size: 12px; }
.search-app .modality-filter legend { float: none; width: auto; margin: 0 0 7px; font-size: 12px; font-weight: 500; color: #495965; }
.modality-filter > .modality-options { display: flex; flex-wrap: wrap; gap: 0 14px; min-height: 39px; padding: 1px 10px; border: 1px solid #bdc8d0; border-radius: 3px; background: #fff; }
.search-app .modality-options label { display: flex; align-items: center; gap: 6px; min-height: 35px; margin: 0; font-size: 12px; white-space: nowrap; cursor: pointer; }
.modality-options input[type="checkbox"] { width: 15px; height: 15px; margin: 0; accent-color: #082b45; cursor: pointer; }
.modality-options input[type="checkbox"]:focus-visible { outline: 2px solid #436a86; outline-offset: 3px; }
.modality-help { display: block; margin-top: 5px; color: #697985; font-size: 10px; line-height: 1.4; }
.search-app .search-filter { overflow: visible; position: relative; z-index: 2; }
.province-filter { border: 0; padding: 0; margin: 0; }
.search-app .province-filter legend { float: none; width: auto; margin: 0 0 7px; font-size: 12px; font-weight: 500; color: #495965; }
.province-picker { position: relative; }
.province-summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 39px; padding: 8px 10px; border: 1px solid #bdc8d0; border-radius: 3px; background: #fff; color: #293944; font-size: 12px; cursor: pointer; list-style: none; }
.province-summary::-webkit-details-marker { display: none; }
.province-summary:focus-visible { outline: 2px solid #436a86; outline-offset: 2px; }
.province-chevron { flex-shrink: 0; color: #66717a; font-size: 16px; line-height: 1; }
.province-picker[open] .province-chevron { transform: rotate(180deg); }
.province-menu { position: absolute; left: 0; right: 0; top: calc(100% + 5px); z-index: 10; padding: 6px; border: 1px solid #bdc8d0; border-radius: 4px; background: #fff; box-shadow: 0 8px 24px #082b4520; }
.province-menu > .province-options { max-height: 260px; overflow-y: auto; overscroll-behavior: contain; }
.search-app .province-options label { display: flex; align-items: flex-start; gap: 8px; padding: 7px 5px; margin: 0; font-size: 12px; line-height: 1.5; font-weight: 400; overflow-wrap: anywhere; cursor: pointer; }
.province-options label:hover { background: #f0f3f5; }
.province-options input[type="checkbox"] { flex-shrink: 0; width: 16px; height: 16px; min-height: 0; margin: 1px 0 0; accent-color: #082b45; cursor: pointer; }
.province-options input[type="checkbox"]:focus-visible { outline: 2px solid #436a86; outline-offset: 2px; }
.province-clear { width: 100%; margin-top: 5px; padding: 8px 5px; border: 0; border-top: 1px solid #d9dee2; background: #fff; color: #274e6b; text-align: left; font-size: 12px; cursor: pointer; }
.province-clear:hover { background: #f0f3f5; }
.province-clear:disabled { color: #7a8790; cursor: default; }
.province-help { display: block; margin-top: 5px; color: #697985; font-size: 10px; line-height: 1.4; }
.phrase-items { display: flex; flex-wrap: wrap; gap: 5px; list-style: none; padding: 0; margin: 0 0 7px; }
.phrase-items:empty { display: none; }
.phrase-chip { display: inline-flex; align-items: center; max-width: 100%; gap: 4px; padding: 3px 4px 3px 9px; border: 1px solid #cbd5dc; border-radius: 3px; background: #edf1f4; color: #344b5b; font-size: 12px; }
.phrase-chip > span { overflow-wrap: anywhere; min-width: 0; }
.phrase-remove { flex-shrink: 0; width: 24px; height: 26px; padding: 0; border: 0; border-radius: 2px; background: transparent; color: #5b6d7a; font-size: 20px; line-height: 1; }
.phrase-remove:hover { background: #dce4ea; color: #082b45; }
.phrase-entry { display: flex; gap: 6px; align-items: stretch; }
.phrase-entry input { min-width: 0; flex: 1; }
.search-app .phrase-add { flex-shrink: 0; padding: 6px 10px; font-size: 11px; }
.search-app .form-control, .search-app .form-select,
.workspace-login .form-control { border-radius: 3px; border-color: #bdc8d0; color: #293944; background-color: #fff; }
.search-app .form-control::placeholder, .workspace-login .form-control::placeholder { color: #7a8790; }
.search-app .form-control:focus, .search-app .form-select:focus,
.workspace-login .form-control:focus { border-color: #436a86; box-shadow: 0 0 0 2px #082b4512; }
.search-app .btn, .workspace-login .btn { min-height: 35px; padding: 8px 15px; border-radius: 3px; font-size: 12px; font-weight: 500; }
.search-app .btn-primary, .workspace-login .btn-primary { --bs-btn-bg: #082b45; --bs-btn-border-color: #082b45; --bs-btn-hover-bg: #143e5b; --bs-btn-hover-border-color: #143e5b; --bs-btn-active-bg: #031522; color: #fff; }
.search-app .btn-light { border-color: #c7d0d7; color: #3c505f; background: #fff; }
.search-app .btn-light:hover { background: #f0f3f5; }
.search-app .btn-sm { min-height: 31px; padding: 5px 12px; font-size: 12px; }

.search-results > .panel-heading { padding: 15px 20px; border-bottom-color: var(--workspace-line); }
.search-results h2 { font-size: 14px; font-weight: 600; letter-spacing: 0; }
.search-app .count-badge { padding: 0; border: 0; background: none; color: #6c7881; font-size: 13px; font-weight: 400; font-variant-numeric: tabular-nums; }
.search-app .count-badge::before { content: "("; }
.search-app .count-badge::after { content: ")"; }
.search-exports { gap: 7px; }
.search-exports > span { color: #64737d; font-size: 12px; margin-right: 9px; }
.search-table thead th { padding: 10px; background: #f0f2f3; color: #4c5c68; font-size: 11px; font-weight: 600; border-bottom-color: #d9dfe3; white-space: normal; }
.search-table .column-sort { display: flex; align-items: center; gap: 4px; color: inherit; white-space: normal; line-height: 1.35; }
.search-table .column-sort span { flex-shrink: 0; color: #8a969f; font-size: 13px; }
.search-table .column-sort.is-active, .search-table .column-sort.is-active span { color: #082b45; }
.search-table .column-sort:focus-visible { outline: 2px solid #436a86; outline-offset: 4px; }
.search-table tbody td { padding: 10px; border-bottom-color: #e2e6e9; }
.search-table tbody tr:hover { background: #f5f7f8; }
.search-table th:first-child, .search-table td:first-child { padding-left: 14px; }
.search-table td:last-child { padding-right: 14px; }
.search-table .facility-cell { min-width: 180px; max-width: 300px; overflow-wrap: anywhere; }
.search-table .facility-name { font-size: 12px; font-weight: 600; line-height: 1.55; color: #243d50; }
.search-table small { color: #6e7b84; font-size: 11px; margin-top: 3px; line-height: 1.5; }
.search-table .search-address strong { color: #344653; font-size: 12px; }
.search-table .search-address { min-width: 125px; max-width: 200px; overflow-wrap: anywhere; }
.search-table .search-modalities { min-width: 65px; white-space: normal; }
.search-table .contact-cell { min-width: 140px; max-width: 220px; }
.search-table .contact-cell > a { color: #2c526d; font-size: 12px; }
.search-table .website-cell { min-width: 110px; max-width: 190px; font-size: 12px; overflow-wrap: anywhere; }
.search-app .external-website { overflow-wrap: anywhere; }
.search-table .identifier-cell { white-space: nowrap; color: #465d6d; font-size: 11px; font-variant-numeric: tabular-nums; }
.search-date { color: #465d6d; font-size: 12px; font-variant-numeric: tabular-nums; }
.search-table .search-event { min-width: 90px; }
.search-table .registry-presence { min-width: 150px; max-width: 200px; }
.search-table .presence-badge { white-space: normal; }
.search-app .modality { background: #eff2f5; border: 1px solid #d9e0e6; color: #3e5669; border-radius: 2px; font-size: 10px; padding: 3px 5px; font-weight: 500; }
.registry-event { color: #3e5668; font-size: 12px; }
.search-app .presence-badge { background: none; border: 0; border-left: 2px solid #8eab96; border-radius: 0; padding: 1px 0 1px 8px; font-size: 10px; color: #526a5b; }
.search-app .presence-historical { border-left-color: #b3a187; color: #796a58; }
.search-app .muted { color: #73808a !important; }
.search-app .pagination-bar { font-size: 12px; padding: 14px 20px; }
.search-explanation { color: #64737d; font-size: 11px; line-height: 1.8; margin: 14px 1px 0; }
.search-app .notice { border-radius: 3px; margin-top: 20px; font-size: 12px; }
.search-app .empty-icon { background: none; border: 1px solid #d8e0e6; border-radius: 3px; color: #5f7789; }
.search-app .empty-state h3 { color: #344b5b; }
.search-app .empty-state p { color: #6b7b86; }

.search-footer { border-top: 1px solid #d6dde1; margin-top: 27px; padding: 18px 0 25px; align-items: center; color: #66747f; }
.project-credit { display: flex; gap: 16px; align-items: center; color: #5d6c77; }
.project-credit-logo { flex-shrink: 0; display: block; line-height: 0; }
.project-credit-logo img { display: block; width: 78px; height: auto; }
.project-credit p { font-size: 12px; line-height: 1.7; margin: 0; }
.project-credit strong { color: #354956; font-weight: 600; }
.project-credit p a { color: #082b45; text-decoration: underline; text-decoration-color: #a9bac6; text-underline-offset: 3px; }
.registry-source { font-size: 11px; text-align: right; line-height: 1.8; }
.registry-source span { display: block; }
.registry-source a { text-decoration: underline; text-underline-offset: 2px; }
.search-record-grid .panel-heading h2, .search-app .practice-top > strong { color: #304858; }
.search-app .registry-data dt, .search-app .field-label, .search-app .contact-origin { color: #697985; }
.search-app .registry-data dd { font-size: 12px; }
.search-app .back-link { font-size: 12px; color: #526e82; margin-top: 25px; }
.search-app .detail-heading h1 { font-size: 24px; font-weight: 600; letter-spacing: -.3px; color: #293c4b; }
.search-app .practice-contact { color: #4b6578; font-size: 12px; }

.workspace-login { min-height: 100vh; display: flex; flex-direction: column; }
.workspace-login-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; background: #fff; padding: 21px 34px; border-bottom: 1px solid #d9dee2; }
.workspace-login-header > span { color: #6e7b85; font-size: 12px; }
.workspace-login-card { width: min(420px, calc(100% - 36px)); margin: auto; padding: 33px 34px 28px; border: 1px solid #d5dde2; border-top: 3px solid #082b45; border-radius: 3px; background: #fff; }
.login-title h1 { font-size: 25px; font-weight: 600; letter-spacing: -.4px; color: #283d4b; margin: 0 0 9px; }
.login-title p { font-size: 13px; color: #697983; line-height: 1.8; margin-bottom: 26px; }
.workspace-login .form-label { color: #435663; font-size: 12px; font-weight: 500; }
.workspace-login .form-control { min-height: 42px; }
.workspace-login .btn { min-height: 42px; }
.workspace-login-help { margin: 23px 0 0; color: #71808a; font-size: 11px; line-height: 1.7; }
.workspace-login-footer { padding: 23px 34px; }
.workspace-login-footer .project-credit { justify-content: center; }

@media (max-width: 1050px) {
  .search-main { padding-right: 24px; padding-left: 24px; }
  .search-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .search-header, .workspace-login-header { padding: 17px 18px; min-height: 68px; }
  .workspace-brand { gap: 0; }
  .workspace-brand strong { font-size: 19px; }
  .workspace-brand > span { display: none; }
  .search-header-actions { gap: 15px; }
  .search-main { padding: 0 16px; }
  .search-heading { margin: 24px 0 19px; gap: 12px; }
  .search-heading h1 { font-size: 23px; max-width: 285px; }
  .search-heading p { font-size: 12px; }
  .registry-date { display: flex; align-items: baseline; gap: 7px; text-align: left; }
  .registry-date strong { display: inline; font-size: 12px; }
  .registry-controls { width: 100%; justify-content: space-between; gap: 12px; align-items: flex-start; }
  .search-filter { padding: 16px; }
  .search-filter-grid { gap: 15px 12px; }
  .search-filter-grid .filter-field:last-child { grid-column: auto; }
  .search-filter-grid .filter-field:has(input[name^="name_"]) { grid-column: 1 / -1; }
  .search-app .filter-field label { font-size: 11px; }
  .search-results > .panel-heading { padding: 14px 15px; }
  .search-results h2 { font-size: 13px; }
  .search-exports .btn { padding: 5px 9px; font-size: 11px; }
  .search-exports > span { display: none; }
  .search-footer { align-items: flex-start; margin-top: 23px; gap: 14px; }
  .project-credit { gap: 12px; }
  .project-credit-logo img { width: 60px; }
  .project-credit p { font-size: 11px; }
  .registry-source { text-align: left; padding-left: 72px; font-size: 10px; }
  .registry-source span { display: inline; margin-left: 8px; }
  .workspace-login-header > span { font-size: 11px; }
  .workspace-login-card { padding: 27px 25px; margin-top: 55px; margin-bottom: 40px; }
  .workspace-login-footer { padding: 20px; margin-top: auto; }
  .workspace-login-footer .project-credit { justify-content: flex-start; }
}
