/* Shared public header: keep the three identity lines clear on every page. */
.top-page {
    direction: rtl;
}

.top-page-heading {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.08rem;
    min-width: 0;
    padding-block: 0.2rem;
    text-align: center;
}

.top-page-heading .header-title {
    display: block !important;
    width: 100%;
    margin: 0 !important;
    padding: 0;
    color: #ffffff !important;
    font-family: "Tajawal", "Noto Sans Arabic", Arial, sans-serif;
    line-height: 1.28 !important;
    text-align: center !important;
    white-space: normal !important;
}

.top-page-heading .header-title-country {
    color: #d9ecf3 !important;
    font-size: clamp(0.78rem, 1.15vw, 0.98rem) !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
}

.top-page-heading .header-title-authority {
    font-size: clamp(1.1rem, 1.75vw, 1.5rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
}

.top-page-heading .header-title-system {
    color: #f1f8fb !important;
    font-size: clamp(0.98rem, 1.45vw, 1.25rem) !important;
    font-weight: 700 !important;
}

@media (max-width: 900px) {
    .top-page-heading {
        gap: 0.04rem;
        padding-block: 0.05rem;
    }

    .top-page-heading .header-title-country {
        font-size: 0.76rem !important;
    }

    .top-page-heading .header-title-authority {
        font-size: 1.08rem !important;
    }

    .top-page-heading .header-title-system {
        font-size: 0.88rem !important;
    }
}

@media (max-width: 480px) {
    .top-page-heading .header-title-country {
        font-size: 0.68rem !important;
    }

    .top-page-heading .header-title-authority {
        font-size: 0.94rem !important;
    }

    .top-page-heading .header-title-system {
        font-size: 0.76rem !important;
    }
}
