/* Tiraz Labs: «حلول تقنية» (programs.html, section "programs"). Owner: agent F (simplified UX pass, agent 4).
   Mobile first (390), tokens only, logical properties only. Scope: #programs. Base classes do most of the work. */

#programs .pg-h2 { margin: 0 0 clamp(24px, 3vw, 40px); max-width: 22ch; }

/* ---------- what we build: one card, four rows ---------- */
#programs .pg-offer { display: grid; gap: 16px; max-width: 860px; }
#programs .pg-offer-t { margin: 0; }
#programs .pg-rows { margin: 0; padding: 0; list-style: none; border-block-start: 1px solid var(--line); }
#programs .pg-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding-block: 16px; border-block-end: 1px solid var(--line); }
#programs .pg-row-t { color: var(--text); min-width: 0; font-weight: 500; }
#programs .pg-from { font-size: var(--t-small); color: var(--text-faint); white-space: nowrap; }
#programs .pg-from b { color: var(--text-soft); font-weight: 600; unicode-bidi: isolate; }
#programs .pg-how-line { display: flex; align-items: center; gap: 12px; margin: 4px 0 0; color: var(--text-soft); font-size: var(--t-small); }

/* ---------- ready-made programs (compact, secondary) ---------- */
#programs .pg-list-head { display: grid; gap: 8px; margin-block-end: clamp(24px, 3vw, 40px); }
#programs .pg-list-head .pg-h2 { margin: 0; }
#programs .pg-list-note { margin: 0; color: var(--text-faint); font-size: var(--t-small); }
#programs .pg-grid { display: grid; gap: var(--col-gap); margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) { #programs .pg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
#programs .pg-item { display: flex; min-width: 0; }
#programs .pg-card { position: relative; display: flex; flex-direction: column; gap: 10px; width: 100%; padding: clamp(20px, 2.4vw, 28px); }
#programs .pg-card:has(.pg-card-link:focus-visible) { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
#programs .pg-card-link:focus-visible { outline: none; }
#programs .pg-card-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
#programs .pg-sector { font-size: var(--t-small); color: var(--text-faint); }
#programs .pg-card-name { margin: 0; }
#programs .pg-card-link { color: inherit; text-decoration: none; }
#programs .pg-card-value { margin: 0; color: var(--text-soft); max-width: 46ch; }
#programs .pg-go { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin-block-start: auto; font-size: var(--t-small); color: var(--text-soft); }
@media (hover: hover) { #programs .pg-card:hover .pg-go { color: var(--text); } }

/* ---------- closing ---------- */
#programs .pg-close-in { display: grid; gap: 20px; justify-items: center; text-align: center; }
#programs .pg-close-line { margin: 0; max-width: 24ch; }
#programs .pg-back { margin: 0; color: var(--text-soft); font-size: var(--t-small); }
#programs .pg-back .text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
#programs .pg-close .btn-row { justify-content: center; }
