/* MIHHAR — مطابقة السيرة مع الوصف الوظيفي (4.26.0). This tool's page only. Mobile-first, RTL, no animation. */
.mh-cjm { display: grid; gap: 14px; }
.mh-cjm__field { display: grid; gap: 6px; min-width: 0; }
.mh-cjm__label { color: var(--t-text); font-size: 14.5px; font-weight: 700; line-height: 1.6; }
.mh-cjm__label em { color: var(--t-gold); font-style: normal; }
.mh-cjm textarea {
  width: 100%; min-width: 0; min-height: 180px; padding: 12px; border-radius: 12px; resize: vertical;
  border: 1px solid rgba(255,255,255,.14); background: var(--t-raise); color: var(--t-text);
  font: inherit; font-size: 16px; line-height: 1.7;
}
@media (min-width: 1025px) { .mh-cjm textarea { min-height: 220px; } }
.mh-cjm textarea::placeholder { color: var(--t-text-3); }
.mh-cjm textarea:focus-visible, .mh-cjm button:focus-visible, .mh-tool__result button:focus-visible, .mh-tool__result a:focus-visible { outline: 2px solid var(--t-accent); outline-offset: 2px; }
.mh-cjm__hint { margin: 0; color: var(--t-text-3); font-size: 13px; line-height: 1.7; }
.mh-cjm__lang { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; min-width: 0; }
.mh-cjm__lang legend { padding: 0; margin-bottom: 6px; width: 100%; }
.mh-cjm__lang label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--t-text-2); font-size: 15px; cursor: pointer; }
.mh-cjm__lang input { width: 18px; height: 18px; accent-color: var(--t-accent); margin: 0; }
.mh-cjm__actions { display: flex; }
.mh-cjm__submit, .mh-cjm__copy { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; }
.mh-cjm__submit { width: 100%; border: 0; background: var(--t-accent); color: #080b12; }
@media (min-width: 640px) { .mh-cjm__submit { width: auto; } }
.mh-cjm__submit:disabled { opacity: .6; cursor: progress; }
.mh-cjm__status { margin: 0; min-height: 1.7em; color: var(--t-text-2); font-size: 14.5px; }
.mh-cjm__status.is-error { color: #ff9b9b; }

/* Result */
.mh-cjm__result { display: grid; gap: 12px; min-width: 0; }
.mh-cjm__score { display: grid; gap: 8px; padding: 14px 16px; border-radius: 14px; background: var(--t-raise); border: 1px solid var(--t-line); }
.mh-cjm__pct { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.mh-cjm__num { font-size: clamp(34px, 10vw, 46px); font-weight: 800; line-height: 1.1; color: var(--t-text); direction: ltr; unicode-bidi: isolate; }
.mh-cjm__band { font-size: 15px; font-weight: 700; color: var(--t-text-2); }
.mh-cjm__bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.mh-cjm__fill { display: block; height: 100%; border-radius: 999px; background: var(--t-accent); }
.mh-cjm__score.is-high .mh-cjm__fill { background: #2ecc71; }
.mh-cjm__score.is-low .mh-cjm__fill { background: var(--t-gold); }
.mh-cjm__counts { margin: 0; color: var(--t-text-2); font-size: 14px; }
.mh-cjm__group { display: grid; gap: 8px; min-width: 0; }
.mh-cjm__h3 { margin: 6px 0 0; font-size: 17px; font-weight: 800; }
.mh-cjm__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.mh-cjm__chips li { max-width: 100%; padding: 5px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; line-height: 1.6; overflow-wrap: anywhere; unicode-bidi: plaintext; }
.mh-cjm__chips.is-matched li { background: rgba(46,204,113,.12); color: #7ee2a8; }
.mh-cjm__chips.is-missing li { background: rgba(235,184,36,.12); color: var(--t-gold); }
.mh-cjm__empty { margin: 0; color: var(--t-text-3); font-size: 14px; }
.mh-cjm__skills { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .mh-cjm__skills { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mh-cjm__explain { margin: 0; color: var(--t-text-2); font-size: 15px; line-height: 1.8; }
.mh-cjm__notes { margin: 0; padding-inline-start: 20px; color: var(--t-text-3); font-size: 13.5px; line-height: 1.8; display: grid; gap: 4px; }
.mh-cjm__bar-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.mh-cjm__copy { border: 1px solid rgba(79,140,255,.45); background: transparent; color: var(--t-accent); font-size: 15px; min-height: 44px; padding: 0 18px; }
.mh-cjm__copy.is-done { border-color: rgba(46,204,113,.5); color: #7ee2a8; }
.mh-cjm__cta { margin-top: 18px; padding: 16px; border-radius: 14px; border: 1px solid var(--t-line); background: var(--t-bg); display: grid; gap: 6px; }
.mh-cjm__cta-title { margin: 0; color: var(--t-text); font-size: 16.5px; font-weight: 800; }
.mh-cjm__cta-link, .mh-cjm__cta-more a { display: inline-flex; align-items: center; min-height: 44px; color: var(--t-accent) !important; font-weight: 700; }
.mh-cjm__cta-more { margin: 0; color: var(--t-text-2); font-size: 14.5px; }
#mh-cjm-result:focus { outline: none; }
