/* Search results page only */

/* Whole box is the link; card fills the link area */
.search-result-card-link {
    display: block;
    width: 100%;
    color: inherit;
}
.search-result-card-link:hover {
    color: inherit;
}

/* Card: less padding, no movement on hover */
.search-result-dataset-card .card-body {
    padding: 0.75rem 1rem;
    font-size: 1rem;
}
.search-result-dataset-card .card-title {
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.3;
}
.search-result-dataset-card .card-text {
    font-size: 1rem;
    line-height: 1.5;
}
/* Bootstrap .small on matching sections (~0.875em); bump for readability */
.search-result-dataset-card .small,
.search-result-dataset-card ul.small {
    font-size: 0.9375rem !important;
    line-height: 1.45;
}
.search-result-dataset-card ul.small li {
    margin-bottom: 0.35rem;
}
.search-result-dataset-card,
.search-result-dataset-card:hover,
a:hover .search-result-dataset-card {
    transform: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: none;
}

/* Highlighted search terms in result text */
.search-highlight {
    background-color: #fff3cd;
    text-decoration: underline;
    padding: 0 1px;
}

.search-results-search-wrapper {
    position: relative;
    z-index: 1020;
}
.search-results-search-wrapper .hero-search {
    margin-left: 0;
    margin-right: auto;
}
.search-results-search-wrapper .search-controls {
    width: 100%;
    overflow: visible;
}

/* Result count line above tabs */
.search-results-count {
    font-size: 1rem;
}

/* Tabs: larger tap targets and readable labels */
.search-results-tabs {
    font-size: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}
.search-results-tabs .nav-link {
    color: #6c757d;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}
.search-results-tabs .nav-link:hover {
    color: #495057;
    background: none;
    border-color: transparent;
}
.search-results-tabs .nav-link.active {
    color: #000;
    background: none;
    border-color: transparent transparent #000 transparent;
    font-weight: 500;
}
.search-results-tabs .nav-link.active:hover {
    background: none;
    border-color: transparent transparent #000 transparent;
}

/* All-tab variable rows: clearer split between variable and assessment type */
.search-variable-link {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.search-variable-name {
    font-weight: 500;
}
.search-assessment-badge {
    display: inline-block;
    padding: 0 0.45rem;
    border-radius: 999px;
    border: 1px solid #d4e1ff;
    background: #eef4ff;
    color: #2f4b9a;
    font-size: 0.75rem;
    line-height: 1.5;
    vertical-align: middle;
}

.search-construct-grid {
    display: block;
    max-width: 52rem;
}

/* Override global .card / .card:hover from main.css (scale + transition). */
.card.search-construct-card {
    border: 1px solid #dfe3e8;
    border-radius: 0.625rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 14px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    transform: none;
    transition: none;
}

.card.search-construct-card:hover,
a:hover .card.search-construct-card {
    transform: none;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 14px rgba(15, 23, 42, 0.04);
}

.search-construct-card .card-body {
    padding: 0;
}

.search-construct-card-header {
    border-bottom: 1px solid #eef1f5;
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}

.search-construct-header-row,
.search-construct-header-actions {
    gap: 0.5rem;
}

.search-construct-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.search-construct-title:hover {
    color: #1e3a5f;
    text-decoration: underline;
}

.search-construct-meta {
    font-size: 0.9375rem;
    color: #64748b;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.search-construct-hierarchy-btn {
    font-weight: 600;
    font-size: 0.9375rem;
    white-space: nowrap;
    border-radius: 0.375rem;
    transform: none !important;
    transition: none !important;
}

.card.search-construct-card .search-construct-hierarchy-btn:hover {
    transform: none !important;
}

.search-construct-panel {
    border: 1px solid #e8ecf1;
    border-radius: 0.5rem;
    background: #fff;
}

.search-construct-panel--description {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.search-construct-panel-title {
    margin: 0 0 0.65rem 0;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #475569;
}

.search-construct-description {
    color: #334155;
    font-size: 1.0625rem;
    line-height: 1.55;
}

.search-construct-muted-line {
    font-size: 0.9375rem;
    line-height: 1.45;
}

.search-construct-dataset-link,
.search-construct-variable-link {
    color: #2f4b9a;
    font-weight: 500;
    font-size: 1rem;
}

.card.search-construct-card .search-construct-list,
.card.search-construct-card .search-construct-list.small {
    font-size: 1rem !important;
    line-height: 1.45;
}

.search-construct-dataset-link:hover,
.search-construct-variable-link:hover {
    color: #1f3a82;
    text-decoration: underline;
}

.search-construct-list li:last-child {
    margin-bottom: 0 !important;
}

