/* ==========================================
   CREDENTIALS OF VALUE
   Per-trade certifications with salary premiums
   Light theme matching demand / licensing pages
   ========================================== */

/* Base */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hero */
.cred-hero {
    padding: 4rem 1.5rem 3rem;
    text-align: center;
    border-bottom: 2px dotted #b3b8c0;
}
.cred-hero-inner {
    max-width: 720px;
    margin: 0 auto;
}
.cred-hero-eyebrow {
    margin-bottom: 1.25rem;
}
.cred-signal-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #165DFF;
    background: rgba(22,93,255,0.08);
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
}
.cred-hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.08;
    color: #0F172A;
    margin: 0 0 1rem;
    text-transform: lowercase;
}
.cred-hero-sub {
    font-size: 1.1rem;
    color: #546478;
    line-height: 1.6;
    max-width: 580px;
    margin: 0 auto 1.5rem;
}
.cred-hero-sources {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Section Layout */
.cred-section {
    padding: 3rem 1.5rem;
    border-bottom: 2px dotted #b3b8c0;
}
.cred-section-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.cred-section-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #165DFF;
    margin-bottom: 0.5rem;
}
.cred-section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0F172A;
    margin: 0 0 0.5rem;
    text-transform: lowercase;
}
.cred-section-sub {
    font-size: 0.95rem;
    color: #546478;
    line-height: 1.5;
    margin: 0 0 2rem;
    max-width: 600px;
}

/* Overview Table */
.cred-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -0.5rem;
}
.cred-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 700px;
}
.cred-table thead th {
    text-align: left;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #546478;
    padding: 0.6rem 0.75rem;
    border-bottom: 2px solid #E2E8F0;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}
.cred-table thead th:hover {
    color: #0F172A;
}
.cred-table thead th.sort-active {
    color: #165DFF;
}
.cred-table tbody td {
    padding: 0.75rem;
    border-bottom: 1px solid #F1F5F9;
    color: #334155;
    vertical-align: middle;
}
.cred-table tbody tr:hover td {
    background: #F8FAFC;
}
.cred-table tbody tr {
    cursor: pointer;
}
.cred-trade-name {
    font-weight: 700;
    color: #0F172A;
}
.cred-base-salary {
    font-weight: 600;
    color: #334155;
}
.cred-top-credential {
    font-weight: 600;
    color: #0F172A;
}
.cred-premium-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 100px;
    background: rgba(22,163,74,0.1);
    color: #16A34A;
}
.cred-demand-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.55rem;
    border-radius: 100px;
}
.cred-demand-high {
    background: rgba(22,163,74,0.1);
    color: #16A34A;
}
.cred-demand-medium {
    background: rgba(234,179,8,0.1);
    color: #B45309;
}

/* Trade Detail Cards */
.cred-trade-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.cred-trade-card {
    background: #fff;
    border: 2px dotted #b3b8c0;
    border-radius: 14px;
    padding: 2rem;
}
.cred-trade-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.cred-trade-card-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0F172A;
    text-transform: lowercase;
    letter-spacing: -0.02em;
}
.cred-trade-card-base {
    text-align: right;
}
.cred-trade-card-base-val {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 900;
    color: #0F172A;
}
.cred-trade-card-base-label {
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #546478;
}

/* Credential Rows */
.cred-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.cred-item {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #F8FAFC;
    border-radius: 10px;
    transition: background 0.15s;
}
.cred-item:hover {
    background: #F1F5F9;
}
.cred-item-info {
    min-width: 0;
}
.cred-item-name {
    font-weight: 700;
    color: #0F172A;
    font-size: 0.9rem;
}
.cred-item-issuer {
    font-size: 0.75rem;
    color: #64748B;
    margin-top: 0.15rem;
}
.cred-item-desc {
    font-size: 0.78rem;
    color: #546478;
    margin-top: 0.35rem;
    line-height: 1.4;
}
.cred-item-premium {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    color: #16A34A;
    white-space: nowrap;
}
.cred-item-time {
    font-size: 0.75rem;
    color: #546478;
    white-space: nowrap;
    text-align: center;
}
.cred-item-demand {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.5rem;
    border-radius: 100px;
    white-space: nowrap;
}

/* Key Insight Card */
.cred-insight-card {
    background: rgba(22,93,255,0.04);
    border: 2px dotted #165DFF;
    border-radius: 14px;
    padding: 2rem;
    margin-top: 2rem;
}
.cred-insight-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: #0F172A;
    text-transform: lowercase;
    margin-bottom: 1rem;
}
.cred-insight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.cred-insight-stat {
    text-align: center;
}
.cred-insight-stat-val {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: #165DFF;
}
.cred-insight-stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #546478;
    line-height: 1.3;
}

/* CTA */
.cred-cta-section {
    padding: 3.5rem 1.5rem;
    text-align: center;
}
.cred-cta-inner {
    max-width: 520px;
    margin: 0 auto;
}
.cred-cta-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0F172A;
    margin: 0 0 0.75rem;
    text-transform: lowercase;
}
.cred-cta-sub {
    font-size: 0.95rem;
    color: #546478;
    line-height: 1.5;
    margin: 0 0 1.5rem;
}
.cred-btn-primary {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.75rem 2rem;
    background: #165DFF;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.cred-btn-primary:hover {
    background: #1249CC;
    transform: translateY(-1px);
}
.cred-btn-ghost {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: #165DFF;
    border: 2px dotted #165DFF;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    margin-left: 0.75rem;
}
.cred-btn-ghost:hover {
    background: rgba(22,93,255,0.05);
}

/* Responsive */
@media (max-width: 768px) {
    .cred-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .cred-item-premium,
    .cred-item-time,
    .cred-item-demand {
        text-align: left;
    }
    .cred-trade-card-header {
        flex-direction: column;
    }
    .cred-trade-card-base {
        text-align: left;
    }
    .cred-insight-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .cred-hero {
        padding: 3rem 1.25rem 2rem;
    }
    .cred-section {
        padding: 2rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .cred-trade-card {
        padding: 1.25rem;
    }
    .cred-btn-ghost {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}
