/* C:\xampp_8.2_TICL\htdocs\ticl_web\public\assets\css\pages\tender-nest-detail.css */

.nest-detail-page {
    background: #eef8fc;
    min-height: 100vh;
    padding-bottom: 34px;
}

.nest-detail-hero {
    max-width: 1240px;
    margin: 0 auto;
    padding: 34px 24px 18px;
    text-align: center;
}

.nest-detail-kicker {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #1D8FCB;
}

.nest-detail-hero h1 {
    margin: 0;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.18;
    font-weight: 800;
    color: #1f2937;
}

.nest-detail-hero p {
    max-width: 780px;
    margin: 10px auto 0;
    color: #5b6470;
    line-height: 1.6;
}

.nest-detail-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.nest-detail-card {
    background: #fff;
    border: 1px solid #dfe8ee;
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .06);
    padding: 24px;
    margin-bottom: 18px;
}

.nest-detail-summary-card {
    border-top: 4px solid #1D8FCB;
}

.nest-detail-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.nest-detail-source {
    margin-bottom: 6px;
    color: #1D8FCB;
    font-size: 13px;
    font-weight: 700;
}

.nest-detail-title-row h2 {
    margin: 0;
    color: #20262d;
    font-size: clamp(22px, 2.3vw, 31px);
    line-height: 1.35;
}

.nest-detail-reference {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e7edf1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
}

.nest-detail-reference .label,
.nest-detail-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #6b7280;
}

.nest-detail-reference strong {
    color: #111827;
    overflow-wrap: anywhere;
}

.nest-detail-status {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 7px 13px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.nest-detail-status.open {
    background: #e8f7ee;
    color: #157347;
}

.nest-detail-status.soon {
    background: #fff4d6;
    color: #8a6200;
}

.nest-detail-status.closed {
    background: #fde8e8;
    color: #b42318;
}

.nest-detail-section-title {
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e4ebef;
    color: #252b32;
    font-size: 19px;
    font-weight: 800;
}

.nest-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border: 1px solid #e4ebef;
    border-radius: 9px;
    overflow: hidden;
}

.nest-detail-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
    padding: 16px 18px;
    border-bottom: 1px solid #e4ebef;
}

.nest-detail-field:nth-child(odd) {
    border-right: 1px solid #e4ebef;
}

.nest-detail-field:nth-last-child(-n+2) {
    border-bottom: 0;
}

.nest-detail-value {
    color: #1f2937;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.nest-detail-id-block {
    display: grid;
    gap: 14px;
}

.nest-detail-id-block code {
    display: block;
    margin-top: 7px;
    padding: 11px 13px;
    border-radius: 7px;
    background: #f5f8fa;
    border: 1px solid #e0e8ed;
    color: #213547;
    overflow-wrap: anywhere;
}

.nest-detail-id-block p {
    margin: 0;
    color: #5f6873;
    line-height: 1.6;
}

.nest-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 2px 0 4px;
}

/* Dark button — same black as the HN bar; hover matches the "Back" button */
.nest-detail-actions .nest-detail-btn-dark {
    background-color: var(--nav-dark, #414042);
    /* HN bar black (core-theme.css) */
    border: 1px solid var(--nav-dark, #414042);
    color: #fff;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.nest-detail-actions .nest-detail-btn-dark:hover,
.nest-detail-actions .nest-detail-btn-dark:focus {
    background-color: var(--primary, #1D8FCB);
    /* same blue as the Back button */
    border-color: var(--primary, #1D8FCB);
    color: #fff;
}

.nest-detail-alert {
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.nest-detail-alert-danger {
    background: #fde8e8;
    border: 1px solid #f5c2c7;
    color: #842029;
}

@media (max-width: 760px) {
    .nest-detail-wrap,
    .nest-detail-hero {
        padding-left: 14px;
        padding-right: 14px;
    }

    .nest-detail-card {
        padding: 18px;
    }

    .nest-detail-title-row {
        flex-direction: column;
    }

    .nest-detail-grid {
        grid-template-columns: 1fr;
    }

    .nest-detail-field,
    .nest-detail-field:nth-child(odd),
    .nest-detail-field:nth-last-child(-n+2) {
        border-right: 0;
        border-bottom: 1px solid #e4ebef;
    }

    .nest-detail-field:last-child {
        border-bottom: 0;
    }
}