.topbar{height:70px}.local-badge{color:#365650;background:#e3ece7;border-radius:20px;padding:5px 10px;font-size:11px;white-space:nowrap}.combined-tabs{height:49px;display:flex;gap:22px;padding:0 28px;overflow:auto;flex-shrink:0;background:#fff;border-bottom:1px solid #dbe3dc}.combined-tabs button{background:none;border:0;border-bottom:3px solid transparent;border-radius:0;padding:0 0 1px;white-space:nowrap;font-size:12px;color:#647261;cursor:pointer}.combined-tabs button.active{border-color:#12463c;font-weight:650;color:#12463c}.workspace{height:calc(100dvh - 119px)}.filters{overflow:auto}.filters .field{margin-bottom:15px}.filters .distance-fields{gap:5px}.filters .distance-fields label{font-size:11px}.scope-control{font-size:12px;display:flex;gap:8px;align-items:flex-start;margin:15px 0;line-height:1.6}.integration-summary{font-size:12px;line-height:1.65;border-top:1px solid #dce5dd;margin-top:22px;padding-top:15px;color:#65765d}.integration-summary strong{color:#12463c}.hint{line-height:1.65}.map-status{max-width:calc(100% - 16px);font-size:11px}.results{max-height:38vh;min-height:200px}.results.collapsed{min-height:0}.results-tools{display:flex;gap:16px;align-items:center}.record-row td:last-child{font-size:11px}.embedded-page{height:calc(100dvh - 119px)}.embedded-toolbar{height:44px;display:flex;justify-content:space-between;gap:20px;padding:10px 24px;background:#edf3ed;font-size:12px}.embedded-toolbar a{color:#12463c;white-space:nowrap}.embedded-page iframe{width:100%;height:calc(100% - 44px);border:0;display:block;background:#f7f9f5}.secondary-page{height:calc(100dvh - 119px);overflow:auto}.coverage-numbers{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin:22px 0}.coverage-number{background:#fff;border:1px solid #dce5dd;padding:20px;border-radius:9px}.coverage-number strong{display:block;font-size:27px;color:#12463c}.coverage-number span{display:block;font-size:12px;line-height:1.6;color:#65765d}.source-search{width:min(600px,100%);margin:20px 0}.provenance-links{display:grid;gap:10px;font-size:12px;line-height:1.5}.provenance-links a,.detail-note{overflow-wrap:anywhere}.detail dl{margin-bottom:16px}.detail .qualifier{border-left:3px solid #9a782e;padding:8px 12px;background:#faf4e5;font-size:12px;line-height:1.65}.detail .detail-body{padding-bottom:24px}.private-match{font-size:12px;display:block;padding:8px 0}.table-scroll{max-height:23vh}.record-subtitle{line-height:1.6}.error-message{color:#9d392a;background:#fff1eb;border:1px solid #ebd3c9;border-radius:6px;padding:12px}.loading .error-message{max-width:600px}.local-notice{font-size:12px;color:#65765d;line-height:1.65;margin-top:12px}@media(max-width:1050px){.combined-tabs{gap:17px;padding:0 15px}.coverage-numbers{grid-template-columns:repeat(2,1fr)}.header-actions .btn{display:none}.results-tools{gap:6px}.results-tools button{font-size:10px}}@media(max-width:750px){.workspace{height:auto;min-height:calc(100dvh - 119px)}.filters{max-height:none}.map-panel{height:80vh;min-height:600px}.topbar .brand .product{display:none}.combined-tabs{gap:20px}.coverage-numbers{grid-template-columns:1fr 1fr}.embedded-toolbar{height:65px;font-size:10px}.embedded-page iframe{height:calc(100% - 65px)}.map-toolbar{flex-wrap:wrap;gap:8px}.results-tools{flex-direction:column}.map-status{font-size:9px}}

#map{position:absolute;inset:0 0 25px;height:auto}.map-status{position:absolute;left:0;right:0;bottom:0;max-width:none;width:100%;height:25px;overflow:hidden;white-space:nowrap}.topbar .header-actions{margin-left:auto}@media(max-width:850px){.workspace{height:auto;min-height:calc(100dvh - 119px)}.filters{max-height:45dvh}.map-panel{height:80vh;min-height:600px}}

.private-saves{padding:10px 24px;border-bottom:1px solid #dce5dd;line-height:1.6;font-size:12px;background:#fff}.private-saves>div{display:flex;gap:8px;flex-wrap:wrap;max-height:150px;overflow:auto}.private-saves p{margin:8px 0}#private-page{display:flex;flex-direction:column}#private-page iframe{flex:1;min-height:300px}#private-page.hidden{display:none}

.embedded-page iframe.hidden{display:none}
#detail .detail-head h2 a{color:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
#detail .detail-head h2 a:hover{color:var(--brand-accent)}

.topbar{position:sticky;top:0;z-index:1000}.combined-tabs{position:sticky;top:70px;z-index:999}
/* Viewer navigation and data views. Research tools are server-authorized. */
.provider-label{font-size:11px;color:#65766b}.combined-tabs{gap:30px;overflow:visible}.combined-tabs>button{font-size:13px}.combined-tabs #admin-menu{margin-left:auto;position:relative;align-self:center;font-size:12px}.combined-tabs #admin-menu>summary{cursor:pointer;list-style:none;color:#526b5c;padding:8px 12px;border:1px solid #dce5dd;border-radius:6px}.combined-tabs #admin-menu>div{position:absolute;right:0;top:39px;min-width:235px;background:white;padding:9px;box-shadow:0 10px 35px #123d3026;border:1px solid #dce5dd;border-radius:8px}.combined-tabs #admin-menu button{display:block;border:0;text-align:left;width:100%;padding:11px 12px;white-space:normal;color:#234c3c}.combined-tabs #admin-menu button:hover{background:#eef4ee}.admin-only.hidden{display:none!important}.map-error{position:absolute;inset:0 0 25px;z-index:500;background:#f3f6f1;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px;padding:25px;text-align:center}.map-error.hidden{display:none}.map-error h2{font-size:21px}.map-error p{font-size:13px;max-width:400px;line-height:1.7}.viewer-table-page{max-width:none;padding:32px 4vw}.table-filters{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:16px 20px;padding:20px;border:1px solid #dce5dd;background:#fff;border-radius:10px;margin:25px 0 18px;align-items:end}.table-filters label,.map-settings-form label{display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:600}.table-filters input,.table-filters select,.map-settings-form input{width:100%;min-height:38px;border:1px solid #d8e2d9;border-radius:6px;background:#fff;padding:8px 10px;font-size:12px;color:#193c31}.table-filters .table-search{grid-column:span 2}.table-query-status{margin-bottom:16px;color:#59715f;font-size:13px}.all-data-scroll,.source-table-scroll{overflow:auto;border:1px solid #dce5dd;background:#fff;border-radius:9px}.all-data-table,.source-contribution-table{width:100%;border-collapse:collapse;text-align:left;font-size:12px;line-height:1.6}.all-data-table{min-width:1060px}.all-data-table th,.source-contribution-table th{padding:13px 16px;background:#f0f5ee;color:#60765f;text-transform:uppercase;font-size:10px;letter-spacing:.6px;white-space:nowrap}.all-data-table td,.source-contribution-table td{border-top:1px solid #e4ebe2;padding:15px 16px;vertical-align:top}.all-data-table small,.source-contribution-table small{display:block;color:#7c8d7e;font-size:11px;margin-top:5px}.all-data-table a,.source-contribution-table a{color:#23593e;text-decoration:underline;text-underline-offset:3px}.table-record-link{border:0;background:none;text-align:left;padding:0;color:#174d3a;font-weight:600;line-height:1.6;cursor:pointer}.potential-use{display:block;color:#8c6721;font-size:11px}.all-data-table tr:hover{background:#fbfcf9}.provenance-explainer{max-width:1000px;color:#657761;font-size:13px;line-height:1.8;margin:20px 0 32px}.provenance-section{margin:24px 0 40px}.source-section-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}.source-section-heading h2{font-size:24px;letter-spacing:-.5px}.provenance-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:20px}.provenance-metrics>div{border:1px solid #dce5dd;background:#fff;padding:17px 20px;border-radius:8px}.provenance-metrics strong{font-size:25px;display:block;color:#184d3d;margin-bottom:7px}.provenance-metrics span{display:block;font-size:11px;line-height:1.65;color:#6d806a}.source-contribution-table{min-width:850px}.source-contribution-table td:first-child{width:28%;min-width:220px}.source-contribution-table td:nth-child(4){width:32%}.source-contribution-table details{font-size:11px}.source-contribution-table summary{cursor:pointer;color:#27583c}.source-contribution-table ul{padding-left:16px;margin:12px 0;line-height:1.7}.source-contribution-table li{margin:0 0 12px}.source-contribution-table li span{display:block;font-size:10px;color:#7d8d7a}.land-ownership-note{margin:0 0 20px;border-left:3px solid #bcb38a;background:#f7f4e9;padding:13px 16px;font-size:12px;line-height:1.8}.context-lineage{font-size:12px;margin-top:16px;color:#58715d;line-height:1.8}.context-lineage summary{cursor:pointer;font-weight:600}.context-lineage p{margin:12px 0}.lineage-definitions{max-width:1050px;border-top:1px solid #dce5dd;padding-top:25px;margin-bottom:35px}.lineage-definitions h2{margin-bottom:20px}.lineage-definitions p{font-size:12px;line-height:1.8;color:#5d745f;margin:12px 0}.map-settings-form{max-width:650px;display:grid;gap:20px;margin:35px 0}.map-settings-form .btn{justify-self:start}.workspace .integration-summary{display:none}.map-wrap .detail{z-index:600}.topbar .brand{margin-right:auto}
@media(min-width:851px){.workspace{min-height:0;overflow:hidden}.map-wrap{min-height:200px}.filters{width:290px}.filters #scope-note{margin-top:16px}.map-panel .results:not(.collapsed){max-height:32vh;min-height:160px}}
@media(max-width:850px){.combined-tabs{padding:0 14px;gap:25px;overflow:visible}.combined-tabs>button{font-size:12px}.provider-label{display:none}.workspace{height:calc(100dvh - 119px);min-height:450px;overflow:hidden}.filters{width:100%;max-height:32dvh;min-height:165px;flex:none}.filters h1{font-size:18px;margin-bottom:10px}.filters .filter-heading{margin-bottom:7px}.filters .field{margin-bottom:9px}.filters .distance-fields{gap:12px}.map-panel{height:auto;min-height:200px;flex:1}.map-wrap{min-height:160px}.map-panel .results:not(.collapsed){max-height:30vh;min-height:130px}.map-toolbar{padding:0 13px;min-height:47px;height:47px}.map-toolbar-actions .btn{font-size:10px;padding:5px 7px}.map-toolbar>div:first-child{font-size:11px}.table-filters{grid-template-columns:repeat(2,minmax(120px,1fr));gap:13px;padding:15px}.table-filters .table-search{grid-column:span 2}.viewer-table-page{padding:25px 18px}.provenance-metrics{grid-template-columns:repeat(2,1fr);gap:12px}.source-section-heading{align-items:flex-start}.source-section-heading h2{font-size:20px}.source-section-heading button{font-size:11px}.topbar{gap:12px;padding:0 14px}.combined-tabs #admin-menu{font-size:11px}.combined-tabs #admin-menu>summary{padding:7px 8px}.secondary-page .page-head{align-items:flex-start}.secondary-page .page-head h1{font-size:26px}}
@media(max-width:440px){.combined-tabs{gap:18px}.combined-tabs #admin-menu>summary{padding:7px 4px;font-size:10px}.combined-tabs>button{font-size:11px}.local-badge{font-size:9px;padding:4px 7px}.topbar .header-actions{font-size:11px}.provenance-metrics strong{font-size:22px}}

/* Compact map search and records awaiting a published location. */
.filters .advanced-fields{display:block;padding:5px 0 3px}.filters .search-fields{display:block}.filters .search-submit{margin-top:18px}.filters #search-feedback:empty{display:none}.filters #filter-count:empty{display:none}.filters #distance-fields.hidden{display:none}.unmapped-projects{position:absolute;right:16px;top:16px;z-index:550;width:min(310px,calc(100% - 32px));border:1px solid #d9e3d8;border-radius:9px;background:#fff;box-shadow:0 4px 20px #123d3014;font-size:12px;color:#214b3c}.unmapped-projects.hidden{display:none}.unmapped-projects>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;cursor:pointer;list-style:none;padding:13px 15px;font-weight:600;line-height:1.5}.unmapped-projects>summary::-webkit-details-marker{display:none}.unmapped-projects[open] .unmapped-chevron{transform:rotate(180deg)}.unmapped-body{border-top:1px solid #e5ebe1;padding:12px 15px;max-height:min(45vh,350px);overflow:auto}.unmapped-body p{font-size:11px;line-height:1.7;color:#6a7c68;margin:0 0 10px}.unmapped-body ul{list-style:none;margin:0;padding:0}.unmapped-body li+li{border-top:1px solid #e7ede3}.unmapped-body li button{font:inherit;color:#214e3c;background:none;border:0;text-align:left;padding:10px 0;line-height:1.6;cursor:pointer;width:100%}.unmapped-body li small{display:block;color:#71836e;font-size:10px}.unmapped-body li button:hover{text-decoration:underline}.unmapped-body #unmapped-pagination{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;color:#71836e}.unmapped-body #unmapped-pagination button{background:#f4f7f1;border:1px solid #dce5d7;border-radius:4px;padding:6px 8px;font:inherit;color:#234e3c;cursor:pointer}.unmapped-body #unmapped-pagination button:disabled{opacity:.4;cursor:default}@media(max-width:850px){.filters .search-fields{display:block}.filters #advanced-search{margin-top:8px}.filters .search-submit{margin-top:10px}.unmapped-projects{right:10px;top:10px;width:min(285px,calc(100% - 20px));font-size:11px}.unmapped-body{max-height:33vh}}
@media(max-width:850px){.filters{max-height:45dvh}}

.map-layers{width:min(252px, calc(100% - 36px))}.map-layers .legend-options{min-width:0}.map-layers label{font-size:11px;gap:8px}.map-layers .hint{max-width:235px}.asset-swatch{display:inline-block;flex:none;width:10px;height:10px}.asset-swatch.dc{background:#007da8;border:1px solid white;border-radius:50%;box-shadow:0 0 0 1px #007da8}.asset-swatch.mining{background:#ce7917;border-radius:1px}.asset-swatch.transmission{background:#8754c9;height:3px;width:14px}.search-submit[aria-busy=true]{box-shadow:inset 0 -3px #007da8}.map-layers .legend-options b{display:inline;margin-left:auto;color:var(--ink)}

@media(max-width:600px){.map-layers{width:min(212px, calc(100% - 24px))}.map-layers .hint{display:none}.map-layers label{font-size:10px;margin-top:7px}}

.search-progress{position:absolute;z-index:650;top:16px;left:50%;transform:translateX(-50%);width:min(470px,calc(100% - 28px));display:flex;gap:12px;align-items:flex-start;padding:16px;background:#edfaff;color:#15212e;border:2px solid #00baff;border-radius:9px;box-shadow:0 5px 24px #15212e26}.search-progress.hidden{display:none}.search-progress-copy{min-width:0;flex:1}.search-progress strong{font-size:16px;line-height:1.4;display:block}.search-progress p{font-size:12px;line-height:1.55;margin:6px 0}.search-progress #search-elapsed{font-size:11px;font-weight:650;display:block;color:#51637a}.search-progress-actions{display:flex;align-items:center;gap:16px;margin-top:10px}.search-progress.search-error{background:#fff6ef;border-color:#ce7917}.search-spinner{display:inline-block;flex:none;width:23px;height:23px;border:3px solid #b7e3f3;border-top-color:#007da8;border-radius:50%;animation:search-spin .8s linear infinite}.search-spinner.hidden{display:none}#search-button-spinner{width:16px;height:16px;border-width:2px;border-color:#ffffff70;border-top-color:#15212e}#run-search[aria-busy=true]{background:#00baff;color:#15212e;opacity:1}@keyframes search-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.search-spinner{animation:none;border-style:dotted}}@media(max-width:600px){.search-progress{padding:12px}.search-progress strong{font-size:14px}.search-progress p{font-size:11px}}

.filters .filter-field-title {
  color: var(--brand-text);
  font-size: 11px;
  font-weight: 650;
  margin-bottom: 7px;
}
#subtype-field > label,
#centre-stage-field > label {
  justify-content: flex-start;
  gap: 8px;
  text-align: left;
  font-weight: 400;
}
input[type="checkbox"] {
  appearance: none;
  display: inline-grid;
  place-items: center;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  margin: 0;
  border: 1px solid #677285;
  border-radius: 3px;
  background: white;
}
input[type="checkbox"]:checked {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
}
input[type="checkbox"]:checked::after {
  content: "";
  width: 4px;
  height: 7px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg);
}
input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--brand-text);
  outline-offset: 2px;
}
@media (forced-colors: active) {
  input[type="checkbox"] { appearance: auto; }
  input[type="checkbox"]:checked::after { content: none; }
}

#detail .detail-head p,
#detail .detail-note,
#detail .hint {
  color: var(--brand-muted);
  font-size: 12px;
  line-height: 1.55;
}
#detail dl > div {
  font-size: 13px;
  line-height: 1.5;
  border-color: var(--brand-line);
}
#detail dt {
  color: var(--brand-muted);
  font-weight: 600;
}
#detail dd { color: var(--brand-text); }
#detail .record-disclosure > summary,
#detail textarea { font-size: 13px; }

.map-layers > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.map-layers > summary::after {
  content: '';
  width: 7px;
  height: 7px;
  margin: 0 2px -3px 0;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(225deg);
}
.map-layers[open] > summary::after {
  content: '';
  margin-bottom: 3px;
  transform: rotate(45deg);
}
@media (prefers-reduced-motion: no-preference) {
  @supports (interpolate-size: allow-keywords) {
    .map-layers::details-content {
      interpolate-size: allow-keywords;
      block-size: 0;
      overflow: clip;
      transition: block-size 160ms ease, content-visibility 160ms allow-discrete;
    }
    .map-layers[open]::details-content { block-size: auto; }
    .map-layers > summary::after { transition: transform 160ms ease; }
  }
}
.map-layers .legend-options > label:not(.basemap) {
  display: grid;
  grid-template-columns: auto 14px minmax(0, 1fr) auto;
}
.map-layers .asset-swatch { justify-self: center; }
.map-layers .asset-swatch.substation { background: #facc15; }
.map-layers .asset-swatch.planning { background: #d6336c; }

.map-panel .map-wrap { overflow: clip; }
.map-panel .results.results-drawer {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(100%, 580px);
  height: auto;
  min-height: 0;
  max-height: none;
  z-index: 625;
  border-top: 0;
  border-left: 1px solid var(--line);
  box-shadow: -8px 0 24px #15212e26;
}
.results.results-drawer[hidden] { display: none; }
.results-drawer .results-heading { padding-right: 56px; }
.results-drawer .results-close {
  position: absolute;
  top: 12px;
  right: 12px;
}
.results-drawer .table-scroll {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow: auto;
}
.results-drawer td .record-subtitle { margin-left: 0; }
.results-drawer .table-footer { flex-shrink: 0; }
@media (prefers-reduced-motion: no-preference) {
  .results.results-drawer {
    transform: translateX(0);
    transition: transform 160ms ease-out, display 160ms allow-discrete;
  }
  .results.results-drawer[hidden] { transform: translateX(calc(100% + 32px)); }
  @starting-style {
    .results.results-drawer:not([hidden]) { transform: translateX(calc(100% + 32px)); }
  }
}

/* A selected marker opens a compact summary; evidence stays available on demand. */
#detail .record-summary-type { margin-top: 0; font-size: 13px; font-weight: 600; }
#detail.is-loading .record-details { display: none; }
#detail .record-details > summary { padding: 10px 0; }
.site-history-record { border-top: 1px solid var(--line); padding: 12px 0; }
.site-history-record h3 { font-size: 13px; margin: 0 0 6px; }
.site-history-record p, .site-history-record a { font-size: 12px; line-height: 1.5; }
