/* Data & Report listing additions (the base card design lives in data-report.css). */
.data-report-page [hidden] {
    display: none !important;
}

/* The section reveal animation leaves a transform on every section, so each one is its own stacking
   layer and the cards below would cover the filter dropdowns. Keep the search bar above them. */
.data-report-page .data-report-search-section {
    position: relative;
    z-index: 4;
}

.data-report-page .data-report-filter-group .dropdown-wrap {
    position: relative;
}

.data-report-page .data-report-filter-button {
    transition: border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.data-report-page .data-report-filter-button:hover,
.data-report-page .data-report-filter-button[aria-expanded="true"] {
    border-color: #3ba295;
    box-shadow: 0 0 0 3px #3ba2951f;
}

.data-report-page .data-report-filter-button[aria-expanded="true"] .filter-caret {
    transform: rotate(0deg);
}

/* Dropdowns fade and slide in instead of popping (the shared rule hides them with display: none). */
.data-report-page .data-report-filter-group .dropdown {
    visibility: visible;
    opacity: 1;
    transform: translateY(0) scale(1);
    transform-origin: top center;
    transition: opacity 180ms ease, transform 240ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
}

.data-report-page .data-report-filter-group .dropdown.is-collapsed {
    display: flex;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    pointer-events: none;
    transition: opacity 140ms ease, transform 180ms ease, visibility 0s 180ms;
}

.data-report-page .data-report-filter-group .checkbox-label {
    padding: 2px 4px;
    border-radius: 6px;
    transition: background-color 140ms ease, color 140ms ease;
}

.data-report-page .data-report-filter-group .checkbox-label:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.data-report-page .data-report-filter-group .custom-checkbox {
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.data-report-page .data-report-filter-group .custom-checkbox.checked {
    animation: report-check-pop 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes report-check-pop {
    0% { transform: scale(0.7); }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.data-report-page .data-report-search-bar input {
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.data-report-page .data-report-search-bar input:focus {
    border-color: #3ba295;
    box-shadow: 0 0 0 3px #3ba2951f;
}

/* Cards that come back after a search or filter change fade up, one after another. */
.data-report-page .data-report-card.is-entering {
    animation: report-card-in 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: var(--report-delay, 0ms);
}

@keyframes report-card-in {
    from { opacity: 0; transform: translateY(14px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.data-report-empty:not([hidden]) {
    animation: report-card-in 300ms ease both;
}

.data-report-page .data-report-filter-button.active {
    border-color: #3ba295;
    color: #047857;
}

/* The filters sit at the right edge of the bar: open the last one leftwards so it stays on screen. */
.data-report-page .data-report-filter-group .dropdown-wrap:last-child .dropdown {
    left: auto;
    right: 0;
}

.data-report-page .data-report-filter-group .dropdown {
    max-height: 420px;
    overflow-y: auto;
}

.data-report-page .data-report-card {
    position: relative;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.data-report-page .data-report-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px -14px rgba(15, 23, 42, 0.2);
}

.data-report-card-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
}

.data-report-page .data-report-card-image {
    background: #e2e8f0;
}

.data-report-page .data-report-card-image > img {
    transition: transform 400ms ease;
}

.data-report-page .data-report-card:hover .data-report-card-image > img {
    transform: scale(1.04);
}

.data-report-empty {
    padding: 32px 0;
    color: #64748b;
    text-align: center;
}

.data-report-case-studies {
    padding-top: 0;
}

.data-report-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.data-report-section-head h2 {
    margin: 4px 0 0;
    color: #0f172a;
    font-size: 32px;
}

.data-report-section-head a {
    flex: none;
    color: #059669;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

#industry-reports,
#case-studies,
#data-room {
    scroll-margin-top: 80px;
}

/* Report detail. */
.report-single {
    background: #eef2f8;
}

.report-hero .hero-inner {
    padding-bottom: 56px;
}

.report-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 16px;
}

.report-hero-tags span {
    padding: 4px 12px;
    border-radius: 9999px;
    background: #16a34a;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.report-hero-tags .is-members {
    background: #ffffff26;
}

.report-hero-title {
    max-width: 900px;
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.2;
}

.report-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 0;
    padding: 0;
    color: #cbd5e1;
    font-size: 14px;
    list-style: none;
}

.report-container {
    width: calc(100% - (2 * var(--bambu-container-gutter, 24px)));
    max-width: var(--bambu-container-max-width, 1290px);
    margin-inline: auto;
}

.report-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 24px;
    align-items: start;
    padding: 48px 0 64px;
}

.report-cover {
    margin-bottom: 24px;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
}

.report-cover img {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: contain;
}

.report-card,
.report-download,
.report-side-card {
    padding: 32px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
}

.report-card h2,
.report-download h2 {
    margin: 0 0 16px;
    color: #0f172a;
    font-size: 22px;
}

.report-content {
    color: #334155;
    font-size: 16px;
    line-height: 1.7;
}

.report-content * {
    font-family: inherit !important;
}

.report-content p,
.report-content ul,
.report-content ol {
    margin: 0 0 14px;
}

.report-content ul,
.report-content ol {
    padding-left: 22px;
}

.report-content ul {
    list-style: disc;
}

.report-content ol {
    list-style: decimal;
}

.report-content li {
    margin-bottom: 6px;
}

.report-content h2,
.report-content h3,
.report-content h4 {
    margin: 24px 0 10px;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.4;
}

.report-content a {
    color: #047857;
}

.report-content img {
    max-width: 100%;
    height: auto;
}

.report-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.report-facts span {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.report-facts p {
    margin: 4px 0 0;
    color: #0f172a;
    font-size: 14px;
}

.report-side {
    position: sticky;
    top: 24px;
    display: grid;
    gap: 16px;
}

.report-download {
    position: relative;
    overflow: hidden;
}

.report-download::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #43b263 0%, #3ba295 25%, #3b7ab5 55%, #7147a7 80%, #814272 100%);
}

.report-download-note {
    margin: 0 0 16px;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

.report-download-form {
    display: grid;
    gap: 12px;
}

.report-download-form label {
    display: grid;
    gap: 6px;
    color: #0f172a;
    font-size: 13px;
    font-weight: 600;
}

.report-download-form input[type="text"],
.report-download-form input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font: inherit;
    font-weight: 400;
}

.report-download-form input:focus {
    border-color: #35ad68;
    outline: 2px solid #35ad6833;
}

.report-download-consent {
    display: flex !important;
    gap: 10px;
    align-items: flex-start;
    color: #475569 !important;
    font-weight: 400 !important;
    line-height: 1.5;
}

.report-download-consent input {
    margin-top: 3px;
    accent-color: #35ad68;
}

.report-download-button {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 13px 20px;
    border: 0;
    border-radius: 9999px;
    background: linear-gradient(90deg, #43b263 0%, #3b7ab5 50%, #814272 100%);
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 160ms ease, transform 160ms ease;
}

.report-download-button:hover {
    transform: translateY(-1px);
}

.report-download-button:disabled {
    cursor: wait;
    opacity: 0.6;
}

.report-download-secondary {
    display: block;
    margin-top: 12px;
    color: #047857;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.report-download-alt {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 13px;
    text-align: center;
}

.report-download-alt a {
    color: #047857;
    font-weight: 600;
}

.report-download-message {
    margin: 14px 0 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: #ecfdf5;
    color: #047857;
    font-size: 14px;
}

.report-download-message.is-error {
    background: #fef2f2;
    color: #b91c1c;
}

.report-side-card h3 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 16px;
}

.report-side-card p {
    margin: 0 0 12px;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

.report-side-card a {
    color: #047857;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.report-related {
    padding-bottom: 80px;
}

.report-related h2 {
    margin: 0 0 24px;
    color: #0f172a;
    font-size: 24px;
}

.report-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.report-related-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
    color: inherit;
    text-decoration: none;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.report-related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px -14px rgba(15, 23, 42, 0.2);
}

.report-related-image {
    display: block;
    height: 160px;
    background: #e2e8f0;
}

.report-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.report-related-body {
    display: grid;
    gap: 6px;
    padding: 18px 20px 22px;
}

.report-related-body small {
    color: #059669;
    font-size: 12px;
    font-weight: 700;
}

.report-related-body strong {
    color: #0f172a;
    font-size: 16px;
    line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
    .data-report-page .data-report-card.is-entering,
    .data-report-page .data-report-filter-group .custom-checkbox.checked,
    .data-report-empty:not([hidden]) {
        animation: none;
    }

    .data-report-page .data-report-filter-group .dropdown,
    .data-report-page .data-report-filter-group .dropdown.is-collapsed,
    .data-report-page .data-report-card,
    .data-report-page .data-report-card-image > img,
    .report-related-card,
    .report-download-button {
        transition: none;
    }
}

@media (max-width: 1024px) {
    .report-layout {
        grid-template-columns: 1fr;
    }

    .report-side {
        position: static;
    }

    .report-related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .report-card,
    .report-download,
    .report-side-card {
        padding: 24px;
    }

    .report-facts {
        grid-template-columns: 1fr;
    }

    .data-report-section-head {
        flex-direction: column;
        align-items: flex-start;
    }
}
