/**
 * Insights index — Apple-standard layout
 * Clean hierarchy, generous spacing, theme variables (In-Hand standard)
 */

.insights-index {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 40px) clamp(20px, 5vw, 40px) 80px;
    color: var(--theme-text-primary);
    background: var(--theme-bg-primary);
}

/* Hero: one statement, one line */
.insights-index-hero {
    padding: clamp(48px, 10vw, 80px) 0 clamp(40px, 8vw, 64px);
    text-align: center;
}

.insights-index-hero-title {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin: 0 0 0.5em;
    color: var(--theme-text-primary);
}

.insights-index-hero-sub {
    font-size: clamp(1.0625rem, 2vw, 1.25rem);
    font-weight: 400;
    line-height: 1.5;
    color: var(--theme-text-secondary);
    margin: 0 0 0.5em;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.insights-index-hero-meta {
    font-size: 0.875rem;
    color: var(--theme-text-muted);
    margin: 0;
}

/* National card: single prominent row */
.insights-index-national {
    margin-bottom: clamp(40px, 8vw, 64px);
}

.insights-index-national-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--theme-bg-secondary);
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--theme-text-primary);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.insights-index-national-card:hover {
    background: var(--theme-bg-tertiary);
    border-color: var(--theme-border-hover);
}

.insights-index-national-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--theme-text-muted);
}

.insights-index-national-title {
    flex: 1;
    font-size: 1.125rem;
    font-weight: 500;
}

.insights-index-national-arrow {
    font-size: 1.25rem;
    color: var(--theme-primary);
    opacity: 0.8;
}

/* Section */
.insights-index-section {
    margin-bottom: clamp(40px, 8vw, 56px);
}

.insights-index-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.insights-index-section-title {
    font-size: clamp(1.5rem, 3vw, 1.75rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0;
    color: var(--theme-text-primary);
}

/* Search */
.insights-index-search-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.insights-index-search {
    width: 220px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--theme-text-primary);
    background: var(--theme-bg-primary);
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    transition: border-color 0.2s ease;
}

.insights-index-search::placeholder {
    color: var(--theme-text-muted);
}

.insights-index-search:focus {
    outline: none;
    border-color: var(--theme-primary);
}

.insights-index-search-count {
    font-size: 0.8125rem;
    color: var(--theme-text-muted);
}

/* City grid: compact, scannable */
.insights-index-city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.5rem;
}

.insights-index-city-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    text-decoration: none;
    color: var(--theme-text-primary);
    background: var(--theme-bg-secondary);
    border: 1px solid var(--theme-border);
    border-radius: 10px;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.insights-index-city-card:hover {
    background: var(--theme-bg-tertiary);
    border-color: var(--theme-border-hover);
}

.insights-index-city-name {
    font-size: 0.9375rem;
    font-weight: 500;
}

.insights-index-city-arrow {
    font-size: 1rem;
    color: var(--theme-primary);
    opacity: 0.6;
}

.insights-index-city-card.hidden {
    display: none;
}

.insights-index-no-results {
    padding: 2rem;
    text-align: center;
    color: var(--theme-text-muted);
    font-size: 0.9375rem;
    margin: 0;
    border: 1px solid var(--theme-border);
    border-radius: 12px;
}

.insights-index-no-results.hidden {
    display: none;
}

/* CTC grid: same style, fewer items */
.insights-index-ctc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.insights-index-ctc-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--theme-bg-secondary);
    border: 1px solid var(--theme-border);
    border-radius: 10px;
    text-decoration: none;
    color: var(--theme-text-primary);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.insights-index-ctc-card:hover {
    background: var(--theme-bg-tertiary);
    border-color: var(--theme-border-hover);
}

.insights-index-ctc-title {
    font-size: 1rem;
    font-weight: 500;
}

/* Empty state */
.insights-index-empty {
    text-align: center;
    color: var(--theme-text-secondary);
    font-size: 1rem;
    padding: 3rem 1rem;
    margin: 0;
}

/* CTA */
.insights-index-cta {
    text-align: center;
    padding: clamp(48px, 8vw, 64px) 0;
    border-top: 1px solid var(--theme-border);
}

.insights-index-cta-title {
    font-size: clamp(1.5rem, 3vw, 1.75rem);
    font-weight: 600;
    margin: 0 0 0.25em;
    color: var(--theme-text-primary);
}

.insights-index-cta-sub {
    font-size: 1rem;
    color: var(--theme-text-secondary);
    margin: 0 0 1.5rem;
}

.insights-index-cta-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    background: var(--theme-primary);
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
}

.insights-index-cta-btn:hover {
    background: var(--theme-primary-hover);
    transform: translateY(-1px);
}

/* Header overrides for index (minimal) */
.insights-index .insights-header {
    border-bottom: 1px solid var(--theme-border);
}

.insights-index .insights-main-title {
    font-size: 1.375rem;
}
