/* ═══════════════════════════════════════════════════════════════════════════
   mil-civ.css — Military-to-Civilian Career Translator
   Mirrors job-detail.css conventions: mc- prefix, same var() fallbacks
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Layout ──────────────────────────────────────────────────────────────── */
.mc-main {
    padding: 30px 0 60px;
    min-height: 60vh;
}
.mc-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.mc-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    align-items: start;
}
.mc-back {
    margin-bottom: 20px;
}
.mc-back-link {
    color: var(--text-muted, #6b7280);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}
.mc-back-link:hover {
    color: var(--text-primary, #111827);
}

/* ── 404 ─────────────────────────────────────────────────────────────────── */
.mc-not-found {
    text-align: center;
    padding: 80px 20px;
}
.mc-not-found h1 {
    font-size: 24px;
    margin: 0 0 12px;
    color: var(--text-primary, #111827);
}
.mc-not-found p {
    color: var(--text-muted, #6b7280);
    margin: 0 0 24px;
}
.btn-mc-back {
    display: inline-block;
    padding: 10px 20px;
    background: var(--brand-primary, #1d4ed8);
    color: #fff;
    border-radius: var(--radius-md, 8px);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}
.btn-mc-back:hover {
    opacity: 0.9;
}

/* ── Detail: Header ──────────────────────────────────────────────────────── */
.mc-header {
    margin-bottom: 28px;
}
.mc-branch-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #fff;
}
.branch-army       { background: #4b5320; }
.branch-marines    { background: #8b0000; }
.branch-airforce   { background: #00308f; }
.branch-navy       { background: #000080; }
.branch-coastguard { background: #e35205; }

.mc-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary, #111827);
    margin: 0 0 12px;
    line-height: 1.3;
}
.mc-code-highlight {
    display: inline-block;
    background: var(--bg-subtle, #f3f4f6);
    border: 1px solid var(--border-light, #e5e7eb);
    border-radius: 4px;
    padding: 2px 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 22px;
    font-weight: 700;
    margin-right: 6px;
    vertical-align: baseline;
    color: var(--text-primary, #111827);
}
.mc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.mc-meta-tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--bg-subtle, #f3f4f6);
    color: var(--text-secondary, #374151);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}
.mc-meta-path {
    background: #eff6ff;
    color: #1e40af;
}
.mc-meta-inactive {
    background: #fef2f2;
    color: #991b1b;
}

/* ── Inactive banner ─────────────────────────────────────────────────────── */
.mc-inactive-banner {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: var(--radius-md, 8px);
    padding: 12px 16px;
    margin-bottom: 24px;
    color: #92400e;
    font-size: 14px;
    font-weight: 500;
}

/* ── Sections ────────────────────────────────────────────────────────────── */
.mc-section {
    margin-bottom: 32px;
}
.mc-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary, #111827);
    margin: 0 0 8px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-light, #e5e7eb);
}
.mc-section-intro {
    color: var(--text-muted, #6b7280);
    font-size: 14px;
    margin: 0 0 20px;
    line-height: 1.6;
}
.mc-section-intro a {
    color: var(--brand-primary, #1d4ed8);
}

/* ── Match groups ────────────────────────────────────────────────────────── */
.mc-match-group {
    margin-bottom: 24px;
}
.mc-match-heading {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary, #111827);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mc-match-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.mc-dot-strong   { background: #16a34a; }
.mc-dot-moderate { background: #d97706; }
.mc-dot-related  { background: #6b7280; }

.mc-match-count {
    font-weight: 400;
    color: var(--text-muted, #6b7280);
    font-size: 14px;
}

/* ── Match cards ─────────────────────────────────────────────────────────── */
.mc-match-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mc-match-card {
    border: 1px solid var(--border-light, #e5e7eb);
    border-radius: var(--radius-md, 8px);
    padding: 16px;
    background: #fff;
    transition: border-color 0.15s;
}
.mc-match-card:hover {
    border-color: var(--brand-primary, #1d4ed8);
}
.mc-match-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 6px;
}
.mc-match-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary, #111827);
    margin: 0;
}
.mc-soc-code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    color: var(--text-muted, #6b7280);
    background: var(--bg-subtle, #f3f4f6);
    padding: 2px 6px;
    border-radius: 3px;
    white-space: nowrap;
    flex-shrink: 0;
}
.mc-match-desc {
    font-size: 13px;
    color: var(--text-secondary, #374151);
    line-height: 1.5;
    margin: 0 0 10px;
}
.mc-match-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}
.mc-match-salary {
    color: #16a34a;
    font-weight: 500;
}
.mc-match-growth {
    color: #2563eb;
    font-weight: 500;
}
.mc-match-jobs-link {
    margin-left: auto;
    color: var(--brand-primary, #1d4ed8);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
}
.mc-match-jobs-link:hover {
    text-decoration: underline;
}

/* ── No matches ──────────────────────────────────────────────────────────── */
.mc-no-matches {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted, #6b7280);
    background: var(--bg-subtle, #f3f4f6);
    border-radius: var(--radius-md, 8px);
}

/* ── CTA section ─────────────────────────────────────────────────────────── */
.mc-cta-section {
    margin-top: 32px;
}
.mc-cta-inner {
    background: linear-gradient(135deg, #1e3a5f 0%, #1d4ed8 100%);
    border-radius: var(--radius-md, 8px);
    padding: 28px 24px;
    text-align: center;
    color: #fff;
}
.mc-cta-heading {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
}
.mc-cta-text {
    margin: 0 0 18px;
    opacity: 0.9;
    font-size: 15px;
}
.mc-cta-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.btn-mc-primary {
    display: inline-block;
    padding: 10px 22px;
    background: #fff;
    color: #1d4ed8;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}
.btn-mc-primary:hover { opacity: 0.9; }
.btn-mc-secondary {
    display: inline-block;
    padding: 10px 22px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}
.btn-mc-secondary:hover { background: rgba(255,255,255,0.25); }

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.mc-sidebar-card {
    border: 1px solid var(--border-light, #e5e7eb);
    border-radius: var(--radius-md, 8px);
    background: #fff;
    padding: 18px;
    margin-bottom: 16px;
}
.mc-sidebar-heading {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary, #111827);
    margin: 0 0 12px;
}

/* Share button */
.mc-actions-card {
    text-align: center;
}
.btn-mc-share {
    display: inline-block;
    width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--border-light, #e5e7eb);
    border-radius: 6px;
    background: #fff;
    color: var(--text-secondary, #374151);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s;
}
.btn-mc-share:hover {
    border-color: var(--brand-primary, #1d4ed8);
    color: var(--brand-primary, #1d4ed8);
}

/* Facts DL */
.mc-facts {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 12px;
    font-size: 14px;
    margin: 0;
}
.mc-facts dt {
    color: var(--text-muted, #6b7280);
    font-weight: 500;
}
.mc-facts dd {
    color: var(--text-primary, #111827);
    margin: 0;
    font-weight: 600;
}

/* Related codes */
.mc-related-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.mc-related-list li {
    padding: 6px 0;
    border-bottom: 1px solid var(--bg-subtle, #f3f4f6);
    font-size: 13px;
}
.mc-related-list li:last-child {
    border-bottom: none;
}
.mc-related-list a {
    color: var(--text-secondary, #374151);
    text-decoration: none;
    display: block;
    line-height: 1.4;
}
.mc-related-list a:hover {
    color: var(--brand-primary, #1d4ed8);
}
.mc-related-list strong {
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    margin-right: 4px;
}

/* Attribution */
.mc-attribution-card {
    background: var(--bg-subtle, #f9fafb);
}
.mc-attribution {
    font-size: 12px;
    color: var(--text-muted, #6b7280);
    line-height: 1.5;
    margin: 0;
}
.mc-attribution a {
    color: var(--brand-primary, #1d4ed8);
}


/* ═════════════════════════════════════════════════════════════════════════════
   BROWSE MODE
   ═════════════════════════════════════════════════════════════════════════════ */

/* ── Hero ────────────────────────────────────────────────────────────────── */
.mc-hero {
    text-align: center;
    padding: 32px 0 28px;
}
.mc-hero-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary, #111827);
    margin: 0 0 10px;
}
.mc-hero-text {
    color: var(--text-muted, #6b7280);
    font-size: 16px;
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ── Filters ─────────────────────────────────────────────────────────────── */
.mc-filters {
    margin-bottom: 24px;
}
.mc-search-row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.mc-search-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-light, #d1d5db);
    border-radius: 6px;
    font-size: 15px;
    color: var(--text-primary, #111827);
    outline: none;
    transition: border-color 0.15s;
}
.mc-search-input:focus {
    border-color: var(--brand-primary, #1d4ed8);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}
.mc-search-input::placeholder {
    color: var(--text-muted, #9ca3af);
}
.btn-mc-search {
    padding: 10px 20px;
    background: var(--brand-primary, #1d4ed8);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}
.btn-mc-search:hover { opacity: 0.9; }

/* Branch pills */
.mc-branch-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}
.mc-branch-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid var(--border-light, #d1d5db);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary, #374151);
    background: #fff;
    text-decoration: none;
    transition: all 0.15s;
}
.mc-branch-pill:hover {
    border-color: var(--text-muted, #9ca3af);
}
.mc-branch-pill.active {
    background: var(--text-primary, #111827);
    color: #fff;
    border-color: var(--text-primary, #111827);
}
.mc-branch-pill.active.branch-army       { background: #4b5320; border-color: #4b5320; }
.mc-branch-pill.active.branch-marines    { background: #8b0000; border-color: #8b0000; }
.mc-branch-pill.active.branch-airforce   { background: #00308f; border-color: #00308f; }
.mc-branch-pill.active.branch-navy       { background: #000080; border-color: #000080; }
.mc-branch-pill.active.branch-coastguard { background: #e35205; border-color: #e35205; }

.mc-pill-count {
    font-size: 11px;
    opacity: 0.7;
}

/* Category pills */
.mc-cat-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}
.mc-cat-pill {
    padding: 5px 12px;
    border: 1px solid var(--border-light, #e5e7eb);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted, #6b7280);
    background: #fff;
    text-decoration: none;
    transition: all 0.15s;
}
.mc-cat-pill:hover {
    border-color: var(--text-muted, #9ca3af);
    color: var(--text-secondary, #374151);
}
.mc-cat-pill.active {
    background: var(--bg-subtle, #f3f4f6);
    color: var(--text-primary, #111827);
    border-color: var(--text-muted, #9ca3af);
    font-weight: 600;
}

/* ── Results header ──────────────────────────────────────────────────────── */
.mc-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}
.mc-results-count {
    font-size: 14px;
    color: var(--text-muted, #6b7280);
    margin: 0;
}
.mc-clear-link {
    font-size: 13px;
    color: var(--brand-primary, #1d4ed8);
    text-decoration: none;
    font-weight: 500;
}
.mc-clear-link:hover { text-decoration: underline; }

/* ── No results ──────────────────────────────────────────────────────────── */
.mc-no-results {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-muted, #6b7280);
    background: var(--bg-subtle, #f9fafb);
    border-radius: var(--radius-md, 8px);
    font-size: 15px;
}

/* ── Result cards ────────────────────────────────────────────────────────── */
.mc-results-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.mc-result-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid var(--border-light, #e5e7eb);
    border-radius: var(--radius-md, 8px);
    background: #fff;
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    gap: 12px;
}
.mc-result-card:hover {
    border-color: var(--brand-primary, #1d4ed8);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.mc-result-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.mc-result-branch {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 56px;
    text-align: center;
}
.mc-result-info {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
}
.mc-result-code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary, #111827);
    white-space: nowrap;
    flex-shrink: 0;
}
.mc-result-title {
    font-size: 14px;
    color: var(--text-secondary, #374151);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mc-result-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.mc-result-cat {
    font-size: 12px;
    color: var(--text-muted, #9ca3af);
    white-space: nowrap;
}
.mc-result-matches {
    font-size: 12px;
    color: var(--brand-primary, #1d4ed8);
    font-weight: 600;
    white-space: nowrap;
}
.mc-result-arrow {
    color: var(--text-muted, #d1d5db);
    font-size: 16px;
}

/* ── Pagination ──────────────────────────────────────────────────────────── */
.mc-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 28px;
    flex-wrap: wrap;
}
.mc-page-link {
    display: inline-block;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary, #374151);
    text-decoration: none;
    border: 1px solid var(--border-light, #e5e7eb);
    border-radius: 6px;
    background: #fff;
    transition: all 0.15s;
}
.mc-page-link:hover {
    border-color: var(--brand-primary, #1d4ed8);
    color: var(--brand-primary, #1d4ed8);
}
.mc-page-current {
    background: var(--brand-primary, #1d4ed8);
    color: #fff;
    border-color: var(--brand-primary, #1d4ed8);
}
.mc-page-ellipsis {
    padding: 8px 6px;
    color: var(--text-muted, #9ca3af);
}

/* ── Browse attribution ──────────────────────────────────────────────────── */
.mc-browse-attribution {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light, #e5e7eb);
    text-align: center;
}
.mc-browse-attribution p {
    font-size: 12px;
    color: var(--text-muted, #9ca3af);
    margin: 0;
}
.mc-browse-attribution a {
    color: var(--text-muted, #6b7280);
}


/* ═════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 860px) {
    .mc-layout {
        grid-template-columns: 1fr;
    }
    .mc-sidebar {
        order: -1;
    }
    .mc-sidebar .mc-actions-card {
        display: none; /* Share available via browser on mobile */
    }
}

@media (max-width: 640px) {
    .mc-hero-title {
        font-size: 22px;
    }
    .mc-hero-text {
        font-size: 14px;
    }
    .mc-title {
        font-size: 20px;
    }
    .mc-code-highlight {
        font-size: 18px;
    }
    .mc-result-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .mc-result-right {
        width: 100%;
        justify-content: space-between;
    }
    .mc-result-info {
        flex-direction: column;
        gap: 2px;
    }
    .mc-result-title {
        white-space: normal;
    }
    .mc-match-top {
        flex-direction: column;
        gap: 4px;
    }
    .mc-match-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .mc-match-jobs-link {
        margin-left: 0;
    }
    .mc-cta-actions {
        flex-direction: column;
    }
    .btn-mc-primary,
    .btn-mc-secondary {
        width: 100%;
        text-align: center;
    }
}
