.insights-hero {
    background: transparent;
    padding: 2rem 0 2.5rem;
    color: var(--color-text);
}
.insights-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 3rem);
    flex-wrap: wrap;
}
.insights-hero-content {
    flex: 1 1 300px;
    min-width: 0;
    overflow: hidden;
}
.insights-hero-image {
    flex: 0 1 360px;
    max-width: 360px;
}
.insights-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.15));
}
.insights-hero .hero-tag {
    display: inline-block;
    background: rgba(42, 63, 95, 0.08);
    border-left: 3px solid var(--color-accent);
    padding: 0.35rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    color: var(--color-primary-deeper);
}
.insights-hero h1 {
    font-family: var(--font-body);
    font-size: clamp(1.3rem, 2.5vw + 0.75rem, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.75rem;
    color: #1e2a3e;
}
.insights-hero-sub {
    font-size: 1.05rem;
    color: #4a5568;
    max-width: 560px;
    line-height: 1.7;
}
.chart-container {
    position: relative;
    width: 100%;
    padding: 1rem 0;
}
.chart-container canvas {
    max-height: 400px;
}
.chart-container-tall canvas {
    max-height: none;
}
.chart-container-sm canvas {
    max-height: 600px;
}
.band-metro { color: #2a3f5f; }
.band-adjacent { color: #9e6318; }
.band-rural { color: #3d7aaa; }
.band-row-metro td { background: #edf1f7; }
.band-row-adjacent td { background: #fdf5eb; }
.band-row-rural td { background: #edf4fa; }
.band-subtotal td {
    font-weight: 700;
    border-top: 2px solid var(--color-border);
}
.insights-source {
    text-align: center;
    padding: 1rem 0 0;
    font-size: 0.75rem;
    color: var(--color-text-light);
}
.methodology-list {
    list-style: none;
    padding: 0;
}
.methodology-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border-light);
    font-size: 0.88rem;
}
.methodology-list li:last-child { border-bottom: 0; }
.methodology-list strong {
    display: inline-block;
    min-width: 140px;
    color: var(--color-text);
}
.insights-filter-desktop {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.insights-filter-mobile {
    display: none;
}
.insights-filter-mobile-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.insights-filter-mobile-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.insights-filter-mobile-group label {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    margin: 0;
}
.insights-filter-mobile-group select {
    padding: 0.45rem 2rem 0.45rem 0.75rem;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: var(--font-body);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: #fff;
    color: var(--color-text);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
}
.insights-filter-mobile-group select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px rgba(228,164,30,0.2);
}
.spending-map-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    border-radius: 8px;
    border: 1px solid var(--color-border);
    overflow: hidden;
}
#spending-map {
    position: absolute;
    inset: 0;
    height: 100% !important;
    width: 100% !important;
    border-radius: 8px;
    z-index: 0;
}
#spending-map .leaflet-container {
    background: #fff;
}
#spending-map path {
    cursor: pointer;
}
.map-legend {
    padding: 0.75rem 1rem;
    background: #fff;
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
    font-size: 0.75rem;
    line-height: 1.6;
}
.map-legend-title {
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--color-text);
}
.map-legend i {
    width: 16px;
    height: 12px;
    display: inline-block;
    margin-right: 4px;
    vertical-align: middle;
    border-radius: 2px;
}
@media (max-width: 768px) {
    .insights-hero-inner { flex-direction: column; gap: 1.5rem; }
    .insights-hero-image { display: none; }
    .insights-hero h1 { font-size: 1.8rem; }
    .insights-filter-desktop { display: none !important; }
    .insights-filter-mobile { display: block !important; }
}
/* Admin viewport toggle support */
html.force-mobile .insights-filter-desktop { display: none !important; }
html.force-mobile .insights-filter-mobile { display: block !important; }
html.force-mobile .insights-hero-inner { flex-direction: column; gap: 1.5rem; }
html.force-mobile .insights-hero-image { display: none; }
html.force-mobile .insights-hero h1 { font-size: 1.8rem; }
@media (max-width: 640px) {
    .insights-hero { padding: 1rem 0 1.25rem; }
    .insights-hero h1 { font-size: 1.4rem; }
    .insights-hero-sub { font-size: 0.88rem; }
    .insights-hero .hero-tag { font-size: 0.7rem; margin-bottom: 0.75rem; }
    .chart-container canvas { max-height: 260px; }
    .chart-container-sm canvas { max-height: 220px; }
    .methodology-list strong { min-width: auto; display: block; margin-bottom: 0.15rem; }
    .metro-stat-box { padding: 1rem 1.15rem !important; }
    .metro-stat-box .stat-value-lg { font-size: 1.35rem !important; }
    .metro-stat-box .stat-detail { font-size: 0.72rem !important; }
    .rucc-explainer { padding: 0.75rem 0.85rem !important; font-size: 0.82rem !important; }
    .rucc-explainer table { font-size: 0.78rem !important; }
    .insights-filter-mobile-row { gap: 0.75rem; }
    .insights-filter-mobile-group select { font-size: 0.82rem; padding: 0.4rem 1.8rem 0.4rem 0.6rem; }
}
/* Print styles */
@media print {
    .navbar, .user-subnav, #admin-viewport-bar, .footer,
    .insights-filter-desktop, .insights-filter-mobile,
    .insights-hero-image { display: none !important; }
    .insights-hero { padding: 0.5rem 0 1rem; }
    body { background: #fff; }
    .card { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; }
}
