/* =========================================================
   DATA CORE LOCAL v0.1
   Procurement Intelligence · UKPBJ Indragiri Hilir
   ========================================================= */

body.data-core-page {
    margin: 0;
    background:
        radial-gradient(circle at 75% 0%,
            rgba(153,25,0,.17), transparent 35%),
        radial-gradient(circle at 0% 35%,
            rgba(255,153,0,.04), transparent 30%),
        #090b0e;
}

.dc-shell {
    width: min(1480px, calc(100% - 48px));
    margin: 0 auto;
    padding: 42px 0 70px;
}

.dc-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    padding: 34px 0 38px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.dc-eyebrow,
.dc-section-head > div > span {
    display: block;
    color: #ff9900;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
}

.dc-hero h1 {
    margin: 7px 0 8px;
    color: #f7f7f8;
    font-size: clamp(32px, 4vw, 58px);
    line-height: .98;
    letter-spacing: -.045em;
}

.dc-hero p {
    max-width: 780px;
    margin: 0;
    color: #9399a1;
    font-size: 14px;
    line-height: 1.75;
}

.dc-health {
    min-width: 230px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 17px 19px;
    border: 1px solid rgba(255,255,255,.09);
    background: rgba(255,255,255,.025);
}

.dc-health-dot {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 50%;
    background: #56d68b;
    box-shadow: 0 0 18px rgba(86,214,139,.55);
}

.dc-health small,
.dc-physical small {
    display: block;
    color: #747b84;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .13em;
}

.dc-health strong {
    display: block;
    margin-top: 3px;
    color: #f5f6f7;
    font-size: 14px;
    letter-spacing: .08em;
}

.dc-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin: 28px 0 46px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.07);
}

.dc-kpis article {
    min-height: 112px;
    padding: 22px;
    background: #0d1013;
}

.dc-kpis span,
.dc-history-grid span {
    display: block;
    color: #747b84;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .13em;
}

.dc-kpis strong {
    display: block;
    margin: 8px 0 2px;
    color: #f6f7f8;
    font-size: 31px;
    line-height: 1;
}

.dc-kpis small {
    color: #737981;
    font-size: 10px;
}

.dc-section {
    margin-top: 54px;
}

.dc-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 20px;
}

.dc-section-head h2 {
    margin: 5px 0 0;
    color: #f5f6f7;
    font-size: 21px;
    letter-spacing: -.02em;
}

.dc-physical {
    text-align: right;
}

.dc-physical strong {
    display: block;
    color: #f5f6f7;
    font-size: 23px;
}

.dc-physical span {
    color: #737981;
    font-size: 10px;
}

.dc-dataset-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.dc-dataset {
    min-width: 0;
    padding: 19px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.075);
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.035),
            rgba(255,255,255,.012)
        );
    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease;
}

.dc-dataset:hover {
    transform: translateY(-2px);
    border-color: rgba(255,153,0,.35);
    background: rgba(255,153,0,.035);
}

.dc-dataset > span {
    color: #ff9900;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
}

.dc-dataset strong {
    display: block;
    margin-top: 18px;
    color: #f7f7f8;
    font-size: 27px;
    line-height: 1;
}

.dc-dataset h3 {
    min-height: 34px;
    margin: 8px 0 18px;
    color: #a8adb5;
    font-size: 12px;
    font-weight: 700;
}

.dc-dataset small {
    color: #737981;
    font-size: 9px;
}

.dc-record-note {
    margin: 15px 0 0;
    color: #6f757d;
    font-size: 10px;
    line-height: 1.7;
}

.dc-endpoints {
    border-top: 1px solid rgba(255,255,255,.08);
}

.dc-endpoint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 13px 4px;
    border-bottom: 1px solid rgba(255,255,255,.065);
}

.dc-endpoint-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.dc-priority {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 22px;
    color: #8b9199;
    border: 1px solid rgba(255,255,255,.1);
    font-size: 8px;
    font-weight: 800;
}

.dc-endpoint-main strong {
    display: block;
    color: #dfe2e5;
    font-size: 11px;
}

