/* Forum identity and welcome area */
body[data-theme-key="nour-host-new"] {
  --nge-deep: #202441;
  --nge-light: #494167;
  --nge-accent: #af80c5;
}
body[data-theme-key="nour-host-islamic"] {
  --nge-deep: #102e2b;
  --nge-light: #205147;
  --nge-accent: #d5b272;
}
body:is([data-theme-key="nour-host-new"],[data-theme-key="nour-host-islamic"]) .nh-masthead {
  min-height: 0;
  border-block-end: 3px solid var(--nge-accent);
}
.nh-masthead .nh-brand {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: clamp(16px,3vw,38px); width: fit-content; max-width: 100%;
}
body .nh-masthead .nh-brand-logo119 {
  width: clamp(108px,12vw,164px); height: auto; aspect-ratio: 1;
  padding: 0; border: 0; border-radius: 0; background: transparent; object-fit: contain;
}
.nh-site-title121 {
  color: #fff; font: 700 clamp(1.25rem,2.4vw,2.1rem)/1.6 Tahoma,Arial,sans-serif;
  overflow-wrap: anywhere; max-width: 36ch; text-shadow: 0 1px 4px #0008;
}
body .nh-brand-logo119[src*="nourgyr-evolyx-logo.png"],
body .nf-hero-mark img[src*="nourgyr-evolyx-logo.png"] { mix-blend-mode: screen; }
body .nf-hero:has(.nf-hero-mark) {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(125px,28%);
  align-items: center; gap: clamp(16px,4vw,56px); padding: clamp(20px,4vw,48px);
  background: linear-gradient(115deg,var(--nge-light,#394566),var(--nge-deep,#162340) 80%);
  color: #fff; border: 0; border-block-start: 3px solid var(--nge-accent,#71abd1);
  border-radius: 16px; isolation: isolate; text-align: start;
}
body .nf-hero:has(.nf-hero-mark) :is(h1,p,.nf-kicker) {color:#fff}
body .nf-hero:has(.nf-hero-mark) p {color:#e4e8f2;max-width:65ch;line-height:1.85}
body .nf-hero:has(.nf-hero-mark) .nf-button-ghost {background:transparent;border-color:#d4dcea88;color:#fff}
body[data-theme-key] .nf-hero .nf-hero-mark {
  display: grid; place-items: center; justify-self: center; width:100%; max-width:260px;
  height:auto; min-height:0; aspect-ratio:1; opacity:1; background:transparent;
  border:0; box-shadow:none; border-radius:0; padding:0;
}
body[data-theme-key] .nf-hero .nf-hero-mark::before {display:none}
body[data-theme-key] .nf-hero .nf-hero-mark img {width:100%;height:100%;object-fit:contain;border-radius:0}
body .nf-hero-mark img[src*="/branding/logo"] {mix-blend-mode:normal}
body:is([data-theme-key="nour-host-new"],[data-theme-key="nour-host-islamic"]) .nh-page .nf-card {
  border-radius:12px; box-shadow:0 3px 16px #1821340b;
}
@media(max-width:640px) {
  body .nh-masthead .nh-brand {flex-wrap:nowrap; gap:14px}
  body .nh-masthead .nh-brand-logo119 {width:104px}
  .nh-site-title121 {font-size:1.1rem}
  body .nf-hero:has(.nf-hero-mark) {grid-template-columns:minmax(0,1fr);gap:14px;padding:22px;text-align:center}
  body[data-theme-key] .nf-hero .nf-hero-mark {grid-row:1;width:clamp(130px,40vw,186px)}
  body .nf-hero .nf-actions {justify-content:center}
}
/* The management area follows the reading direction of the installed language. */
.nf121-admin {background:#f0f3f7}
.nf121-admin .nf-header {box-shadow:none;border-block-end:1px solid #cdd6df}
.nf121-console.nf-main {
  display:grid;grid-template-columns:clamp(190px,20vw,265px) minmax(0,1fr);
  gap:clamp(12px,2vw,28px);align-items:start;width:min(1560px,96%);padding-block:22px;
}
.nf121-side {
  position:sticky;top:12px;overflow:auto;max-height:calc(100vh - 28px);
  background:#fff;border:1px solid #bfcddb;border-radius:8px;
  color:#24394c;font:normal 14px/1.65 Tahoma,Arial,sans-serif;
}
.nf121-side a {display:block;color:#284968;text-decoration:none;overflow-wrap:anywhere}
.nf121-side .nf121-home {background:#254666;color:white;font-weight:bold;padding:12px 15px}
.nf121-side summary {padding:9px 12px;font-weight:bold;cursor:pointer;background:#edf2f7;border-block-start:1px solid #cfdae4}
.nf121-side details a {padding:7px 20px;border-inline-start:3px solid transparent}
.nf121-side details a:hover,.nf121-side a:focus-visible {background:#e7f2fd;color:#183e63}
.nf121-side a[aria-current] {background:#e1ecf6;border-inline-start-color:#3473a1;font-weight:bold}
.nf121-workarea {min-width:0;overflow-wrap:anywhere}
.nf121-workarea .nf-panel-heading {padding:14px 18px;color:#203e59;background:#e3ebf2;border:1px solid #c6d2de;border-radius:6px}
.nf121-workarea .nf-panel-heading h1 {color:#203e59;font-size:1.4rem;margin:0}
.nf121-workarea .nf-card {border:1px solid #cbd6e0;border-radius:7px;box-shadow:none}
.nf121-workarea .nf-table-wrap {max-width:100%;overflow-x:auto}
.nf121-workarea table thead {background:#e9eff4;color:#254666}
.nf121-workarea pre {white-space:pre-wrap;overflow-wrap:anywhere}
.nf121-workarea :is(.nf-actions,form) {min-width:0}
.nf121-workarea .nf-admin-grid {grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr))}
@media(max-width:820px) {
  .nf121-console.nf-main {display:block;width:94%}
  .nf121-side {position:static;max-height:45vh;margin-block-end:16px}
}

.nge-thread-guide {padding:clamp(16px,3vw,32px);border-inline-start:4px solid var(--nge-accent,#6079a4);margin-block:16px}
.nge-thread-guide h2 {margin-block:0 .6em;overflow-wrap:anywhere}
.nge-thread-guide ol {padding-inline-start:1.8rem}
.nge-thread-guide li {padding-inline-start:.4em;margin-block:.8em}
.nge-thread-guide li p {margin:0;overflow-wrap:anywhere}
.nge-thread-guide li a {font-size:.9em;text-decoration:underline;text-underline-offset:.18em}
.nge-thread-guide details,.nge-guide-add {margin-block:.7em}
.nge-thread-guide summary,.nge-guide-add summary {cursor:pointer;font-weight:700}
.nge-thread-guide form,.nge-guide-add form {display:grid;gap:.7em;max-width:52rem;padding-block:1em}
.nge-thread-guide fieldset {min-width:0;padding:1em;border:1px solid #8893a480;border-radius:.5em}
.nge-thread-guide label,.nge-guide-add label {display:block}
.nge-thread-guide :is(textarea,input:not([type=checkbox])),.nge-guide-add :is(textarea,input:not([type=hidden])) {display:block;max-width:100%;box-sizing:border-box}
.nge-thread-guide textarea,.nge-guide-add textarea,.nge-thread-guide input[name=title] {width:100%}
.nge-thread-guide button,.nge-guide-add button {justify-self:start}

.nf-theme-switcher,.nf-theme-switcher label {min-width:0;max-width:100%;box-sizing:border-box}
.nf-theme-switcher select {min-width:0;max-width:100%;flex:1 1 auto}
@media(max-width:640px){
  .nf-theme-switcher {width:100%;justify-content:center}
  .nf-theme-switcher label {width:min(100%,26rem)}
}
