/* ============================================================================
   HEY LSIP — Sector pages
   Index tile grid + individual sector hero/feeds layout.
   ============================================================================ */

/* ── Index ───────────────────────────────────────────────────────────────── */

/* Per-group accent palette — used by hero counts, filter pills, group headings,
 * tile media gradient, tile CTAs and hover states. Defined as variables so the
 * tile class can pick up the right accent via one scoped --accent variable. */
:root {
    --sectors-driving:    #d77c1a;   /* warm orange — energy, momentum */
    --sectors-driving-2:  #f0a13d;
    --sectors-potential:  #14387a;   /* brand blue — investment, possibility */
    --sectors-potential-2:#3460b8;
    --sectors-enabling:   #2e7d4f;   /* deep green — backbone, stability */
    --sectors-enabling-2: #4caa72;
    --sectors-other:      #6b6f76;
    --sectors-other-2:    #9ba0a8;
}

/* ── Hero band ─────────────────────────────────────────────────────────────── */

.sectors-hero {
    position: relative;
    isolation: isolate;
    color: #fff;
    padding: 4rem 1.5rem 3rem;
    overflow: hidden;
}

.sectors-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: -2;
    filter: saturate(1.05) brightness(0.95);
}

.sectors-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(20, 56, 122, 0.78) 0%, rgba(20, 56, 122, 0.92) 100%),
        radial-gradient(120% 80% at 80% 20%, rgba(215, 124, 26, 0.35) 0%, transparent 60%);
    z-index: -1;
}

.sectors-hero__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.sectors-hero__eyebrow {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 700;
    color: #ffd9a8;
    margin-bottom: 0.6rem;
}

.sectors-hero h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.1;
    margin: 0 0 0.75rem;
    color: #fff;
    letter-spacing: -0.015em;
    max-width: 24ch;
}

.sectors-hero__lede {
    font-size: 1.1rem;
    line-height: 1.55;
    margin: 0;
    max-width: 60ch;
    opacity: 0.95;
}

