.radar-page .page-header {
    justify-content: flex-start;
}

.radar-page h1 {
    margin-bottom: 8px;
}

.radar-facets {
    margin: 32px 0 18px;
}

.radar-facets > .radar-facet + .radar-facet {
    margin-top: 22px;
}

.radar-facet-dropdowns {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 22px;
}

.radar-facet-dropdowns .radar-facet {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
}

.radar-facet h2,
.radar-results h2 {
    margin: 0 0 5px;
    color: #1f2937;
    font-size: 17px;
    line-height: 1.4;
}

.radar-facet-links {
    margin: 0;
    line-height: 1.9;
}

.radar-period-prefix {
    color: #374151;
    font-weight: 600;
}

.radar-facet-links a {
    padding: 6px 8px;
    border-radius: 3px;
    color: #374151;
    font-size: 14px;
    line-height: 1.35;
    text-decoration: none;
}

.radar-facet-links a:hover,
.radar-facet-links a:focus-visible {
    background: #f8fafc;
    color: #1e3a8a;
    outline: none;
}

.radar-facet-links a[aria-current="page"] {
    border-radius: 3px;
    background: #dbeafe;
    color: #1e3a8a;
    font-weight: 600;
    padding: 6px 8px;
    text-decoration: none;
}

.radar-disclosure summary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 5px 32px 5px 9px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    background: #fff;
    color: #374151;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    list-style: none;
}

.radar-disclosure summary::-webkit-details-marker {
    display: none;
}

.radar-disclosure summary::after {
    content: "⌵";
    position: absolute;
    /* The glyph's font box is asymmetric, so offset it for optical centering. */
    top: calc(50% - 2px);
    right: 9px;
    color: #6b7280;
    font-size: 16px;
    line-height: 1;
    transform: translateY(-50%) rotate(0deg);
    transform-origin: center;
}

.radar-disclosure[open] summary {
    position: relative;
    z-index: 6;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.radar-disclosure[open] summary::after {
    top: calc(50% + 2px);
    transform: translateY(-50%) rotate(180deg);
}

.radar-disclosure summary:hover,
.radar-disclosure summary:focus-visible {
    border-color: #93c5fd;
    color: #1e3a8a;
    outline: none;
}

.radar-disclosure summary:hover::after,
.radar-disclosure summary:focus-visible::after {
    color: #1e3a8a;
}

.radar-disclosure summary:focus-visible {
    box-shadow: 0 0 0 2px #dbeafe;
}

.radar-disclosure-menu {
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    z-index: 5;
    display: grid;
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 5px;
    border: 1px solid #d1d5db;
    border-radius: 0 0 5px 5px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}

.radar-disclosure-menu .radar-facet-reset {
    margin-bottom: 3px;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 0;
    color: #1e3a8a;
    font-weight: 500;
}

.radar-disclosure-menu a {
    padding: 6px 8px;
    border-radius: 3px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    text-decoration: none;
}

.radar-disclosure-menu a:hover,
.radar-disclosure-menu a:focus-visible {
    background: #f8fafc;
    color: #1e3a8a;
    outline: none;
}

.radar-disclosure-menu a[aria-current="page"] {
    background: #dbeafe;
    color: #1e3a8a;
    font-weight: 600;
}

.radar-disclosure-menu .radar-facet-count {
    font-weight: 400;
}

.radar-placeholder,
.radar-status {
    color: #6b7280;
}

.radar-status {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
}

.radar-results-list {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid #e5e7eb;
}

.radar-result {
    padding: 18px 0;
    border-bottom: 1px solid #e5e7eb;
}

.radar-result-skeleton {
    pointer-events: none;
}

.radar-skeleton-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.radar-skeleton-line {
    display: block;
    height: 12px;
    border-radius: 4px;
    background: #e5e7eb;
    animation: radar-skeleton-pulse 1.4s ease-in-out infinite;
}

.radar-skeleton-name {
    width: 55%;
    height: 15px;
}

.radar-skeleton-date {
    width: 72px;
}

.radar-skeleton-address {
    width: 42%;
    margin-top: 7px;
}

.radar-skeleton-nip {
    width: 110px;
    margin-top: 11px;
}

.radar-skeleton-pkd {
    width: 68%;
    margin-top: 11px;
}

@keyframes radar-skeleton-pulse {
    0%,
    100% {
        opacity: 0.45;
    }

    50% {
        opacity: 0.9;
    }
}

@media (prefers-reduced-motion: reduce) {
    .radar-skeleton-line {
        animation: none;
    }
}

.radar-result-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
}

