/* Sector, statistics and ranking pages (moved out of sectors/detail.html so
   every page using .sector-page gets it). */
.sector-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}
.sector-breadcrumbs {
    font-size: 0.85rem;
    color: var(--dusty-grape);
    margin-bottom: 1.5rem;
}
.sector-breadcrumbs a { color: var(--dusty-grape); text-decoration: none; }
.sector-breadcrumbs a:hover { color: var(--space-indigo); }
.breadcrumb-sep { margin: 0 0.4rem; }
.breadcrumb-current { color: var(--space-indigo); }

/* <header class="sector-header"> is a page heading, not the site header: undo the
   global `header` rule (dark gradient, sticky) that hid the h1 on these pages. */
header.sector-header {
    position: static;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 0;
    padding: 0;
    z-index: auto;
}
header.sector-header::before,
header.sector-header::after { display: none; }
.sector-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--space-indigo);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.sector-subtitle {
    color: var(--dusty-grape);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 700px;
}

/* Stats */
.sector-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}
.sector-coverage {
    font-size: 0.85rem;
    color: var(--dusty-grape);
    line-height: 1.5;
    margin: -1.5rem 0 2.5rem;
}
.sector-stat {
    flex: 1;
    min-width: 100px;
    background: var(--seashell);
    border: 1px solid var(--lilac-ash);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}
.sector-stat-highlight {
    border-color: var(--success);
    background: rgba(74,124,89,0.05);
}
.sector-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--space-indigo);
}
.sector-stat-highlight .sector-stat-value { color: var(--success); }
.sector-stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--dusty-grape);
    margin-top: 0.2rem;
}

/* Columns */
.sector-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
@media (max-width: 768px) {
    .sector-columns { grid-template-columns: 1fr; }
}

/* Sections */
.sector-section { margin-bottom: 1.5rem; }
.sector-section h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--space-indigo);
    margin-bottom: 0.3rem;
}
.sector-section-desc {
    font-size: 0.875rem;
    color: var(--dusty-grape);
    margin-bottom: 1rem;
    line-height: 1.5;
}
.sector-section-full { margin-top: 1rem; }

/* Tables */
.sector-table-wrap { overflow-x: auto; }
.sector-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.sector-table th {
    text-align: left;
    padding: 0.5rem 0.6rem;
    background: var(--seashell);
    color: var(--space-indigo);
    font-weight: 600;
    font-size: 0.8rem;
    border-bottom: 2px solid var(--almond-silk);
}
.sector-table td {
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid var(--lilac-ash);
    color: var(--dusty-grape);
}
.sector-table a {
    color: var(--space-indigo);
    text-decoration: none;
    font-weight: 500;
}
.sector-table a:hover { color: var(--almond-silk); }
.text-right { text-align: right; }
@media (max-width: 640px) {
    .hide-mobile { display: none; }
}
.sector-more-link {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--almond-silk);
    text-decoration: none;
}
.sector-more-link:hover { color: var(--space-indigo); }

/* Tender cards */
.sector-tenders {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.sector-tender-card {
    display: block;
    padding: 1rem 1.25rem;
    background: var(--seashell);
    border: 1px solid var(--lilac-ash);
    border-radius: 8px;
    text-decoration: none;
    transition: all 150ms ease;
}
.sector-tender-card:hover {
    border-color: var(--almond-silk);
    box-shadow: 0 2px 8px rgba(34,34,59,0.06);
}
.sector-tender-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}
.sector-tender-amount {
    font-weight: 700;
    color: var(--space-indigo);
    font-size: 0.95rem;
}
.sector-tender-status {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--success);
    background: rgba(74,124,89,0.1);
    padding: 2px 8px;
    border-radius: 4px;
}
.sector-tender-card h3 {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--space-indigo);
    margin: 0 0 0.3rem;
    line-height: 1.4;
}
.sector-tender-buyer {
    font-size: 0.8rem;
    color: var(--dusty-grape);
    margin: 0;
}

/* Other sectors */
.sector-other-grid {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.sector-other-link {
    padding: 0.4rem 1rem;
    background: var(--seashell);
    border: 1px solid var(--lilac-ash);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--space-indigo);
    text-decoration: none;
    transition: all 150ms ease;
}
.sector-other-link:hover {
    border-color: var(--almond-silk);
    background: white;
}

/* CTA */
.sector-cta {
    margin-top: 2.5rem;
    padding: 2rem;
    background: var(--space-indigo);
    border-radius: 10px;
    text-align: center;
}
.sector-cta h2 {
    color: var(--seashell);
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}
.sector-cta p {
    color: #b0b0c0;
    max-width: 520px;
    margin: 0 auto 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}
.sector-cta-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}
.sector-cta .btn-primary {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background: var(--almond-silk);
    color: var(--space-indigo);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}
.sector-cta .btn-primary:hover { opacity: 0.9; }
.sector-cta .btn-secondary {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background: transparent;
    color: var(--seashell);
    border: 1px solid #8b8b9f;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}
.sector-cta .btn-secondary:hover { border-color: var(--seashell); }
