/* v9.18.1 — البحث الداخلي + الطريق الواحد + ضبط موضع البحث وحجم الشاشة */
:root{--ajh-search-primary:#0f766e;--ajh-search-accent:#f0a832;--ajh-search-soft:#fffdf6;--ajh-search-line:rgba(78,139,132,.18);--ajh-search-muted:#64748b;}
.ajh-global-search{width:min(1080px,calc(100% - 24px));margin:14px auto 16px;position:relative;z-index:5;direction:rtl;text-align:right;font-family:'Tajawal',system-ui,sans-serif;}
.ajh-global-search.is-choice{width:100%;margin:16px auto 12px;}
.ajh-search-card{background:linear-gradient(135deg,#fffdf6,#f4fbf9);border:1px solid var(--ajh-search-line);border-radius:26px;padding:14px;box-shadow:0 14px 34px rgba(40,30,10,.08);}
.ajh-search-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px;}
.ajh-search-title{display:flex;align-items:center;gap:8px;color:var(--ajh-search-primary);font-weight:900;font-size:1rem;}
.ajh-search-title .ajh-search-icon{width:34px;height:34px;border-radius:13px;display:inline-flex;align-items:center;justify-content:center;background:#ecfdf5;color:#0f766e;border:1px solid rgba(15,118,110,.13);}
.ajh-search-privacy{font-size:.76rem;font-weight:800;color:#687b77;white-space:nowrap;}
.ajh-search-field-wrap{position:relative;display:flex;align-items:center;gap:8px;}
.ajh-search-input{width:100%;border:1px solid rgba(78,139,132,.22);background:#fff;border-radius:18px;padding:13px 15px;font-family:'Tajawal',system-ui,sans-serif;font-size:.96rem;font-weight:700;color:#263b37;outline:none;box-shadow:inset 0 0 0 1px rgba(255,255,255,.5);}
.ajh-search-input:focus{border-color:rgba(15,118,110,.55);box-shadow:0 0 0 4px rgba(15,118,110,.10);}
.ajh-search-clear{border:0;background:#eefaf7;color:#0f766e;border-radius:14px;min-width:42px;height:42px;font-weight:900;cursor:pointer;display:none;}
.ajh-global-search.has-query .ajh-search-clear{display:inline-flex;align-items:center;justify-content:center;}
.ajh-search-examples{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px;}
.ajh-search-chip{border:1px solid rgba(78,139,132,.16);background:#fff;color:#38524d;border-radius:999px;padding:5px 9px;font-size:.78rem;font-weight:800;cursor:pointer;}
.ajh-search-results{margin-top:11px;border-top:1px solid rgba(78,139,132,.12);padding-top:10px;}
.ajh-search-results[hidden]{display:none!important;}
.ajh-results-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 8px;color:#35524d;font-size:.84rem;font-weight:900;}
.ajh-results-title small{color:#7a8c88;font-weight:800;}
.ajh-results-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
.ajh-result-card{display:flex;gap:10px;align-items:flex-start;text-decoration:none!important;color:#263b37!important;background:#fff;border:1px solid rgba(78,139,132,.14);border-radius:18px;padding:11px;min-height:88px;transition:.18s ease;}
.ajh-result-card:hover{transform:translateY(-1px);box-shadow:0 12px 24px rgba(40,30,10,.08);border-color:rgba(15,118,110,.28);}
.ajh-result-icon{width:38px;height:38px;flex:0 0 auto;border-radius:14px;background:#fff7ed;color:#b7791f;display:flex;align-items:center;justify-content:center;font-size:1.05rem;}
.ajh-result-body{min-width:0;flex:1;}
.ajh-result-top{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:3px;}
.ajh-result-kind{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:#ecfdf5;color:#0f766e;border:1px solid rgba(15,118,110,.12);padding:2px 7px;font-size:.68rem;font-weight:900;}
.ajh-result-title{font-size:.94rem;font-weight:900;line-height:1.5;color:#1f3c37;margin:0;}
.ajh-result-desc{font-size:.78rem;font-weight:700;line-height:1.65;color:#657671;margin:0;}
.ajh-more-results{width:100%;margin-top:8px;border:1px dashed rgba(15,118,110,.28);background:#f7fbfa;color:#0f766e;border-radius:16px;padding:10px 12px;font-family:'Tajawal',system-ui,sans-serif;font-weight:900;cursor:pointer;}
.ajh-search-empty{background:#fff;border:1px dashed rgba(78,139,132,.22);border-radius:16px;padding:12px;color:#64748b;font-weight:800;line-height:1.7;text-align:center;}
.road-note,.ajh-road-note{display:inline-flex;align-items:center;gap:6px;background:#fff7ed;color:#9a5a11;border:1px solid rgba(240,168,50,.28);border-radius:999px;padding:6px 10px;font-weight:900;font-size:.82rem;line-height:1.4;margin:8px 0 10px;}
.road-note::before,.ajh-road-note::before{content:'✓';display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;background:#f0a832;color:#fff;font-size:.72rem;}
.stage-support-tools.ajh-road-more{margin-top:10px;grid-column:1/-1;}
.stage-support-tools.ajh-road-more .stage-support-grid{display:grid;gap:10px;}
.stage-support-tools.ajh-road-more .stage-group-label{margin:8px 0 2px;}
.stage-support-tools.ajh-road-more summary strong{font-size:.94rem;}
.stage-resource-card.stage-primary-card{border-width:2px!important;}
.stage-resource-card.stage-primary-card .stage-resource-actions a:first-child::before{content:'↗ ';}
.stage-more-box{grid-column:1/-1;margin-top:4px;border:1px solid rgba(78,139,132,.16);border-radius:22px;background:#fff;overflow:hidden;box-shadow:0 10px 26px rgba(40,30,10,.06);}
.stage-more-box summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 15px;color:#0f766e;font-weight:900;}
.stage-more-box summary::-webkit-details-marker{display:none;}
.stage-more-box[open] summary{border-bottom:1px solid rgba(78,139,132,.12);background:#f7fbf9;}
.stage-more-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px;padding:12px;}
@media(max-width:760px){.ajh-global-search{width:calc(100% - 20px);margin:10px auto 12px}.ajh-search-card{border-radius:22px;padding:12px}.ajh-search-head{align-items:flex-start;flex-direction:column;gap:5px}.ajh-search-privacy{white-space:normal;font-size:.72rem}.ajh-results-grid{grid-template-columns:1fr}.ajh-search-input{font-size:.9rem;padding:12px 13px}.ajh-search-examples{gap:5px}.ajh-search-chip{font-size:.73rem;padding:5px 8px}.stage-more-grid{grid-template-columns:1fr}.road-note,.ajh-road-note{font-size:.78rem;}}
@media print{.ajh-global-search{display:none!important}}


/* v9.18.1 — ضبط شاشة البداية: البحث أعلى الصفحة والواجهة تدخل في الشاشة الأولى */
#browseChoice .choice-shell{max-width:1120px;}
#browseChoice .choice-logo{width:min(310px,70vw)!important;max-height:150px!important;margin-bottom:0!important;}
#browseChoice .choice-shell h1{font-size:clamp(1.75rem,3.2vw,2.75rem)!important;margin:0 0 4px!important;line-height:1.18!important;}
#browseChoice .choice-shell>p{font-size:1rem!important;line-height:1.65!important;max-width:760px!important;}
#browseChoice .choice-title{margin-top:12px!important;font-size:clamp(1.18rem,2.2vw,1.62rem)!important;}
#browseChoice .browse-options{gap:12px!important;margin-top:10px!important;max-width:860px!important;}
#browseChoice .browse-option{min-height:158px!important;padding:17px!important;border-radius:21px!important;}
#browseChoice .browse-option .option-icon{width:46px!important;height:46px!important;border-radius:15px!important;font-size:1.55rem!important;margin-bottom:8px!important;}
#browseChoice .browse-option h2{font-size:1.18rem!important;margin-bottom:4px!important;}
#browseChoice .browse-option p{font-size:.94rem!important;line-height:1.65!important;}
#browseChoice .browse-option .option-action{padding-top:9px!important;}
#browseChoice .choice-note{margin-top:10px!important;padding:9px 13px!important;font-size:.9rem!important;line-height:1.65!important;}
#browseChoice .choice-meta{margin-top:8px!important;font-size:.84rem!important;gap:6px!important;}
#browseChoice .choice-meta span{padding:4px 8px!important;}
#browseChoice .choice-quicklinks{margin-top:9px!important;gap:7px!important;}
#browseChoice .choice-quicklinks a,#browseChoice .choice-quicklinks button{min-height:36px!important;padding:5px 11px!important;font-size:.9rem!important;}
.ajh-global-search.is-choice{width:min(860px,100%)!important;margin:10px auto 8px!important;}
.ajh-global-search.is-choice .ajh-search-card{padding:10px 12px!important;border-radius:20px!important;box-shadow:0 10px 24px rgba(40,30,10,.065)!important;}
.ajh-global-search.is-choice .ajh-search-head{margin-bottom:6px!important;}
.ajh-global-search.is-choice .ajh-search-title{font-size:.94rem!important;}
.ajh-global-search.is-choice .ajh-search-title .ajh-search-icon{width:30px!important;height:30px!important;border-radius:11px!important;}
.ajh-global-search.is-choice .ajh-search-privacy{font-size:.7rem!important;}
.ajh-global-search.is-choice .ajh-search-input{padding:10px 13px!important;border-radius:15px!important;font-size:.9rem!important;}
.ajh-global-search.is-choice .ajh-search-clear{min-width:38px!important;height:38px!important;border-radius:12px!important;}
.ajh-global-search.is-choice .ajh-search-examples{display:none!important;}
.ajh-global-search.is-choice .ajh-search-results{margin-top:8px!important;padding-top:8px!important;}
.ajh-global-search.is-choice .ajh-result-card{min-height:76px!important;padding:9px!important;border-radius:15px!important;}
.ajh-global-search.is-choice .ajh-result-icon{width:34px!important;height:34px!important;border-radius:12px!important;}
.ajh-global-search.is-choice .ajh-result-title{font-size:.88rem!important;}
.ajh-global-search.is-choice .ajh-result-desc{font-size:.73rem!important;line-height:1.55!important;}

@media(max-width:760px){
  #browseChoice.browse-choice{padding:10px 0 16px!important;align-items:start!important;}
  #browseChoice .choice-logo{width:min(190px,52vw)!important;max-height:76px!important;}
  #browseChoice .choice-shell h1{font-size:1.48rem!important;margin-bottom:2px!important;}
  #browseChoice .choice-shell>p{font-size:.88rem!important;line-height:1.55!important;}
  #browseChoice .choice-title{margin-top:8px!important;font-size:1.05rem!important;}
  #browseChoice .browse-options{gap:8px!important;margin-top:8px!important;}
  #browseChoice .browse-option{min-height:124px!important;padding:12px!important;border-radius:17px!important;}
  #browseChoice .browse-option .option-icon{width:38px!important;height:38px!important;font-size:1.28rem!important;margin-bottom:5px!important;}
  #browseChoice .browse-option h2{font-size:1rem!important;line-height:1.35!important;}
  #browseChoice .browse-option p{font-size:.82rem!important;line-height:1.52!important;}
  #browseChoice .browse-option .option-action{padding-top:6px!important;font-size:.86rem!important;}
  #browseChoice .choice-note{margin-top:7px!important;padding:7px 10px!important;font-size:.78rem!important;line-height:1.55!important;}
  #browseChoice .choice-meta{display:none!important;}
  #browseChoice .choice-quicklinks{margin-top:7px!important;gap:6px!important;}
  #browseChoice .choice-quicklinks a,#browseChoice .choice-quicklinks button{min-height:34px!important;font-size:.78rem!important;padding:4px 9px!important;border-radius:10px!important;}
  .ajh-global-search.is-choice{width:100%!important;margin:7px auto 6px!important;}
  .ajh-global-search.is-choice .ajh-search-card{padding:8px!important;border-radius:16px!important;}
  .ajh-global-search.is-choice .ajh-search-head{display:none!important;}
  .ajh-global-search.is-choice .ajh-search-input{padding:9px 11px!important;border-radius:13px!important;font-size:.82rem!important;}
  .ajh-global-search.is-choice .ajh-search-clear{min-width:34px!important;height:34px!important;}
  .ajh-global-search.is-choice .ajh-results-grid{grid-template-columns:1fr!important;}
  .ajh-global-search.is-choice .ajh-result-desc{display:none!important;}
}

@media(max-height:720px) and (min-width:761px){
  #browseChoice.browse-choice{padding:14px 0 18px!important;}
  #browseChoice .choice-logo{max-height:112px!important;width:min(260px,42vw)!important;}
  #browseChoice .choice-shell h1{font-size:2rem!important;}
  #browseChoice .browse-option{min-height:138px!important;padding:14px!important;}
  #browseChoice .choice-note{padding:7px 12px!important;}
  #browseChoice .choice-meta{display:none!important;}
}


/* v9.19.0 تحسينات الطريق والبحث */
.ajh-road-diagnosis{grid-column:1/-1;margin:0 0 12px;padding:12px;border:1px solid rgba(15,118,110,.18);border-radius:22px;background:linear-gradient(135deg,#f8fffd,#fffaf0);box-shadow:0 10px 24px rgba(15,118,110,.06)}
.ajh-road-diagnosis-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px;color:#134e4a;font-family:'Tajawal',system-ui,sans-serif}.ajh-road-diagnosis-head strong{font-size:.98rem}.ajh-road-diagnosis-head span{font-size:.78rem;color:#64748b;font-weight:900}.ajh-road-diagnosis-options{display:flex;gap:7px;flex-wrap:wrap}.ajh-road-choice{border:1px solid rgba(15,118,110,.22);background:#fff;color:#0f766e;border-radius:999px;padding:7px 10px;font-family:'Tajawal',system-ui,sans-serif;font-weight:900;cursor:pointer;text-decoration:none!important;display:inline-flex;align-items:center;justify-content:center}.ajh-road-choice.active{background:#0f766e;color:#fff}.ajh-road-choice.muted{border-style:dashed;color:#6b7280}.ajh-road-selected-label{display:inline-flex;margin:0 0 8px;padding:6px 10px;border-radius:999px;background:#ecfeff;color:#155e75;border:1px solid #cffafe;font-weight:900;font-size:.78rem}.ajh-road-more-reminder{margin:10px 12px 0;padding:8px 10px;border-radius:16px;background:#fff7ed;border:1px solid rgba(240,168,50,.25);color:#9a5a11;font-weight:900;font-size:.82rem}.ajh-road-more-reminder span{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#f0a832;color:#fff;margin-inline-end:4px}.ajh-back-to-road{position:fixed;right:14px;bottom:14px;z-index:60;background:#0f766e;color:#fff;border-radius:999px;padding:9px 12px;box-shadow:0 10px 24px rgba(15,118,110,.24);font-family:'Tajawal',system-ui,sans-serif;font-weight:900;font-size:.82rem;text-decoration:none}@media(max-width:760px){.ajh-road-diagnosis{padding:10px;border-radius:19px}.ajh-road-diagnosis-head{display:block}.ajh-road-diagnosis-head span{display:block;margin-top:2px}.ajh-road-choice{font-size:.78rem;padding:6px 8px}.ajh-back-to-road{right:10px;bottom:10px;font-size:.76rem;padding:8px 10px}}

.ajh-road-hidden-source{display:none!important}