.radar-result-name {
    min-width: 0;
    color: #111827;
    font-size: 16px;
    line-height: 1.35;
}

.radar-result-date {
    flex: none;
    color: #4b5563;
    font-size: 14px;
    font-weight: 600;
}

.radar-result-primary-pkd,
.radar-result-contacts {
    margin: 7px 0 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.4;
}

.radar-result-primary-pkd {
    display: flex;
    align-items: baseline;
    min-width: 0;
}

.radar-result-identity {
    margin: 3px 0 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.4;
}

.radar-result-address,
.radar-result-nip {
    display: block;
}

.radar-result-nip {
    margin-top: 9px;
    margin-bottom: 2px;
}

.radar-result-pkd-code {
    flex: none;
    color: #374151;
    font-weight: 500;
}

.radar-result-pkd-separator {
    flex: none;
    margin: 0 9px;
}

.radar-result-pkd-name {
    min-width: 0;
}

.radar-pkd-disclosure {
    margin-top: 7px;
}

.radar-pkd-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    cursor: pointer;
    list-style: none;
}

.radar-pkd-summary::-webkit-details-marker {
    display: none;
}

.radar-pkd-summary .radar-result-primary-pkd {
    margin-top: 0;
}

.radar-pkd-summary:hover .radar-pkd-toggle,
.radar-pkd-summary:focus-visible .radar-pkd-toggle {
    color: #1e3a8a;
}

.radar-pkd-summary:focus-visible {
    outline: 2px solid #1e3a8a;
    outline-offset: 3px;
}

.radar-pkd-disclosure:not([open]) .radar-result-pkd-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.radar-pkd-toggle {
    display: inline-flex;
    align-items: center;
    flex: none;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.4;
}

.radar-pkd-toggle::after {
    content: "";
    width: 6px;
    height: 6px;
    margin-left: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(-45deg);
    transform-origin: center;
    transition: transform 120ms ease;
}

.radar-pkd-disclosure[open] .radar-pkd-toggle::after {
    transform: rotate(45deg);
}

.radar-additional-pkds {
    margin: 10px 0 0;
    padding: 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.4;
    list-style: none;
}

.radar-additional-pkd + .radar-additional-pkd {
    margin-top: 6px;
}

.radar-additional-pkd-code {
    font-weight: 500;
}

.radar-result-contacts {
    color: #6b7280;
}

.radar-result-contacts-label {
    color: #4b5563;
    font-weight: 500;
}

.radar-contact-copy {
    position: relative;
    padding: 0;
    border: 0;
    border-bottom: 1px dotted #9ca3af;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
}

.radar-contact-copy:hover,
.radar-contact-copy:focus-visible {
    border-bottom-color: #1e3a8a;
    color: #1e3a8a;
    outline: none;
}

.radar-contact-copy::after {
    content: attr(data-copy-tooltip);
    position: absolute;
    bottom: calc(100% + 7px);
    left: 50%;
    z-index: 4;
    display: none;
    padding: 5px 7px;
    border-radius: 4px;
    background: #111827;
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
    pointer-events: none;
    transform: translateX(-50%);
    white-space: nowrap;
}

.radar-contact-copy:hover::after,
.radar-contact-copy:focus-visible::after,
.radar-contact-copy[data-copy-state="copied"]::after,
.radar-contact-copy[data-copy-state="failed"]::after {
    display: block;
}

.radar-status.is-error {
    color: #991b1b;
}

.radar-pagination {
    margin: 22px 0 4px;
    text-align: center;
}

.radar-load-more {
    padding: 8px 15px;
    border: 1px solid #1e3a8a;
    border-radius: 5px;
    background: #fff;
    color: #1e3a8a;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
}

.radar-load-more:hover,
.radar-load-more:focus-visible {
    background: #eff6ff;
}

.radar-load-more:focus-visible {
    outline: 2px solid #1e3a8a;
    outline-offset: 2px;
}

.radar-load-more:disabled {
    border-color: #9ca3af;
    color: #6b7280;
    cursor: wait;
}

.radar-results-limit {
    margin: 0 auto;
    max-width: 560px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.45;
}

@media (max-width: 600px) {
    .radar-facets {
        margin: 26px 0 16px;
    }

    .radar-facet-dropdowns {
        display: grid;
    }

    .radar-facet-dropdowns .radar-facet,
    .radar-disclosure summary {
        width: 100%;
    }

    .radar-disclosure-menu {
        width: 100%;
        max-width: none;
    }

    .radar-result-header,
    .radar-pkd-summary {
        gap: 12px;
    }
}
