/* ── صفحة تنسيق الإعدادية — hub كامل ── */
.pch-wrap {
    width: min(100%, 1200px);
    margin-inline: auto;
    padding-inline: 16px;
}

.pch-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 45%, #134e4a 100%);
    color: #f8fafc;
    padding: 28px 0 40px;
    position: relative;
    overflow: hidden;
}

.pch-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.25), transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.2), transparent 40%);
    pointer-events: none;
}

.pch-hero .pch-wrap {
    position: relative;
    z-index: 1;
}

.pch-hero__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    align-items: center;
    margin-top: 12px;
}

.pch-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.85rem;
    font-weight: 700;
}

.pch-hero__title {
    margin: 14px 0 10px;
    font-size: clamp(1.35rem, 3.2vw, 2rem);
    font-weight: 900;
    line-height: 1.45;
}

.pch-hero__lead {
    margin: 0 0 16px;
    color: rgba(248, 250, 252, 0.88);
    font-size: 1.02rem;
    line-height: 1.75;
}

.pch-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.pch-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.45);
    font-size: 0.88rem;
    font-weight: 700;
}

.pch-stat.is-live {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.pch-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}

.pch-hero__visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.pch-hero__orb {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.35), rgba(16, 185, 129, 0.25));
    border: 2px solid rgba(255, 255, 255, 0.2);
    font-size: 2.5rem;
    color: #a5b4fc;
    animation: pch-pulse 3s ease-in-out infinite;
}

@keyframes pch-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

.pch-hero__tracks {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    display: grid;
    gap: 8px;
}

.pch-hero__tracks li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    font-weight: 700;
}

.pch-calc {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 20px;
    margin-top: -24px;
    position: relative;
    z-index: 2;
    padding-bottom: 36px;
}

.pch-calc__card {
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
    border: 1px solid #e2e8f0;
}

.pch-calc__head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.pch-calc__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.pch-calc__head h2 {
    margin: 0 0 4px;
    font-size: 1.25rem;
    font-weight: 900;
}

.pch-calc__head p {
    margin: 0;
    color: #64748b;
    font-size: 0.92rem;
}

.pch-calc__fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.pch-field span {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
}

.pch-calc__quick {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 0.85rem;
    color: #64748b;
}

.pch-quick-btn {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    border-radius: 8px;
    padding: 6px 12px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
}

.pch-quick-btn:hover {
    background: #eef2ff;
    border-color: #818cf8;
    color: #4338ca;
}

.pch-quick-btn.is-active {
    background: #eef2ff;
    border-color: #6366f1;
    color: #4338ca;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.pch-calc__result {
    margin-top: 16px;
}

.pch-tracks-ref {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 18px;
}

.pch-tracks-ref h3 {
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pch-tracks-ref__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.pch-tracks-ref__list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.pch-tracks-ref__ico {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    display: grid;
    place-items: center;
    color: #6366f1;
    flex-shrink: 0;
}

.pch-tracks-ref__list strong {
    display: block;
    font-size: 0.88rem;
}

.pch-tracks-ref__list small {
    color: #64748b;
    font-size: 0.78rem;
}

.pch-section-title {
    margin: 0 0 8px;
    font-size: 1.35rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pch-govs {
    padding-bottom: 40px;
}

.pch-govs__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 20px;
}

.pch-govs__head p {
    margin: 0;
    color: #64748b;
    max-width: 560px;
    line-height: 1.65;
}

.pch-govs__search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background: #fff;
    min-width: min(100%, 280px);
}

.pch-govs__search input {
    border: 0;
    outline: 0;
    flex: 1;
    font-family: inherit;
    font-size: 0.95rem;
    background: transparent;
}

.pch-govs__search span {
    font-weight: 800;
    color: #6366f1;
    font-size: 0.85rem;
}

.pch-gov-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

/* ── أقسام المحافظات — تنسيق تفصيلي ── */
.pch-gov-sections {
    display: grid;
    gap: 24px;
}

.pch-gov-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 20px 22px;
    border-right: 4px solid var(--pch-accent, #6366f1);
    scroll-margin-top: 100px;
}

.pch-gov-section.is-published {
    border-color: rgba(16, 185, 129, 0.35);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.08);
}

