/* DIPA — Document view & hub/produs pages */

body {
    background-color: #fff;
}

#page {
    padding-top: 95px;
}

/* ── Document page ─────────────────────────────── */
.dipa-document {
    max-width: 860px;
    margin: 0 auto 40px auto;
    padding: 0 20px 60px;
    font-family: inherit;
    color: #333;
    line-height: 1.65;
}

.dipa-document h1 {
    font-size: 1.6rem;
    color: #127286;
    margin-bottom: 16px;
}

/* Notă „versiune arhivată" — evidențiată, centrată */
.dipa-document__archive-notice {
    text-align: center;
    margin: 0 0 28px;
    padding: 14px 18px;
    background: #fff4e5;
    border: 1px solid #f5b86b;
    border-left: 4px solid #e8893b;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #8a4b16;
    line-height: 1.5;
}

.dipa-document__archive-notice a {
    color: #127286;
    font-weight: 700;
    text-decoration: underline;
}

.dipa-document__archive-notice a:hover {
    color: #0e5a6e;
}

.dipa-document__meta {
    background: #f4f8fb;
    border-left: 4px solid #127286;
    padding: 14px 18px;
    margin-bottom: 32px;
    border-radius: 0 4px 4px 0;
}

.dipa-document__meta p {
    margin: 4px 0;
    font-size: 0.9rem;
    color: #555;
}

.dipa-document__pdf-link {
    display: inline-block;
    margin-top: 6px;
    color: #127286;
    font-weight: 600;
    text-decoration: none;
}

.dipa-document__pdf-link:hover {
    text-decoration: underline;
}

/* Sections */
.dipa-document__section {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e8edf0;
}

.dipa-document__section:last-of-type {
    border-bottom: none;
}

.dipa-document__section h2 {
    font-size: 1.1rem;
    color: #127286;
    margin-bottom: 10px;
}

.dipa-document__section p {
    margin: 0 0 8px;
}

.dipa-document__list {
    list-style: disc;
    padding-left: 22px;
    margin: 0;
}

.dipa-document__list li {
    margin-bottom: 6px;
    list-style: disc;
}

/* Limits table */
.dipa-document__limits-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin-top: 8px;
}

.dipa-document__limits-table th,
.dipa-document__limits-table td {
    border: 1px solid #d0dde3;
    padding: 9px 12px;
    text-align: left;
    vertical-align: top;
}

.dipa-document__limits-table thead th {
    background: #127286;
    color: #fff;
    font-weight: 600;
}

.dipa-document__limits-table tbody tr:nth-child(even) {
    background: #f4f8fb;
}

.dipa-document__limits-table__value {
    white-space: nowrap;
    font-weight: 600;
    color: #127286;
}

/* Disclaimer */
.dipa-document__disclaimer {
    margin-top: 32px;
    padding: 14px 16px;
    background: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

/* ── Hub page ──────────────────────────────────── */
.dipa-hub {
    max-width: 860px;
    margin: 40px auto;
    padding: 0 20px 60px;
}

.dipa-hub h1 {
    font-size: 1.6rem;
    color: #127286;
    margin-bottom: 24px;
}

.dipa-hub__products {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dipa-hub__products li {
    margin-bottom: 12px;
}

.dipa-hub__products a {
    display: inline-block;
    padding: 12px 20px;
    background: #127286;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.dipa-hub__products a:hover {
    background: #0e5a6e;
}

/* ── Produs page ───────────────────────────────── */
.dipa-produs {
    max-width: 860px;
    margin: 0 auto 40px auto;
    padding: 0 20px 60px;
}

.dipa-produs h1 {
    font-size: 1.6rem;
    color: #127286;
    margin-bottom: 24px;
}

.dipa-produs__insurers {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dipa-produs__insurers li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #e8edf0;
}

.dipa-produs__insurers li:last-child {
    border-bottom: none;
}

.dipa-produs__insurers a {
    color: #127286;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
}

.dipa-produs__insurers a:hover {
    text-decoration: underline;
}

.dipa-produs__version {
    font-size: 0.8rem;
    color: #888;
    white-space: nowrap;
    margin-left: 12px;
}

/* Responsive */
@media (max-width: 640px) {
    .dipa-document,
    .dipa-hub,
    .dipa-produs {
        padding: 0 12px 40px;
    }

    .dipa-document h1,
    .dipa-hub h1,
    .dipa-produs h1 {
        font-size: 1.3rem;
    }

    .dipa-document__limits-table {
        font-size: 0.8rem;
    }

    .dipa-document__limits-table th,
    .dipa-document__limits-table td {
        padding: 7px 8px;
    }

    .dipa-produs__insurers li {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}
