/* County Spotlight Page */
.spotlight-hero {
    background: transparent;
    padding: 2rem 0 2.5rem;
    color: var(--color-text);
}
.spotlight-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 3rem);
    flex-wrap: wrap;
}
.spotlight-hero-content {
    flex: 1 1 300px;
    min-width: 0;
}
.spotlight-hero-image {
    flex: 0 1 360px;
    max-width: 360px;
}
.spotlight-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.15));
}
.spotlight-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);
}
.spotlight-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;
}
.spotlight-hero-sub {
    font-size: 1.05rem;
    color: #4a5568;
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}
.spotlight-search-card {
    max-width: min(480px, 100%);
    background: #e8ecf2;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    padding: clamp(1rem, 2vw, 1.5rem);
}

/* Fiscal Year Filter Bar */
.spotlight-filter-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.spotlight-filter-label {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.spotlight-filter-buttons {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}
.spotlight-filter-buttons .btn {
    font-size: 0.78rem;
    padding: 0.3rem 0.65rem;
}
.spotlight-filter-mobile {
    display: none;
}
.spotlight-filter-mobile 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;
}

/* Demographics Stats Grid */
.spotlight-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1rem;
}
.spotlight-stat-box {
    background: var(--color-bg);
    border-radius: var(--radius);
    padding: 1rem 1.15rem;
    text-align: center;
    border: 1px solid var(--color-border-light);
}
.spotlight-stat-value {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-primary-deeper);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}
.spotlight-stat-value.text-danger {
    color: #c53030;
}
.spotlight-stat-label {
    font-size: 0.75rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

/* Tables */
.spotlight-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.spotlight-table thead th {
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-light);
    padding: 0.6rem 0.75rem;
    border-bottom: 2px solid var(--color-border);
}
.spotlight-table tbody td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--color-border-light);
    vertical-align: top;
}
.spotlight-table tbody tr:last-child td {
    border-bottom: 0;
}
.spotlight-table tbody tr:hover td {
    background: rgba(42, 63, 95, 0.03);
}

/* Chart container */
.spotlight-chart-container {
    position: relative;
    width: 100%;
    height: 300px;
}

/* Grants list */
.spotlight-grants-list {
    padding: 0 0.75rem;
}
.spotlight-grant-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border-light);
}
.spotlight-grant-item:last-child {
    border-bottom: 0;
}
.spotlight-grant-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-primary-deeper);
    text-decoration: none;
    line-height: 1.35;
}
.spotlight-grant-title:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}
.spotlight-grant-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.78rem;
    color: var(--color-text-light);
    margin-top: 0.25rem;
}
.spotlight-grant-meta span + span::before {
    content: '\00B7';
    margin-right: 0.5rem;
}
.spotlight-grant-meta .badge + span::before,
.spotlight-grant-meta span + .badge::before {
    content: '';
    margin-right: 0;
}
.spotlight-grant-desc {
    font-size: 0.82rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-top: 0.3rem;
}

/* Card header */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem 0.5rem;
}
.card-title {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-text);
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .spotlight-hero-inner { flex-direction: column; gap: 1.5rem; }
    .spotlight-hero-image { display: none; }
    .spotlight-hero h1 { font-size: 1.8rem; }
    .spotlight-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .spotlight-chart-container { height: 250px; }
    .spotlight-filter-buttons { display: none; }
    .spotlight-filter-mobile { display: block; }
}
@media (max-width: 640px) {
    .spotlight-hero { padding: 1rem 0 1.25rem; }
    .spotlight-hero h1 { font-size: 1.4rem; }
    .spotlight-hero-sub { font-size: 0.88rem; }
    .spotlight-hero .hero-tag { font-size: 0.7rem; margin-bottom: 0.75rem; }
    .spotlight-stats-grid { grid-template-columns: 1fr; gap: 0.75rem; }
    .spotlight-stat-box { padding: 0.75rem 1rem; }
    .spotlight-stat-value { font-size: 1.15rem; }
    .spotlight-table { font-size: 0.82rem; }
    .spotlight-table thead th,
    .spotlight-table tbody td { padding: 0.5rem 0.5rem; }
    .spotlight-chart-container { height: 220px; }
}

/* Print */
@media print {
    .spotlight-hero-image,
    .spotlight-search-card,
    .spotlight-filter-bar { display: none !important; }
    .spotlight-hero { padding: 0.5rem 0 1rem; }
    .card { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; }
}
