/* UI accents follow each website's brand; map point colours are independent.
   Define on body so the download dialog inherits the same checkbox accent. */
body {
    --map-accent: var(--brand-dark-blue);
    --map-accent-soft: #edf3f7;
}
body.site-solar { --map-accent-soft: #fff2e3; }
body.site-battery { --map-accent-soft: #e9f5ef; }

/* Shared overlay: opening, closing or expanding the panel leaves
   the map container, geographic bounds and centre unchanged. */
.turbine-sidebar {
    position: absolute;
    inset: 0 auto 0 0;
    width: 440px;
    box-sizing: border-box;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    background: #fff;
    color: #233342;
    border-right: 1px solid #d7dfe6;
    box-shadow: 2px 0 12px #0c3c6012;
    font: 14px/1.5 system-ui, sans-serif;
}
.turbine-sidebar [hidden], .turbine-sidebar[hidden] { display: none !important; }
.turbine-sidebar button { cursor: pointer; }
.turbine-sidebar button:focus-visible, .turbine-sidebar a:focus-visible,
.turbine-panel-toggle:focus-visible { outline: 3px solid var(--map-accent, var(--brand-dark-blue)); outline-offset: 2px; }
.turbine-sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    box-sizing: border-box;
    padding: 6px 16px 6px 20px;
}
.turbine-sidebar.is-details .turbine-sidebar-header { padding: 2px 16px; border-bottom: 1px solid #e3e8ed; }
.turbine-sidebar-header h2 { flex: 1; min-width: 0; margin: 0; font-size: 20px; line-height: 1.35; color: var(--brand-dark-blue); }
.turbine-sidebar.is-details .turbine-sidebar-header h2 { font-size: 16px; }
.turbine-sidebar-back {
    flex: 0 1 auto;
    min-height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--brand-dark-blue);
    font: inherit;
    font-size: 13px;
}
.turbine-sidebar-close {
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--brand-dark-blue);
}
.turbine-sidebar-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.turbine-sidebar-close:hover,
.turbine-search-announcement-close:hover { background: #edf2f6; }
.turbine-sidebar-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; flex: 1; padding: 16px 20px 24px; }
.turbine-results-strip, .turbine-filter-toolbar { position: relative; padding: 8px 10px; border-radius: 6px; background: #f0f0f0; }
.turbine-results-strip { margin-bottom: 8px; }
.turbine-results-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.turbine-sidebar-count { min-width: 0; font-variant-numeric: tabular-nums; }
.turbine-count-heading { display: flex; align-items: center; gap: 4px; }
.turbine-count-local { margin: 0; color: var(--brand-dark-blue); font-size: 14px; line-height: 1.35; }
.turbine-results-download {
    display: grid; place-items: center; flex: 0 0 40px; height: 40px; padding: 0;
    border: 0; border-radius: 5px; background: #fff; color: var(--map-accent); font-size: 17px;
}
.turbine-results-download:hover { box-shadow: inset 0 0 0 1px var(--map-accent); }
.turbine-sidebar-message { margin: 12px 0; color: #596b78; }
.turbine-sidebar-list { padding: 0; margin: 0 0 16px; list-style: none; }
.turbine-sidebar-list li + li { border-top: 1px solid #e3e8ed; }
.turbine-list-entry {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 3px;
    width: 100%;
    min-height: 44px;
    padding: 8px 6px;
    text-align: left;
    border: 0;
    background: #fff;
    color: inherit;
    font: inherit;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    border-radius: 4px;
}
.turbine-list-entry:hover, .turbine-list-entry:focus-visible { background: #f6f6f6; }
/* Selection keeps the result list in place; the explicit details action
   appears only on the selected row, leaving other rows compact. */
.turbine-sidebar-list li.is-selected { background: var(--map-accent-soft); }
.turbine-sidebar-list li.is-selected .turbine-list-entry {
    background: var(--map-accent-soft);
    box-shadow: inset 3px 0 var(--map-accent, var(--brand-dark-blue));
}
.turbine-sidebar .turbine-list-details {
    position: absolute; right: 6px; bottom: 8px; margin: 0; min-height: 28px;
    padding: 3px 8px; font-size: 12px; line-height: 20px;
}
.turbine-list-title {
    display: flex;
    align-items: baseline;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 13px;
    color: var(--brand-dark-blue);
}
.turbine-list-manufacturer, .turbine-list-model {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.turbine-list-manufacturer { flex: 0 1 auto; }
.turbine-list-model { flex: 0 1 auto; font-weight: 400; }
.turbine-list-slash { flex: 0 0 auto; margin: 0 5px; font-weight: 400; }
/* Give the model its natural width first. The maker absorbs any shortage;
   a very long model is only clipped once the maker has shrunk to a hint. */
.has-model .turbine-list-manufacturer { min-width: 3ch; }
.has-manufacturer .turbine-list-model { flex-shrink: 0; max-width: calc(100% - 48px); }
.is-turbine-title .turbine-list-model { font-weight: 700; }
.is-turbine-title.has-model .turbine-list-manufacturer { min-width: 0; }
.is-turbine-title.has-manufacturer .turbine-list-model { max-width: calc(100% - 10ch - 18px); }
.turbine-list-name {
    font-size: 12px;
    color: #344856;
    white-space: normal;
    overflow-wrap: anywhere;
}
strong.turbine-list-name { font-size: 13px; color: var(--brand-dark-blue); }
.turbine-list-meta {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    white-space: nowrap;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    min-width: 0;
    max-width: 100%;
}
.turbine-list-separator { color: #76848e; margin: 0 4px; }
.turbine-list-power { max-width: 10ch; overflow: hidden; text-overflow: ellipsis; }
.turbine-list-status { color: var(--map-accent, var(--brand-dark-blue)); }
.turbine-list-source { color: #596b78; }
.turbine-panel-toggle { position: relative; background: #fff; border: 0; border-radius: 3px; color: #444; cursor: pointer; }
.turbine-panel-button {
    min-height: 40px;
    border: 1px solid #bdcdd9;
    border-radius: 6px;
    padding: 8px 12px;
    color: var(--brand-dark-blue);
    background: #fff;
    font: 600 13px/1.4 system-ui, sans-serif;
}
.turbine-panel-button:hover { background: var(--map-accent-soft); }
.turbine-details-power { margin: 0; font-size: 13px; font-weight: 400; }
.turbine-details-note { font-size: 12px; color: #596b78; margin: 12px 0 0; }
.turbine-details-note:empty { display: none; }
.turbine-details-coordinates { font-variant-numeric: tabular-nums; user-select: all; }
.turbine-details-outside { color: #78531c; font-size: 13px; }
.turbine-details-id { font-size: 12px; overflow-wrap: anywhere; color: #596b78; }
.turbine-sidebar-share { width: 100%; }
.turbine-sidebar-resize { display: none; }
@media (max-width: 700px) {
    .turbine-sidebar {
        inset: auto 0 0;
        width: 100%;
        height: 48%;
        border: 0;
        border-top: 1px solid #d7dfe6;
        border-radius: 14px 14px 0 0;
        box-shadow: 0 -3px 16px #0c3c6018;
    }
    .turbine-sidebar-expanded .turbine-sidebar { height: 78%; }
    .turbine-sidebar-resize {
        display: block;
        position: absolute;
        z-index: 1;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 72px;
        height: 24px;
        padding: 5px 0 0;
        border: 0;
        background: transparent;
        touch-action: none;
    }
    .turbine-sidebar-resize::before { content: ''; position: absolute; top: 5px; left: 18px; width: 36px; height: 4px; border-radius: 3px; background: #bcc9d3; }
    .turbine-sidebar-header,
    .turbine-sidebar.is-details .turbine-sidebar-header { padding: 4px 12px 0 16px; }
    .turbine-sidebar-header h2 { font-size: 18px; }
    .turbine-sidebar-scroll { padding: 6px 16px 16px; }
    /* The promotion badge belongs to the map, not on top of the sheet. */
    .turbine-sidebar-open .ventodyne-widget { display: none; }
}

/* Panel controls and search form. */
.turbine-panel-toggle:hover { background: #f4f4f4; }
.turbine-panel-toggle[aria-pressed="true"] { background: var(--map-accent, var(--brand-dark-blue)); color: #fff; }
.turbine-search-form { margin: 0 0 12px; }
.turbine-filter-label { display: flex; flex-direction: column; gap: 3px; margin: 0 0 9px; font-size: 12px; min-width: 0; }
.turbine-search-heading { display: flex; align-items: center; gap: 4px; position: relative; }
.turbine-search-form input:not([type="checkbox"]):not([type="range"]) {
    width: 100%; min-width: 0; min-height: 36px; box-sizing: border-box;
    border: 1px solid #bdcdd9; border-radius: 5px; padding: 6px 8px;
    color: #233342; background: #fff; font: inherit; font-size: 13px;
}
.turbine-search-form input:focus-visible,
.turbine-filter-options summary:focus-visible { outline: 2px solid var(--map-accent, var(--brand-dark-blue)); outline-offset: 2px; }
.turbine-filter-options summary { cursor: pointer; color: var(--brand-dark-blue); font-weight: 650; min-height: 25px; }
.turbine-search-fields { margin-bottom: 5px; }
.turbine-search-fields > summary { font-size: 12px; }
.turbine-search-fields .turbine-filter-heading { min-height: 0; margin: 0; }
/* Position the trigger beside the chips. The group anchors the full-width popover. */
.turbine-search-fields .turbine-filter-help > summary { position: absolute; top: 3px; right: 0; }
.turbine-search-fields .turbine-filter-chips { margin-right: 28px; }
.turbine-applied-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.turbine-filter-options[open] + .turbine-applied-filters { display: none; }
.turbine-filter-options:not([open]) + .turbine-applied-filters[hidden] + .turbine-filter-reset { display: none; }
.turbine-applied-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
    min-height: 30px;
    padding: 3px 8px;
    border: 1px solid #ccd6df;
    border-radius: 12px;
    background: var(--map-accent-soft);
    color: var(--map-accent);
    font: 12px/1.3 system-ui, sans-serif;
}
.turbine-applied-filter:hover { border-color: var(--map-accent); }
.turbine-applied-filter-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.turbine-applied-filter-fields { max-width: 70%; overflow-wrap: anywhere; }
.turbine-applied-filter > :last-child { font-size: 16px; }
.turbine-filter-check { display: flex; flex-direction: row; align-items: center; gap: 7px; font-size: 12px; min-height: 32px; }
.turbine-filter-check input { flex-shrink: 0; width: 16px; height: 16px; accent-color: var(--map-accent, var(--brand-dark-blue)); }
.turbine-filter-error { color: #a12431; font-size: 12px; }
@media (max-width: 700px) {
    .turbine-search-form { margin-bottom: 8px; }
}
/* No-WebGL fallback mirrors the shader's desaturated nonmatches. */
.turbine-marker-muted { filter: grayscale(1); }

/* Common map controls for all datasets. */
.turbine-map-controls { --map-control-size: 32px; }
.turbine-map-controls .leaflet-top.leaflet-right > .leaflet-control { margin-top: 3px !important; margin-bottom: 0 !important; }
.turbine-map-controls .leaflet-top.leaflet-right > .leaflet-control:first-child { margin-top: 6px !important; }
.turbine-map-controls .leaflet-top.leaflet-right > .map-control-group-start { margin-top: 15px !important; }
.turbine-map-controls .leaflet-top.leaflet-right .leaflet-bar { border: 2px solid #0003; }
.turbine-map-controls .leaflet-top.leaflet-right .leaflet-bar > a,
.turbine-map-controls .turbine-panel-toggle {
    width: var(--map-control-size); height: var(--map-control-size); min-height: 0;
    padding: 0; box-sizing: border-box; display: flex; align-items: center;
    justify-content: center; line-height: var(--map-control-size);
}
.turbine-map-controls .leaflet-bar a .fa { line-height: 1; vertical-align: baseline; }
.turbine-map-controls .turbine-panel-toggle svg,
.turbine-map-controls .turbine-basemap-control svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.turbine-map-controls .turbine-list-toggle circle { fill: currentColor; stroke: none; }
.turbine-filter-badge {
    position: absolute; right: -5px; top: -5px; min-width: 15px; height: 15px;
    padding-inline: 2px; box-sizing: border-box; border-radius: 8px;
    background: var(--map-accent, var(--brand-dark-blue)); color: #fff;
    box-shadow: 0 0 0 1px #fff; font: 700 10px/15px system-ui, sans-serif;
}
.turbine-control-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.turbine-search-announcement {
    position: absolute;
    top: 50%;
    right: calc(100% + 10px);
    transform: translateY(-50%);
    display: flex;
    align-items: flex-start;
    box-sizing: border-box;
    width: max-content;
    max-width: min(224px, calc(100vw - 80px));
    padding: 7px 5px 9px 11px;
    border: 1px solid #ccd6df;
    border-radius: 9px;
    background: #fff;
    color: var(--map-accent, var(--brand-dark-blue));
    box-shadow: 0 3px 12px #172e4326;
    font: 600 13px/1.35 system-ui, sans-serif;
}
.turbine-search-announcement[hidden],
.turbine-sidebar-open .turbine-search-announcement { display: none; }
.turbine-search-announcement::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -5px;
    width: 8px;
    height: 8px;
    transform: translateY(-50%) rotate(45deg);
    border-top: 1px solid #ccd6df;
    border-right: 1px solid #ccd6df;
    background: #fff;
}
.turbine-search-announcement-message { padding-top: 2px; }
.turbine-search-announcement-label {
    display: block;
    width: fit-content;
    margin-bottom: 4px;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--map-accent-soft, #edf4fa);
    font: 700 10px/1.3 system-ui, sans-serif;
}
.turbine-search-announcement-close {
    flex: none;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-top: -5px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #526579;
    cursor: pointer;
}
.turbine-search-announcement-close svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
}
.turbine-search-announcement-close:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
.turbine-map-controls .leaflet-top.leaflet-right .geocoder-control { width: calc(var(--map-control-size) + 4px); height: calc(var(--map-control-size) + 4px); }
.turbine-map-controls .leaflet-top.leaflet-right .geocoder-control-input { height: calc(var(--map-control-size) + 4px); line-height: normal; border: 2px solid #0003; border-radius: 4px; box-shadow: none; padding-right: var(--map-control-size); }
.turbine-map-controls .leaflet-top.leaflet-right .geocoder-control:not(.geocoder-control-expanded) .geocoder-control-input { text-indent: -9999px; }
.turbine-map-controls .leaflet-top.leaflet-right .geocoder-control.geocoder-control-expanded { width: min(275px, calc(100vw - 24px)); }
.turbine-map-controls .leaflet-top.leaflet-right .geocoder-control::after { right: calc(var(--map-control-size) / 2 + 2px); transform: translate(50%, -50%); }
.turbine-map-controls .leaflet-top.leaflet-right .geocoder-control-suggestions { top: calc(var(--map-control-size) + 4px); width: 100%; box-sizing: border-box; }
.turbine-map-controls .turbine-basemap-control,
.turbine-map-controls .turbine-basemap-control.leaflet-control-layers-expanded {
    position: relative; padding: 0; border: 2px solid #0003; border-radius: 4px;
    color: #444; z-index: 1001 !important;
}
.turbine-map-controls .turbine-basemap-control .leaflet-control-layers-toggle {
    display: flex; align-items: center; justify-content: center;
    width: var(--map-control-size); height: var(--map-control-size);
    color: #444; background: #fff;
}
.turbine-map-controls .turbine-basemap-control .leaflet-control-layers-toggle:hover { background-color: #f4f4f4; }
.turbine-map-controls .turbine-basemap-control .leaflet-control-layers-toggle[aria-expanded="true"] {
    color: var(--map-accent, var(--brand-dark-blue)); background-color: var(--map-accent-soft);
}
.turbine-map-controls .turbine-basemap-control .leaflet-control-layers-list {
    position: absolute; top: -2px; right: calc(100% + 8px); min-width: 150px;
    background: #fff; padding: 8px 10px; border: 1px solid #bdcdd9;
    border-radius: 6px; box-shadow: 0 3px 12px #0002;
}
.turbine-map-controls .turbine-basemap-control label { min-height: 30px; display: flex; align-items: center; }
.turbine-map-controls .turbine-basemap-control .leaflet-control-layers-toggle:focus-visible { outline: 3px solid var(--map-accent, var(--brand-dark-blue)); outline-offset: 2px; }
@media (max-width: 700px) {
    .turbine-map-controls { --map-control-size: 40px; }
    .turbine-map-controls .gin-control-zoom { display: none; }
    .turbine-map-controls .turbine-basemap-control label { min-height: 36px; }
}

/* Compact filter groups: native, keyboard-accessible multiselect buttons. */
.turbine-filter-group, .turbine-filter-range { min-width: 0; padding: 0; margin: 6px 0 8px; border: 0; position: relative; }
.turbine-filter-group legend { padding: 0; margin-bottom: 4px; font-size: 12px; color: #596b78; }
.turbine-filter-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.turbine-filter-chip { min-height: 28px; padding: 3px 6px; border: 1px solid #ccd6df; border-radius: 5px; background: #fff; color: #344856; font: 11px/1.3 system-ui, sans-serif; }
.turbine-filter-chip:hover { background: #f0f5f8; }
.turbine-filter-chip[aria-pressed="true"] { border-color: var(--map-accent, var(--brand-dark-blue)); background: var(--map-accent-soft); color: var(--map-accent, var(--brand-dark-blue)); box-shadow: inset 0 0 0 1px var(--map-accent, var(--brand-dark-blue)); }
.turbine-range-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: #596b78; }
.turbine-range-values { display: flex; align-items: center; gap: 5px; }
.turbine-dual-range { position: relative; height: 26px; margin: 1px 9px; --from: 0%; --to: 100%; }
.turbine-dual-range::before { content: ''; position: absolute; height: 4px; top: 11px; left: 0; right: 0; border-radius: 2px; background: linear-gradient(to right, #d7dfe6 var(--from), var(--map-accent, var(--brand-dark-blue)) var(--from), var(--map-accent, var(--brand-dark-blue)) var(--to), #d7dfe6 var(--to)); }
.turbine-dual-range input { appearance: none; -webkit-appearance: none; position: absolute; inset: 0; width: 100%; height: 26px; padding: 0; margin: 0; background: transparent; pointer-events: none; }
.turbine-dual-range input::-webkit-slider-runnable-track { background: transparent; height: 4px; }
.turbine-dual-range input::-moz-range-track { background: transparent; height: 4px; }
.turbine-dual-range input::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border: 2px solid var(--map-accent, var(--brand-dark-blue)); border-radius: 50%; background: #fff; pointer-events: auto; cursor: ew-resize; }
.turbine-dual-range input::-moz-range-thumb { width: 16px; height: 16px; border: 2px solid var(--map-accent, var(--brand-dark-blue)); border-radius: 50%; background: #fff; pointer-events: auto; cursor: ew-resize; }
.turbine-filter-range .turbine-filter-check { min-height: 22px; font-size: 11px; }
.turbine-filter-range .turbine-filter-check input { margin: 0; width: 14px; height: 14px; }
.turbine-filter-actions { position: relative; display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.turbine-filter-actions > .turbine-filter-help { flex: none; }
.turbine-filter-actions .turbine-filter-check { font-size: 11px; }
@media (max-width: 700px) {
    .turbine-filter-chip { min-height: 32px; }
    .turbine-range-header { gap: 4px; }
}
.turbine-range-track-row { display: flex; align-items: center; gap: 8px; }
.turbine-range-track-row .turbine-dual-range { flex: 1; min-width: 0; }
.turbine-range-track-row .turbine-filter-check { flex: 0 0 auto; }
.turbine-search-form .turbine-range-values input[type="number"] { width: 68px; min-height: 27px; height: 27px; padding: 3px 5px; font-size: 12px; }
@media (max-width: 700px) {
    .turbine-search-form .turbine-range-values input[type="number"] { width: 62px; }
}

/* The full ratios appear in the results heading's disclosure. */
.turbine-count-global { color: #596b78; font-size: 12px; }
.turbine-count-help { flex: 0 0 auto; }
.turbine-count-help summary { display: grid; place-items: center; width: 24px; height: 24px; list-style: none; cursor: pointer; color: #596b78; }
.turbine-count-help summary::-webkit-details-marker { display: none; }
.turbine-count-help summary:focus-visible { outline: 2px solid var(--map-accent, var(--brand-dark-blue)); }
.turbine-count-breakdown { position: absolute; top: 32px; left: 10px; z-index: 2; width: min(250px, calc(100% - 20px)); box-sizing: border-box; padding: 9px 12px; border: 1px solid #bdcdd9; border-radius: 5px; background: #fff; box-shadow: 0 2px 10px #0002; font-size: 12px; }
.turbine-count-breakdown p { margin: 4px 0 0; color: #596b78; }
/* The source name shrinks, but the country suffix remains readable. */
.turbine-list-meta > :not(.turbine-list-source) { flex-shrink: 0; }
.turbine-list-source { display: inline-flex; flex: 0 1 auto; min-width: 0; overflow: hidden; }
.turbine-source-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.turbine-source-country { flex: 0 0 auto; white-space: pre; }
.turbine-coordinate-copy { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 32px; height: 32px; padding: 5px; border: 0; border-radius: 5px; background: transparent; color: #596b78; }
.turbine-coordinate-copy:hover { background: #f0f5f8; color: var(--brand-dark-blue); }
.turbine-coordinate-copy[data-copied="true"] { color: var(--map-accent); }
.turbine-coordinate-copy svg, .turbine-sidebar-share svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.turbine-sidebar-share { display: flex; align-items: center; justify-content: center; gap: 8px; }
.turbine-sidebar-share svg { flex: 0 0 auto; }

.turbine-count-help summary svg { display: block; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }

/* Reset stays available next to the collapsed filter disclosure. */
.turbine-filter-toolbar > details > summary { min-height: 30px; padding: 4px 110px 4px 0; box-sizing: border-box; }
.turbine-filter-reset { position: absolute; top: 9px; right: 10px; min-height: 28px; padding: 3px 8px; font-size: 12px; }
.turbine-sidebar input[type="checkbox"], .license-modal-filter input { accent-color: var(--map-accent, var(--brand-dark-blue)); }

/* The selected row keeps its full title; Details shares the metadata line. */
.turbine-sidebar-list li { position: relative; }
.turbine-sidebar-list li.is-selected .turbine-list-meta { min-height: 28px; padding-right: 72px; box-sizing: border-box; }

.turbine-sidebar.is-details .turbine-sidebar-details { padding: 10px 16px 16px; }
.turbine-details-status { display: inline-flex; align-items: center; }
.turbine-details-status-help { position: static; display: inline-block; }
.turbine-details-status-help summary { display: flex; align-items: center; justify-content: center; width: 28px; height: 32px; cursor: pointer; list-style: none; }
.turbine-details-status-help summary::-webkit-details-marker { display: none; }
.turbine-details-status-help svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.turbine-details-status-help p { position: absolute; left: 0; top: 100%; z-index: 2; width: 220px; max-width: 100%; box-sizing: border-box; padding: 8px 10px; margin: 0; background: #fff; border: 1px solid #bdcdd9; border-radius: 5px; box-shadow: 0 2px 10px #0002; font-size: 12px; }
.turbine-coordinate-pair, .turbine-details-id-row { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.turbine-coordinate-pair { white-space: nowrap; font-size: 13px; }
.turbine-details-show { min-height: 32px; padding: 4px 8px; font-size: 12px; }
.turbine-details-outside { margin: 4px 0 0; font-size: 12px; }
.turbine-details-provider { display: block; font-size: 13px; overflow-wrap: anywhere; }
.turbine-details-id { margin: 0; user-select: all; }
.turbine-details-id-row { display: flex; gap: 6px; }

.turbine-details-provider { display: flex; align-items: center; min-height: 28px; }
.turbine-sidebar-header h2:focus { outline: none; }
.turbine-details-provider { color: var(--brand-dark-blue); text-decoration: underline; text-underline-offset: 3px; }
.turbine-details-status-help summary:focus-visible { outline: 2px solid var(--map-accent, var(--brand-dark-blue)); outline-offset: 2px; }

/* One predictable table, including missing metadata and provenance. */
.turbine-details-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 13px; line-height: 18px; }
.turbine-details-label-column { width: 31%; }
.turbine-details-table th, .turbine-details-table td { padding: 7px 3px; border-bottom: 1px solid #e9eef2; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.turbine-details-table th[scope="row"] { color: #596b78; font-weight: 400; }
.turbine-details-table td { position: relative; }
.turbine-details-table .turbine-details-group th { padding: 10px 3px 5px; color: var(--brand-dark-blue); font-size: 14px; font-weight: 650; }
.turbine-details-table tbody:first-of-type .turbine-details-group th { padding-top: 0; }
.turbine-details-table .is-missing { color: #78858e; }
.turbine-details-table .turbine-details-provider { display: inline; min-height: 0; }
.turbine-details-table a { color: var(--brand-dark-blue); text-decoration: underline; text-underline-offset: 3px; }
.turbine-details-table .turbine-details-value-note { display: block; margin-top: 2px; font-size: 11px; color: #596b78; }
.turbine-details-map-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; }
.turbine-details-map-actions a { display: inline-flex; align-items: center; min-height: 32px; }
.turbine-details-table .turbine-details-id-row { gap: 4px; }
.turbine-details-share { margin-top: 10px; }
/* Bare copy glyphs retain a 32px hit target and visible keyboard focus. */
.turbine-coordinate-copy:focus-visible { outline: 2px solid var(--map-accent, var(--brand-dark-blue)); outline-offset: 1px; }

/* Text starts on the same line in every cell. Controls keep their 32px
   hit targets inside the shared vertical cell padding rather than pushing
   the first text line down. Wrapped values remain aligned at their top. */
.turbine-details-table .turbine-details-status,
.turbine-details-table .turbine-coordinate-pair,
.turbine-details-table .turbine-details-id-row,
.turbine-details-table .turbine-details-map-actions { display: flex; align-items: flex-start; min-height: 18px; }
.turbine-details-table .turbine-details-id { min-width: 0; font-size: inherit; line-height: inherit; }
.turbine-details-table .turbine-coordinate-copy,
.turbine-details-table .turbine-details-status-help summary { margin-block: -7px; width: 32px; height: 32px; box-sizing: border-box; flex-shrink: 0; }
.turbine-details-table .turbine-details-status-help { flex: 0 0 32px; }
.turbine-details-table .turbine-details-map-actions { gap: 0 12px; }
.turbine-details-table .turbine-details-show,
.turbine-details-table .turbine-details-map-actions a {
    display: inline-flex; align-items: center; min-height: 32px; margin-block: -7px;
    padding: 0; border: 0; border-radius: 0; background: transparent;
    color: var(--brand-dark-blue); font: inherit; text-decoration: underline; text-underline-offset: 3px;
}
.turbine-details-table .turbine-details-show:hover,
.turbine-details-table .turbine-details-map-actions a:hover { text-decoration-thickness: 2px; }

/* Contextual help keeps the compact filter layout and supports touch/keyboard. */
.turbine-filter-heading { display: flex; align-items: center; gap: 4px; min-height: 18px; margin-bottom: 4px; font-size: 12px; color: #596b78; }
.turbine-filter-help { position: static; color: #596b78; }
.turbine-filter-help summary { width: 24px; height: 24px; margin-block: -3px; }
.turbine-range-label { display: inline-flex; align-items: center; min-width: 0; }
.turbine-filter-help p { left: auto; right: 0; top: 25px; width: 280px; max-width: 100%; box-sizing: border-box; z-index: 5; color: #233342; font-weight: 400; line-height: 1.4; }
.turbine-filter-help summary:focus-visible { outline: 2px solid var(--map-accent, var(--brand-dark-blue)); outline-offset: 1px; }