.sectors-hero__counts {
    display: flex;
    gap: 2.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.sectors-hero__count {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.sectors-hero__count-num {
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.sectors-hero__count-label {
    margin-top: 0.35rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.85;
}

/* ── Listing + toolbar ────────────────────────────────────────────────────── */

.sectors-listing { padding-top: 2.5rem; }

.sectors-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.sectors-filter {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.sectors-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    background: #fff;
    border: 1.5px solid #e2e0d8;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: transform 0.12s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    line-height: 1.1;
}

.sectors-filter-pill:hover {
    border-color: #14387a;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(20, 56, 122, 0.1);
}

.sectors-filter-pill.is-active {
    background: #14387a;
    border-color: #14387a;
    color: #fff;
    box-shadow: 0 3px 10px rgba(20, 56, 122, 0.22);
}

.sectors-filter-pill .sectors-filter-count {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: #f1efe8;
    color: #555;
    line-height: 1;
}

.sectors-filter-pill.is-active .sectors-filter-count {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.sectors-filter-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent, #14387a);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6) inset;
}

.sectors-filter-pill--growth-driving         { --accent: var(--sectors-driving);   }
.sectors-filter-pill--growth-potential       { --accent: var(--sectors-potential); }
.sectors-filter-pill--growth-enabling        { --accent: var(--sectors-enabling);  }

.sectors-filter-pill--growth-driving.is-active   { background: var(--sectors-driving);   border-color: var(--sectors-driving);   box-shadow: 0 3px 10px rgba(215, 124, 26, 0.28); }
.sectors-filter-pill--growth-potential.is-active { background: var(--sectors-potential); border-color: var(--sectors-potential); box-shadow: 0 3px 10px rgba(20, 56, 122, 0.28); }
.sectors-filter-pill--growth-enabling.is-active  { background: var(--sectors-enabling);  border-color: var(--sectors-enabling);  box-shadow: 0 3px 10px rgba(46, 125, 79, 0.28); }

.sectors-filter-pill--growth-driving.is-active .sectors-filter-dot,
.sectors-filter-pill--growth-potential.is-active .sectors-filter-dot,
.sectors-filter-pill--growth-enabling.is-active .sectors-filter-dot {
    background: #fff;
    box-shadow: none;
}

.sectors-search {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid #e2e0d8;
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    min-width: 280px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sectors-search:focus-within {
    border-color: #14387a;
    box-shadow: 0 0 0 3px rgba(20, 56, 122, 0.15);
}

.sectors-search .material-symbols-outlined {
    font-size: 1.15rem;
    color: #888;
    margin-right: 0.4rem;
}

.sectors-search input {
    flex: 1;
    border: 0;
    outline: 0;
    padding: 0.35rem 0;
    font-size: 0.95rem;
    background: transparent;
}

.sectors-search-clear {
    background: transparent;
    border: 0;
    color: #888;
    cursor: pointer;
    padding: 0.2rem;
    display: flex;
}
.sectors-search-clear:hover { color: #d77c1a; }
.sectors-search-clear .material-symbols-outlined { font-size: 1rem; margin: 0; }

/* ── Result counter strip ─────────────────────────────────────────────────── */

.sectors-resultbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0.25rem 0 2rem;
    padding: 0 0.25rem;
    font-size: 0.92rem;
    color: #555;
}

.sectors-resultbar__group {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: rgba(20, 56, 122, 0.08);
    color: #14387a;
    font-weight: 600;
    font-size: 0.85rem;
}
.sectors-resultbar__group--growth-driving   { background: rgba(215, 124, 26, 0.12); color: var(--sectors-driving);   }
.sectors-resultbar__group--growth-potential { background: rgba(20, 56, 122, 0.10);  color: var(--sectors-potential); }
.sectors-resultbar__group--growth-enabling  { background: rgba(46, 125, 79, 0.12);  color: var(--sectors-enabling);  }

.sectors-resultbar__reset {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border: 0;
    background: transparent;
    color: #14387a;
    font-weight: 600;
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    transition: background 0.15s ease;
}
.sectors-resultbar__reset:hover { background: rgba(20, 56, 122, 0.08); }
.sectors-resultbar__reset .material-symbols-outlined { font-size: 1.05rem; }

/* ── Group sections ───────────────────────────────────────────────────────── */

.sectors-group { margin-top: 3rem; }
.sectors-group:first-of-type { margin-top: 0; }

.sectors-group__head {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.4rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ecebe4;
}

.sectors-group__title-block {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.sectors-group__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent, #14387a);
}

.sectors-group__title {
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    font-weight: 700;
    color: #14387a;
    margin: 0;
    letter-spacing: -0.01em;
}

.sectors-group__blurb {
    margin: 0;
    color: #5a5e63;
    font-size: 0.98rem;
    line-height: 1.55;
    max-width: 70ch;
    padding-left: 1.5rem;   /* aligns with dot */
}

.sectors-group--growth-driving   { --accent: var(--sectors-driving);   }
.sectors-group--growth-potential { --accent: var(--sectors-potential); }
.sectors-group--growth-enabling  { --accent: var(--sectors-enabling);  }
.sectors-group--other            { --accent: var(--sectors-other);     }

/* ── Tile grid ────────────────────────────────────────────────────────────── */

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
    gap: 1.4rem;
}

.sector-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ebe9e0;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 2px rgba(20, 30, 50, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    --accent: var(--sectors-other);
    --accent-2: var(--sectors-other-2);
}

.sector-tile--growth-driving   { --accent: var(--sectors-driving);   --accent-2: var(--sectors-driving-2);   }
.sector-tile--growth-potential { --accent: var(--sectors-potential); --accent-2: var(--sectors-potential-2); }
.sector-tile--growth-enabling  { --accent: var(--sectors-enabling);  --accent-2: var(--sectors-enabling-2);  }

.sector-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px -18px rgba(20, 30, 50, 0.28);
    border-color: var(--accent);
    color: inherit;
    text-decoration: none;
}

.sector-tile:hover .sector-tile__cta .material-symbols-outlined {
    transform: translateX(4px);
}

.sector-tile__media {
    position: relative;
    aspect-ratio: 16 / 9;
    background-color: var(--accent);
    background-size: cover;
    background-position: center;
    background-image: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
}

/* When a hero image IS set, layer a subtle gradient on top so the icon + badge stay legible. */
.sector-tile__media[style*="background-image"]::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.40) 100%),
        linear-gradient(135deg, rgba(20, 30, 50, 0.18) 0%, transparent 60%);
}

.sector-tile__icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.92);
    pointer-events: none;
    z-index: 1;
}

.sector-tile__icon .material-symbols-outlined {
    font-size: 4rem;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.18));
    font-variation-settings: 'wght' 300, 'FILL' 0;
}

.sector-tile__badge {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem 0.25rem 0.45rem;
    background: rgba(255, 255, 255, 0.92);
    color: var(--accent);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.sector-tile__badge .material-symbols-outlined { font-size: 0.95rem; }

.sector-tile__body {
    padding: 1.1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.sector-tile__group {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--accent);
}

.sector-tile__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #14387a;
    margin: 0;
    line-height: 1.25;
    letter-spacing: -0.005em;
}