.pch-gov-section__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.pch-gov-section__prefix {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--pch-accent, #6366f1);
    margin-bottom: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--pch-accent, #6366f1) 10%, #fff);
}

.pch-gov-section__title {
    margin: 0 0 8px;
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    font-weight: 900;
    line-height: 1.55;
}

.pch-gov-section__lead {
    margin: 0;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.7;
    max-width: 720px;
}

.pch-gov-section__badge {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}

.pch-gov-section__badge.is-live { background: #d1fae5; color: #047857; }
.pch-gov-section__badge.is-wait { background: #fef3c7; color: #b45309; }
.pch-gov-section__badge.is-off { background: #f1f5f9; color: #64748b; }

.pch-gov-section__subhead {
    margin: 0 0 10px;
    font-size: 0.95rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #334155;
}

.pch-gov-section__info,
.pch-gov-section__tracks {
    margin-bottom: 16px;
}

.pch-info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.pch-info-table th,
.pch-info-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    text-align: right;
    vertical-align: top;
}

.pch-info-table th {
    width: 34%;
    font-weight: 800;
    color: #475569;
    background: #f8fafc;
}

.pch-info-table tr:last-child th,
.pch-info-table tr:last-child td {
    border-bottom: 0;
}

.pch-info-table tr.is-live td { color: #047857; font-weight: 800; }
.pch-info-table tr.is-wait td { color: #b45309; }
.pch-info-table tr.is-off td { color: #64748b; }

.pch-info-table a {
    color: var(--pch-accent, #6366f1);
    font-weight: 800;
    text-decoration: none;
}

.pch-info-table a:hover { text-decoration: underline; }

.pch-tracks-table-wrap {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.pch-tracks-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
    min-width: 520px;
}

.pch-tracks-table thead th {
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
    padding: 10px 12px;
    font-weight: 900;
    color: #334155;
    text-align: right;
    border-bottom: 1px solid #e2e8f0;
}

.pch-tracks-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.pch-tracks-table tbody tr:last-child td { border-bottom: 0; }

.pch-tracks-table tbody tr:nth-child(even) { background: #fafbfc; }

.pch-tracks-table__ico {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--pch-accent, #6366f1) 12%, #fff);
    color: var(--pch-accent, #6366f1);
    margin-left: 8px;
    vertical-align: middle;
    font-size: 0.75rem;
}

.pch-gov-section__foot {
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.pch-gov-section__note {
    margin: 0 0 10px;
    font-size: 0.82rem;
    color: #92400e;
    background: #fffbeb;
    padding: 8px 12px;
    border-radius: 8px;
}

.pch-gov-section__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pch-gov-section__link,
.pch-gov-section__calc {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 800;
    text-decoration: none;
}

.pch-gov-section__link {
    background: color-mix(in srgb, var(--pch-accent, #6366f1) 12%, #fff);
    color: var(--pch-accent, #6366f1);
    border: 1px solid color-mix(in srgb, var(--pch-accent, #6366f1) 25%, #fff);
}

.pch-gov-section__calc {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.pch-gov-section__link:hover,
.pch-gov-section__calc:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.pch-gov-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
    border-top: 3px solid var(--pch-accent, #6366f1);
}

.pch-gov-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.pch-gov-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.pch-gov-card__head h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 900;
}

.pch-gov-card__head a {
    color: inherit;
    text-decoration: none;
}

.pch-gov-card__head a:hover {
    color: var(--pch-accent, #6366f1);
}

.pch-gov-card__hint {
    margin: 0;
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--pch-accent, #6366f1);
    line-height: 1.4;
}

.pch-gov-card__badge {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.pch-gov-card__badge.is-live {
    background: #d1fae5;
    color: #047857;
}

.pch-gov-card__badge.is-wait {
    background: #fef3c7;
    color: #b45309;
}

.pch-gov-card__badge.is-off {
    background: #f1f5f9;
    color: #64748b;
}

.pch-gov-card__highlight {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(16, 185, 129, 0.06));
    border-radius: 12px;
    padding: 12px;
}

.pch-gov-card__track {
    display: block;
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 700;
    margin-bottom: 4px;
}

.pch-gov-card__min {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--pch-accent, #6366f1);
    line-height: 1;
}

.pch-gov-card__min small {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 700;
}

.pch-gov-card__bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 999px;
    margin-top: 8px;
    overflow: hidden;
}

.pch-gov-card__bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--pch-accent, #6366f1), #10b981);
    border-radius: inherit;
}

.pch-gov-card__tracks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
    flex: 1;
}

.pch-gov-card__tracks li {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.8rem;
    padding: 4px 0;
    border-bottom: 1px dashed #f1f5f9;
}

.pch-gov-card__tracks li span {
    color: #475569;
}

.pch-gov-card__foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: #94a3b8;
    padding-top: 4px;
    border-top: 1px solid #f1f5f9;
}

.pch-gov-card__link {
    color: var(--pch-accent, #6366f1);
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.pch-govs__empty {
    text-align: center;
    color: #64748b;
    padding: 24px;
}

.pch-govs__note {
    margin-top: 16px;
    padding: 12px 16px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    color: #92400e;
    font-size: 0.88rem;
}

.pch-hero--gov {
    padding-bottom: 28px;
}

.pch-hero__grid--gov {
    grid-template-columns: 1fr;
}

.pch-hero__prefix {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 0.82rem;
    font-weight: 800;
    color: #a5b4fc;
}

.pch-gov-page .pch-gov-section {
    border-right: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
}

.pch-govs--mini {
    padding-bottom: 40px;
}

.pch-govs__back {
    margin-top: 16px;
    text-align: center;
}

.pch-govs__back a {
    color: #6366f1;
    font-weight: 800;
    text-decoration: none;
}

.pch-faq {
    padding-bottom: 40px;
}

.pch-faq__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 12px;
}

.pch-faq__item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
}

.pch-faq__item summary {
    cursor: pointer;
    font-weight: 800;
    list-style: none;
}

.pch-faq__item summary::-webkit-details-marker {
    display: none;
}

.pch-faq__item p {
    margin: 10px 0 0;
    color: #64748b;
    line-height: 1.7;
    font-size: 0.92rem;
}

.pch-related {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
    padding: 40px 0 48px;
    border-top: 1px solid #e2e8f0;
}

.pch-related__head {
    margin-bottom: 20px;
}

.pch-related__head h2 {
    margin: 0 0 6px;
    font-size: 1.3rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pch-related__head p {
    margin: 0;
    color: #64748b;
}

.pch-related__grid {
    display: grid;
    gap: 14px;
}

.pch-related__card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.pch-related__card:hover {
    transform: translateX(-4px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.pch-related__card.is-indigo { border-right: 4px solid #6366f1; }
.pch-related__card.is-violet { border-right: 4px solid #8b5cf6; }
.pch-related__card.is-amber { border-right: 4px solid #f59e0b; }
.pch-related__card.is-emerald { border-right: 4px solid #10b981; }

.pch-related__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
}

.is-indigo .pch-related__icon { background: #eef2ff; color: #4338ca; }
.is-violet .pch-related__icon { background: #f5f3ff; color: #7c3aed; }
.is-amber .pch-related__icon { background: #fffbeb; color: #d97706; }
.is-emerald .pch-related__icon { background: #ecfdf5; color: #059669; }

.pch-related__body strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.55;
    margin-bottom: 4px;
}

.pch-related__body small {
    color: #64748b;
    font-size: 0.82rem;
}

.pch-related__go {
    color: #94a3b8;
    font-size: 1rem;
}

@media (max-width: 900px) {
    .pch-hero__grid,
    .pch-calc {
        grid-template-columns: 1fr;
    }

    .pch-hero__visual {
        order: -1;
    }

    .pch-calc {
        margin-top: 0;
        padding-top: 24px;
    }

    .pch-calc__fields {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .pch-gov-section {
        padding: 16px;
    }

    .pch-info-table th {
        width: 42%;
        font-size: 0.8rem;
    }

    .pch-info-table td {
        font-size: 0.82rem;
    }

    .pch-gov-grid {
        grid-template-columns: 1fr;
    }

    .pch-related__card {
        grid-template-columns: auto 1fr;
    }

    .pch-related__go {
        display: none;
    }
}