.dc-endpoint-main small {
    display: block;
    margin-top: 3px;
    color: #6f757d;
    font-size: 9px;
}

.dc-endpoint-state {
    flex: 0 0 auto;
    text-align: right;
}

.dc-endpoint-state small {
    display: block;
    margin-top: 4px;
    color: #676d75;
    font-size: 9px;
}

.dc-status {
    display: inline-block;
    padding: 5px 8px;
    border: 1px solid rgba(255,255,255,.08);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .08em;
}

.dc-status.success {
    color: #74dea0;
    border-color: rgba(86,214,139,.25);
    background: rgba(86,214,139,.05);
}

.dc-status.limited {
    color: #ffb84d;
    border-color: rgba(255,153,0,.25);
    background: rgba(255,153,0,.05);
}

.dc-status.deferred {
    color: #9299a2;
}

.dc-status.attention {
    color: #ef9c8c;
    border-color: rgba(190,70,45,.3);
}

.dc-history {
    padding-bottom: 20px;
}

.dc-history-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.dc-history-grid article {
    padding: 17px 19px;
    border: 1px solid rgba(255,255,255,.07);
    background: rgba(255,255,255,.018);
}

.dc-history-grid strong {
    display: block;
    margin-top: 7px;
    color: #f5f6f7;
    font-size: 22px;
}

.dc-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    color: #666d75;
    border-top: 1px solid rgba(255,255,255,.06);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .11em;
}

.dc-footer span:last-child {
    display: flex;
    align-items: center;
    gap: 7px;
}

.dc-footer i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #56d68b;
    box-shadow: 0 0 10px rgba(86,214,139,.5);
}

@media (max-width: 1180px) {
    .dc-dataset-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .dc-kpis {
        grid-template-columns: repeat(2, 1fr);
    }

    .dc-dataset-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dc-history-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 680px) {
    .dc-shell {
        width: min(100% - 28px, 1480px);
        padding-top: 22px;
    }

    .dc-hero,
    .dc-section-head,
    .dc-endpoint {
        align-items: flex-start;
        flex-direction: column;
    }

    .dc-health {
        min-width: 0;
        width: auto;
    }

    .dc-kpis,
    .dc-dataset-grid,
    .dc-history-grid {
        grid-template-columns: 1fr;
    }

    .dc-endpoint-state,
    .dc-physical {
        text-align: left;
    }

    .dc-footer {
        flex-direction: column;
    }
}

/* ==========================================================
   DATA RELATIONSHIP INTELLIGENCE ENTRY v0.1
   ========================================================== */

.dc-quality-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;

    margin-top: 18px;
    padding: 26px 28px;

    border: 1px solid rgba(255, 153, 0, .20);
    border-radius: 16px;

    background:
        linear-gradient(
            110deg,
            rgba(153, 25, 0, .13),
            rgba(255, 153, 0, .035)
        );
}

.dc-quality-entry > div {
    min-width: 0;
}

.dc-quality-kicker {
    display: block;
    margin-bottom: 9px;

    color: #ffad31;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: .15em;
}

.dc-quality-entry h2 {
    margin: 0;

    color: #f5f6f7;

    font-size: 22px;
    line-height: 1.25;
    letter-spacing: -.02em;
}

.dc-quality-entry p {
    max-width: 760px;

    margin: 9px 0 0;

    color: #858c93;

    font-size: 11px;
    line-height: 1.65;
}

.dc-quality-entry a {
    flex: 0 0 auto;

    padding: 11px 15px;

    border: 1px solid rgba(255, 153, 0, .32);
    border-radius: 8px;

    color: #ffad31;

    font-size: 10px;
    font-weight: 800;

    text-decoration: none;

    transition:
        border-color .18s ease,
        background .18s ease,
        transform .18s ease;
}

.dc-quality-entry a:hover {
    border-color: rgba(255, 153, 0, .65);
    background: rgba(255, 153, 0, .07);
    transform: translateY(-1px);
}

@media (max-width: 760px) {
    .dc-quality-entry {
        display: block;
    }

    .dc-quality-entry a {
        display: inline-block;
        margin-top: 18px;
    }
}