.sector-tile__subtitle {
    color: #5a5e63;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.sector-tile__cta {
    margin-top: auto;
    padding-top: 0.6rem;
    font-weight: 700;
    color: var(--accent);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.sector-tile__cta .material-symbols-outlined {
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

@media (max-width: 600px) {
    .sectors-hero { padding: 3rem 1rem 2.5rem; }
    .sectors-hero__counts { gap: 1.5rem; }
    .sectors-hero__count-num { font-size: 1.8rem; }
    .sectors-toolbar { flex-direction: column; align-items: stretch; }
    .sectors-search { min-width: 0; width: 100%; }
}

/* ── Individual sector page ──────────────────────────────────────────────── */

.sector-hero {
    background: #1b6e2e;
    color: #fff;
    padding: 0;
    min-height: 280px;
    display: flex;
    align-items: stretch;
}

.sector-hero-overlay {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    padding: 3rem 0;
    display: flex;
    align-items: center;
}

.sector-hero h1 {
    color: #fff;
    font-size: 2.5rem;
    margin: 0.5rem 0;
}

.sector-hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    margin: 0;
    max-width: 720px;
}

.sector-hero-back {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.sector-hero-back:hover {
    color: #fff;
    opacity: 1;
    text-decoration: underline;
}

.sector-stats {
    background: #f8f8f4;
    padding: 2rem 0;
    border-bottom: 1px solid #eee;
}

.sector-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.sector-stat {
    text-align: center;
    padding: 1rem;
}

.sector-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #28a745;
    line-height: 1.1;
}

.sector-stat-label {
    margin-top: 0.5rem;
    color: #555;
    font-size: 0.95rem;
}

.sector-intro {
    padding: 3rem 0;
    line-height: 1.65;
}

.sector-intro .container {
    max-width: 760px;
}

.sector-feed {
    padding: 2.5rem 0;
    border-top: 1px solid #eee;
}

.sector-feed-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.sector-feed-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #222;
    margin: 0;
}

.sector-feed-all {
    color: #28a745;
    font-weight: 600;
    text-decoration: none;
}

.sector-feed-all:hover { text-decoration: underline; }

.sector-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.sector-news-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sector-news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    color: inherit;
    text-decoration: none;
}

.sector-news-image {
    height: 140px;
    background-size: cover;
    background-position: center;
    background-color: #f4f3ef;
}

.sector-news-body {
    padding: 1rem 1.25rem 1.25rem;
}

.sector-news-date {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.25rem;
}

.sector-news-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: #222;
    margin: 0 0 0.5rem;
}

.sector-news-body p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 600px) {
    .sector-hero h1 { font-size: 1.8rem; }
    .sector-hero-subtitle { font-size: 1rem; }
    .sector-stat-value { font-size: 1.6rem; }
}

/* ── Live jobs feed on sector page ───────────────────────────────────────── */

.sector-jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.sector-job-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    display: flex;
    flex-direction: column;
}

.sector-job-card:hover {
    transform: translateY(-2px);
    border-color: #28a745;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    color: inherit;
    text-decoration: none;
}

.sector-job-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: #222;
    line-height: 1.3;
}

.sector-job-meta {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #555;
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
}

.sector-job-meta .material-symbols-outlined { font-size: 1rem; color: #28a745; }

.sector-job-wage {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f0f0f0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #28a745;
}

/* ── Prev/next pager at bottom of sector detail ──────────────────────────── */

.sector-pager {
    background: #f8f8f4;
    padding: 2rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.sector-pager-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}

.sector-pager-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    min-height: 80px;
}

.sector-pager-link:hover {
    transform: translateY(-2px);
    border-color: #28a745;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.12);
    color: inherit;
    text-decoration: none;
}

.sector-pager-next {
    text-align: right;
    justify-content: flex-end;
}

.sector-pager-arrow {
    font-size: 1.5rem;
    color: #28a745;
    font-weight: 700;
    flex-shrink: 0;
}

.sector-pager-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.sector-pager-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.sector-pager-title {
    font-size: 1rem;
    color: #222;
    font-weight: 600;
}

.sector-pager-all {
    color: #28a745;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-align: center;
}

.sector-pager-all:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .sector-pager-grid { grid-template-columns: 1fr; }
    .sector-pager-all { order: 3; }
    .sector-pager-next { text-align: left; justify-content: flex-start; flex-direction: row-reverse; }
    .sector-pager-next .sector-pager-content { text-align: left; }
}
