/* Webnaa Forum. Brand: ink #0b1215, slate-teal #446e7d, bronze #c4a574, IBM Plex Sans Arabic. */

:root {
	--ink: #0b1215;
	--primary: #446e7d;
	--primary-deep: #375a66;
	--bronze: #c4a574;
	--bronze-deep: #6b542c;
	--bronze-tint: #f6efe3;

	--bg: #f4f7f8;
	--surface: #ffffff;
	--surface-2: #f4f7f8;
	--line: #e6eaec;
	--line-2: #c9d3d7;
	--text: #0b1215;
	--text-2: #3d4c53;
	--muted: #5b6b72;
	--link: #375a66;
	--chip-bg: #e9f0f2;
	--chip-fg: #375a66;
	--hero-bg: #0b1215;
	--hero-fg: #ffffff;
	--hero-2: #c8d2d6;
	--focus: #446e7d;
	--shadow: 0 1px 2px rgba(11, 18, 21, .04), 0 8px 28px rgba(11, 18, 21, .06);

	--font-ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
	--font-en: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
	--radius: 14px;
	--radius-sm: 10px;
}

/* Light for everyone by default; dark only when the visitor picks it with the moon button. */
:root[data-theme="dark"] {
	--bg: #0b1215;
	--surface: #121c21;
	--surface-2: #0f171b;
	--line: #1f2e35;
	--line-2: #2a3c44;
	--text: #e9eef0;
	--text-2: #c8d2d6;
	--muted: #9fb0b7;
	--link: #8fc1d1;
	--chip-bg: #1d333c;
	--chip-fg: #b9d4dd;
	--hero-bg: #0f171b;
	--bronze-tint: #2a2416;
	--focus: #8fc1d1;
	--shadow: none;
}

/* ---------- Base & typography ---------- */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-ar);
	font-size: 18px;
	line-height: 1.8;
	font-weight: 400;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-kerning: normal;
}
body.wnf-en { font-family: var(--font-en); line-height: 1.65; }

h1, h2, h3, h4 { margin: 0; color: var(--text); font-weight: 700; line-height: 1.35; letter-spacing: 0; }
.wnf-en h1, .wnf-en h2, .wnf-en h3 { letter-spacing: -.012em; line-height: 1.25; }
p { margin: 0; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--text); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

.wnf-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wnf-hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }
.wnf-skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.wnf-skip:focus { top: 12px; color: #fff; }
.wnf-i { flex: 0 0 auto; }
.wnf-muted { color: var(--muted); font-size: 14px; }
.wnf-small { color: var(--muted); font-size: 13px; text-align: center; margin-top: 12px; }

.wnf-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wnf-wrap { padding: 0 16px; } }

/* ---------- Buttons ---------- */

.wnf-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 0 16px; border-radius: var(--radius-sm);
	border: 1px solid transparent; background: transparent; color: var(--text);
	font-size: 15px; font-weight: 600; line-height: 1; cursor: pointer; white-space: nowrap;
	transition: background .15s, border-color .15s, color .15s;
}
.wnf-btn--primary { background: var(--primary); color: #fff; }
.wnf-btn--primary:hover { background: var(--primary-deep); color: #fff; }
.wnf-btn--dark { background: var(--ink); color: #fff; }
.wnf-btn--dark:hover { background: #1d333c; color: #fff; }
.wnf-btn--ghost { border-color: var(--line); background: var(--surface); }
.wnf-btn--ghost:hover { border-color: var(--line-2); color: var(--text); }
.wnf-btn--text { color: var(--link); padding: 0 10px; }
.wnf-btn--icon { width: 44px; padding: 0; border-color: var(--line); background: var(--surface); }
.wnf-btn--block { width: 100%; }
.wnf-btn--google { width: 100%; min-height: 52px; border-color: var(--line-2); background: #fff; color: #0b1215; font-size: 16px; }
.wnf-btn--google:hover { border-color: var(--primary); color: #0b1215; }
.wnf-btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Header ---------- */

.wnf-header { background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 2px 10px rgba(11, 18, 21, .06); position: sticky; top: 0; z-index: 20; }
/* The whole header stays in view while scrolling, as on webnaa.com (2026-10-31), also under the admin bar of a signed-in
   owner, which is fixed above 600px (32px, 46px up to 782px) and scrolls away below that. */
.admin-bar .wnf-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .wnf-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .wnf-header { top: 0; } }
.wnf-header__in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 12px; padding-bottom: 12px; }
.wnf-brand { display: flex; align-items: center; gap: 10px; }
.wnf-brand img { height: 36px; width: auto; display: block; }
:root[data-theme="dark"] .wnf-brand img { filter: brightness(0) invert(1); }
.wnf-brand__tag { font-size: 16px; font-weight: 700; color: var(--primary); border-inline-start: 2px solid var(--line); padding-inline-start: 10px; }
.wnf-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 16px; font-weight: 600; }
.wnf-nav a { color: var(--text); }
.wnf-nav a:hover { color: var(--primary); }
.wnf-header [data-wnf-login] { padding: 0 20px; }
.wnf-header__tools { flex: 1 1 280px; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.wnf-search { flex: 1 1 200px; max-width: 320px; }
.wnf-search label { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.wnf-search input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 14px; color: var(--text); outline: none; }
.wnf-me { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px; border-radius: var(--radius-sm); color: var(--text); font-size: 14px; font-weight: 600; }
/* Phones: one clean row (logo · moon · language · sign in), then the search. The links live in the page itself. */
@media (max-width: 760px) {
	.wnf-header__in { gap: 10px 8px; padding-top: 10px; padding-bottom: 10px; }
	.wnf-brand { flex: 1 1 auto; }
	.wnf-brand img { height: 30px; }
	.wnf-brand__tag { font-size: 15px; }
	.wnf-header__tools { display: contents; }
	.wnf-nav { display: none; }
	.wnf-search { order: 9; max-width: none; flex-basis: 100%; }
	.wnf-header .wnf-btn { min-height: 40px; }
	.wnf-header .wnf-btn--icon { width: 40px; }
	.wnf-header .wnf-btn--ghost { padding: 0 12px; }
	.wnf-me span { display: none; }
	.wnf-long { display: none; }
	.wnf-short { display: inline; }
}
@media (max-width: 420px) { .wnf-header [data-wnf-theme] { display: none; } }
/* Tablets and small laptops: the buttons stay together on one line; the search gives way. */
@media (min-width: 761px) { .wnf-header__tools { flex-wrap: nowrap; } .wnf-search { flex: 1 1 140px; min-width: 120px; } }
@media (min-width: 761px) { .wnf-short { display: none; } }

/* ---------- Hero & composer ---------- */

.wnf-hero { background: var(--hero-bg); color: var(--hero-fg); padding: 56px 0 44px; }
.wnf-hero__kicker { color: var(--bronze); font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.wnf-en .wnf-hero__kicker { text-transform: uppercase; letter-spacing: .06em; }
.wnf-hero__title { color: #fff; font-size: clamp(28px, 4.2vw, 44px); line-height: 1.3; max-width: 820px; }
.wnf-hero__lead { color: var(--hero-2); font-size: 18px; line-height: 1.75; max-width: 720px; margin: 12px 0 24px; }

.wnf-composer { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 10px; max-width: 900px; box-shadow: var(--shadow); }
.wnf-hero .wnf-composer { border-color: transparent; }
.wnf-composer__row { display: flex; flex-wrap: wrap; gap: 10px; }
.wnf-composer__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.wnf-composer__actions .wnf-btn--primary { margin-inline-start: auto; min-height: 48px; padding: 0 22px; font-size: 16px; }
.wnf-composer .wnf-hint { color: var(--muted); font-size: 13px; line-height: 1.6; }
.wnf-composer--reply { max-width: none; margin-top: 8px; }

.wnf-field { display: flex; flex-direction: column; gap: 6px; }
.wnf-field__label { font-size: 13px; font-weight: 600; color: var(--muted); }
.wnf-field__label--big { font-size: 18px; font-weight: 700; color: var(--text); }
.wnf-field--grow { flex: 999 1 320px; }
.wnf-field--section { flex: 1 1 200px; }
.wnf-field input, .wnf-field select, .wnf-field textarea {
	width: 100%; min-height: 48px; padding: 10px 14px;
	border: 1px solid var(--line-2); border-radius: var(--radius-sm);
	background: var(--surface); color: var(--text); font-size: 16px; line-height: 1.7; outline: none;
}
.wnf-field input:focus, .wnf-field select:focus, .wnf-field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(68, 110, 125, .18); }
.wnf-field input[name="bbp_topic_title"] { font-size: 18px; font-weight: 600; }
.wnf-field textarea { resize: vertical; min-height: 120px; }
.wnf-code { font-size: 28px !important; font-weight: 700; letter-spacing: 12px; text-align: center; }

.wnf-format { display: flex; flex-wrap: wrap; gap: 4px; }
.wnf-format button {
	min-width: 40px; height: 36px; padding: 0 10px; border-radius: 8px;
	border: 1px solid var(--line); background: var(--surface-2); color: var(--text-2);
	font-size: 15px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.wnf-format button:hover { border-color: var(--line-2); color: var(--text); }

.wnf-attach { position: relative; cursor: pointer; }
.wnf-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.wnf-thumbs:empty { display: none; }
.wnf-thumb { position: relative; width: 92px; height: 92px; border-radius: 10px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.wnf-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wnf-thumb button { position: absolute; top: 4px; inset-inline-end: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(11, 18, 21, .72); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.wnf-thumb--busy::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .6) linear-gradient(90deg, transparent, rgba(68, 110, 125, .25), transparent) 0 0 / 200% 100%; animation: wnf-shimmer 1.2s linear infinite; }
@keyframes wnf-shimmer { to { background-position: -200% 0; } }

.wnf-new { margin: 6px 0 4px; }
.wnf-new > summary { list-style: none; display: inline-flex; }
.wnf-new > summary::-webkit-details-marker { display: none; }
.wnf-new[open] > summary { margin-bottom: 12px; }

/* ---------- Layout ---------- */

.wnf-layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; padding-top: 32px; padding-bottom: 64px; }
.wnf-feed { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.wnf-side { flex: 1 1 290px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.wnf-feed__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.wnf-feed__head h2, .wnf-page-title { font-size: 24px; }

.wnf-tabs { display: flex; gap: 4px; padding: 4px; border-radius: var(--radius-sm); background: var(--line); }
.wnf-tabs a { min-height: 36px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 8px; color: var(--text-2); font-size: 14px; font-weight: 600; }
.wnf-tabs a[aria-current="page"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(11, 18, 21, .12); }

/* ---------- Cards ---------- */

.wnf-cards { display: flex; flex-direction: column; gap: 12px; }
.wnf-card { position: relative; display: flex; gap: 16px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .15s, box-shadow .15s; }
.wnf-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.wnf-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.wnf-card__title { font-size: 21px; font-weight: 600; line-height: 1.55; }
.wnf-card__title a { color: var(--text); }
.wnf-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.wnf-card__excerpt { color: var(--text-2); font-size: 17px; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wnf-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14.5px; color: var(--muted); }
.wnf-meta__name { color: var(--text); font-weight: 600; }
.wnf-chip { position: relative; z-index: 1; display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; background: var(--chip-bg); color: var(--chip-fg); font-size: 12.5px; font-weight: 600; line-height: 1.7; }
.wnf-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.wnf-stats > span { display: inline-flex; align-items: center; gap: 6px; }
.wnf-pill { display: inline-flex; align-items: center; gap: 6px; padding: 1px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.wnf-pill--staff { background: var(--bronze-tint); color: var(--bronze-deep); }
:root[data-theme="dark"] .wnf-pill--staff { color: var(--bronze); }
.wnf-pill--best { background: var(--chip-bg); color: var(--chip-fg); }
.wnf-pill--open { border: 1px dashed var(--line-2); color: var(--text-2); }
.wnf-pill--best-solid { margin-inline-start: auto; background: var(--bronze); color: var(--ink); padding: 4px 12px; font-weight: 700; }

.wnf-av { flex: 0 0 auto; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; line-height: 1; overflow: hidden; }
.wnf-av--staff { background: #fff; border: 1px solid var(--line); }
.wnf-av--staff img { width: 86%; height: auto; }
.wnf-verified { display: inline-flex; color: var(--bronze); margin-inline-start: 4px; vertical-align: middle; }

.wnf-pager { display: flex; justify-content: center; gap: 10px; margin-top: 8px; }
.wnf-empty { background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 36px 24px; text-align: center; color: var(--text-2); display: flex; flex-direction: column; gap: 14px; align-items: center; }

/* ---------- Sidebar ---------- */

.wnf-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.wnf-box__title { font-size: 17px; }
.wnf-box--bronze { background: var(--bronze-tint); border-color: transparent; }
.wnf-box--bronze p { color: var(--text-2); font-size: 15px; }
.wnf-box--bronze .wnf-btn { align-self: flex-start; }
.wnf-box__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wnf-sections { display: flex; flex-direction: column; gap: 2px; margin: 0 -8px; }
.wnf-sections a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--radius-sm); color: var(--text); font-size: 16.5px; font-weight: 500; line-height: 1.5; }
.wnf-sections a:hover, .wnf-sections a[aria-current="page"] { background: var(--surface-2); }
.wnf-dot { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 auto; }
.wnf-dot--lg { width: 14px; height: 14px; border-radius: 4px; margin-top: 10px; }
.wnf-rules { margin: 0; padding-inline-start: 18px; color: var(--text-2); font-size: 14.5px; display: flex; flex-direction: column; gap: 4px; }

/* ---------- Sections archive & section page ---------- */

.wnf-section-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 14px; }
.wnf-section-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.wnf-section-card:hover { border-color: var(--primary); color: var(--text); }
.wnf-section-card .wnf-dot--lg { margin: 0 0 4px; }
.wnf-section-card__title { font-size: 17px; font-weight: 700; }
.wnf-section-card__desc { font-size: 14.5px; color: var(--text-2); line-height: 1.7; }
.wnf-section-card__count { font-size: 13px; color: var(--muted); margin-top: auto; }
.wnf-forum__head { display: flex; gap: 12px; align-items: flex-start; }
.wnf-forum__head h1 { font-size: 30px; }
.wnf-forum__head p { font-size: 16px; margin-top: 4px; }
.wnf-crumbs, .bbp-breadcrumb { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.bbp-breadcrumb-sep { color: var(--line-2); }

/* ---------- Topic & replies ---------- */

.wnf-topic { display: flex; flex-direction: column; gap: 14px; }
.wnf-post { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px 28px; display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 90px; }
@media (max-width: 640px) { .wnf-post { padding: 18px; } }
.wnf-post--lead { box-shadow: var(--shadow); }
.wnf-post--staff { border-color: var(--bronze); }
.wnf-post--best { border: 2px solid var(--bronze); }
.wnf-post__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.wnf-post__who { display: flex; flex-direction: column; line-height: 1.4; }
.wnf-post__name { color: var(--text); font-weight: 700; display: inline-flex; align-items: center; }
.wnf-post__head .wnf-chip { margin-inline-start: auto; }
.wnf-post__title { font-size: clamp(24px, 3vw, 32px); line-height: 1.4; }
.wnf-replies-title { font-size: 20px; margin-top: 10px; }
.wnf-replies { display: flex; flex-direction: column; gap: 12px; }

/* Long-form reading: the heart of the forum. */
.wnf-content { font-size: 19px; line-height: 2; color: var(--text); max-width: 74ch; overflow-wrap: anywhere; }
.wnf-en .wnf-content { font-size: 18px; line-height: 1.8; }
@media (max-width: 640px) { .wnf-content { font-size: 18px; line-height: 1.95; } }
.wnf-content > * + * { margin-top: .85em; }
.wnf-content p { margin: 0; }
.wnf-content p + p { margin-top: .85em; }
.wnf-content h3 { font-size: 1.2em; font-weight: 700; margin-top: 1.3em; line-height: 1.45; }
.wnf-content strong, .wnf-content b { font-weight: 700; color: var(--text); }
.wnf-content ul, .wnf-content ol { margin: .6em 0; padding-inline-start: 1.4em; }
.wnf-content li { padding-inline-start: .2em; }
.wnf-content li + li { margin-top: .35em; }
.wnf-content li::marker { color: var(--primary); font-weight: 700; }
.wnf-content blockquote { margin: .9em 0; padding: 12px 18px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); }
.wnf-content a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.wnf-content code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .88em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; direction: ltr; unicode-bidi: isolate; }
.wnf-content pre { direction: ltr; text-align: left; overflow: auto; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; font-size: 14px; line-height: 1.6; }
.wnf-content img { display: block; max-width: 100%; max-height: 620px; width: auto; height: auto; margin: 0 auto; border-radius: 14px; cursor: zoom-in; background: var(--surface-2); }
.wnf-content figure { margin: 1.4em 0; }
.wnf-content figcaption { margin-top: 10px; text-align: center; font-size: .86em; line-height: 1.75; color: var(--muted); }

/* ---------- Article editor ---------- */

.wnf-editor { display: flex; flex-direction: column; gap: 8px; }
.wnf-editor__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.wnf-editor__area {
	position: relative; min-height: 200px; max-width: none; max-height: 70vh; overflow-y: auto;
	padding: 16px 18px; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
	background: var(--surface); outline: none; cursor: text;
}
.wnf-editor__area:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(68, 110, 125, .18); }
.wnf-editor__area.is-empty::before { content: attr(data-placeholder); position: absolute; inset-inline: 18px; top: 16px; color: var(--muted); pointer-events: none; }
.wnf-editor__area figure { position: relative; margin: 1em 0; padding: 10px; border-radius: 14px; border: 1px dashed var(--line-2); }
.wnf-editor__area figure img { cursor: default; max-height: 420px; }
.wnf-editor__area figcaption { min-height: 1.8em; padding: 4px 8px; border-radius: 8px; outline: none; cursor: text; }
.wnf-editor__area figcaption:focus { background: var(--surface-2); }
.wnf-editor__area figcaption:empty::before { content: attr(data-placeholder); color: var(--muted); opacity: .8; }
.wnf-fig__tools { position: absolute; top: 16px; inset-inline-end: 16px; display: flex; gap: 4px; }
.wnf-fig__tools button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(11, 18, 21, .72); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.wnf-fig__tools button:hover { background: var(--primary); }
.wnf-fig--busy img { opacity: .5; }
.wnf-fig--busy::after { content: ""; position: absolute; inset: 10px; border-radius: 12px; background: linear-gradient(90deg, transparent, rgba(68, 110, 125, .28), transparent) 0 0 / 200% 100%; animation: wnf-shimmer 1.2s linear infinite; }
.wnf-editor__tip { font-size: 13px; color: var(--muted); line-height: 1.6; }

.wnf-card-note { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--chip-fg); background: var(--chip-bg); border-radius: var(--radius-sm); padding: 8px 12px; }
.wnf-card-save { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.wnf-check { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; cursor: pointer; min-height: 44px; }
.wnf-check input { width: 20px; height: 20px; accent-color: var(--primary); }
.wnf-ad--compact { padding: 10px 14px; gap: 6px; }
.wnf-ad--compact .wnf-ad__note { display: none; }
.wnf-ad--compact .wnf-ad__link { min-height: 40px; font-size: 14px; padding: 0 12px; }

.wnf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wnf-act { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font-size: 14px; font-weight: 600; cursor: pointer; }
.wnf-act:hover { border-color: var(--primary); color: var(--text); }
.wnf-act[aria-pressed="true"] { background: var(--chip-bg); border-color: var(--primary); color: var(--text); }
.wnf-count:empty { display: none; }
.wnf-count::before { content: "·"; margin-inline-end: 6px; }
.wnf-admin-links { margin-inline-start: auto; display: inline-flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; }
.wnf-admin-links a { color: var(--muted); }
.wnf-admin-links a:hover { color: var(--text); }

/* ---------- bbPress leftovers (notices, pagination, profiles, search) ---------- */

.bbp-template-notice, .wnf-notice { background: var(--bronze-tint); border-radius: var(--radius-sm); padding: 12px 16px; color: var(--text); font-size: 15px; }
.bbp-template-notice.error, .bbp-template-notice.warning { background: #fdecea; color: #7a1d14; }
:root[data-theme="dark"] .bbp-template-notice.error { background: #3a1a17; color: #f6c9c3; }
.bbp-template-notice ul { margin: 0; padding: 0; list-style: none; }
.bbp-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--muted); margin: 6px 0; }
.bbp-pagination-links { display: flex; gap: 6px; }
.bbp-pagination-links a, .bbp-pagination-links span.current { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 600; }
.bbp-pagination-links span.current { background: var(--primary); border-color: var(--primary); color: #fff; }
#bbpress-forums { font-size: 16px; }
#bbpress-forums fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--surface); }
#bbpress-forums legend { font-weight: 700; padding: 0 6px; }
#bbpress-forums input[type="text"], #bbpress-forums input[type="email"], #bbpress-forums input[type="url"], #bbpress-forums select, #bbpress-forums textarea { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); }
#bbpress-forums .button, #bbpress-forums button[type="submit"] { min-height: 44px; padding: 0 18px; border-radius: var(--radius-sm); border: 0; background: var(--primary); color: #fff; font-weight: 600; cursor: pointer; }
#bbpress-forums ul.bbp-topics, #bbpress-forums ul.bbp-replies, #bbpress-forums ul.bbp-forums { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
#bbpress-forums li.bbp-header, #bbpress-forums li.bbp-footer { background: var(--surface-2); padding: 10px 16px; font-size: 13px; color: var(--muted); }
#bbpress-forums li.bbp-body > ul { padding: 12px 16px; border-top: 1px solid var(--line); }
#bbp-user-wrapper { display: flex; flex-direction: column; gap: 14px; }
#bbp-single-user-details { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
#bbp-user-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
#bbp-user-navigation a { display: inline-flex; min-height: 40px; align-items: center; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
#bbp-user-navigation .current a { background: var(--primary); border-color: var(--primary); color: #fff; }
#bbp-user-avatar { display: none; }

/* ---------- Modal & lightbox ---------- */

.wnf-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.wnf-modal__backdrop { position: absolute; inset: 0; background: rgba(11, 18, 21, .55); }
.wnf-modal__sheet { position: relative; width: 100%; max-width: 440px; background: var(--surface); color: var(--text); border-radius: 20px; padding: 28px 26px 24px; box-shadow: 0 20px 60px rgba(11, 18, 21, .35); display: flex; flex-direction: column; gap: 14px; }
.wnf-modal__sheet h2 { font-size: 23px; padding-inline-end: 36px; }
.wnf-modal__sheet [data-wnf-step] { display: flex; flex-direction: column; gap: 14px; }
.wnf-modal__sheet form { display: flex; flex-direction: column; gap: 12px; }
.wnf-modal__x { position: absolute; top: 14px; inset-inline-end: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.wnf-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.wnf-or::before, .wnf-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.wnf-error { margin: 0; padding: 10px 14px; border-radius: var(--radius-sm); background: #fdecea; color: #7a1d14; font-size: 14px; }
@media (max-width: 640px) {
	.wnf-modal { align-items: flex-end; padding: 0; }
	.wnf-modal__sheet { max-width: none; border-radius: 22px 22px 0 0; padding-bottom: 32px; }
}

.wnf-lightbox { position: fixed; inset: 0; z-index: 110; background: rgba(11, 18, 21, .92); display: flex; align-items: center; justify-content: center; padding: 24px; }
.wnf-lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; }
.wnf-lightbox .wnf-modal__x { background: rgba(255, 255, 255, .14); color: #fff; }

/* ---------- Footer ---------- */

.wnf-footer { background: var(--surface); border-top: 1px solid var(--line); }
.wnf-footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 18px; padding-top: 22px; padding-bottom: 22px; font-size: 14px; color: var(--muted); }
.wnf-footer nav { display: flex; gap: 18px; }

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; }
}
.wnf-post__nameline { display: inline-flex; align-items: center; gap: 2px; }

/* ---------- Free ads ---------- */

.wnf-ad-box { border: 1px dashed var(--line-2); border-radius: var(--radius-sm); padding: 12px 14px; display: flex; flex-direction: column; gap: 12px; }
.wnf-ad-box:has(input[data-wnf-ad-toggle]:checked) { border-style: solid; border-color: var(--bronze); background: var(--bronze-tint); }
.wnf-ad-toggle { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 15px; line-height: 1.6; }
.wnf-ad-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wnf-ad-toggle__ui { flex: 0 0 auto; width: 44px; height: 26px; border-radius: 999px; background: var(--line-2); position: relative; transition: background .15s; margin-top: 1px; }
.wnf-ad-toggle__ui::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s; }
.wnf-ad-toggle input:checked + .wnf-ad-toggle__ui { background: var(--primary); }
.wnf-ad-toggle input:checked + .wnf-ad-toggle__ui::after { transform: translateX(18px); }
.wnf-ar .wnf-ad-toggle input:checked + .wnf-ad-toggle__ui::after { transform: translateX(-18px); }
.wnf-ad-toggle input:focus-visible + .wnf-ad-toggle__ui { outline: 3px solid var(--focus); outline-offset: 2px; }
.wnf-ad-toggle .wnf-muted { display: block; font-size: 13.5px; }
.wnf-ad-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }

.wnf-ad { position: relative; border-radius: 14px; border: 1px solid var(--bronze); background: var(--bronze-tint); padding: 16px 18px 12px; display: flex; flex-direction: column; gap: 10px; max-width: 72ch; }
.wnf-ad__tag { align-self: flex-start; background: var(--bronze); color: var(--ink); font-size: 12.5px; font-weight: 700; padding: 2px 12px; border-radius: 999px; }
.wnf-ad__links { display: flex; flex-wrap: wrap; gap: 8px; }
.wnf-ad__link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 15px; }
.wnf-ad__link:hover { border-color: var(--primary); color: var(--text); }
.wnf-ad__note { font-size: 12.5px; color: var(--muted); }
.wnf-pill--ad { background: var(--bronze); color: var(--ink); }

/* ---------- Front page intro (reading first; no sign-up prompts) ---------- */

.wnf-intro { background: var(--surface); border-bottom: 1px solid var(--line); }
.wnf-intro__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding-top: 28px; padding-bottom: 28px; }
.wnf-intro__text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 8px; }
.wnf-intro__title { font-size: clamp(28px, 3.6vw, 40px); }
.wnf-intro__lead { color: var(--text-2); font-size: 18px; line-height: 1.75; max-width: 62ch; }
.wnf-intro__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.wnf-steps { list-style: none; counter-reset: wnf-step; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 6px 0 0; padding: 0; font-size: 15.5px; font-weight: 600; color: var(--text); }
.wnf-steps li { counter-increment: wnf-step; display: inline-flex; align-items: center; gap: 8px; }
.wnf-steps li::before { content: counter(wnf-step); display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--bronze-tint); color: var(--bronze-deep); font-size: 14px; font-weight: 700; }
.wnf-intro__more { display: none; }
@media (max-width: 599px) {
	.wnf-intro__actions, .wnf-intro__actions .wnf-btn { width: 100%; }
	.wnf-intro__actions .wnf-btn { justify-content: center; }
	.wnf-intro__more { display: block; width: 100%; text-align: center; font-size: 15.5px; font-weight: 600; }
}

/* Home hero: its own colour band, so the eye goes header → question → topics without blending. */
.wnf-intro--hero { background: linear-gradient(135deg, #2c4952 0%, #446e7d 100%); border-bottom: 0; color: #fff; }
.wnf-intro--hero .wnf-intro__in { padding-top: 36px; padding-bottom: 36px; }
.wnf-intro--hero .wnf-intro__title { color: #fff; }
.wnf-intro--hero .wnf-intro__lead { color: rgba(255, 255, 255, .9); font-size: 19px; }
.wnf-intro--hero .wnf-steps { color: #fff; }
.wnf-intro--hero .wnf-steps li::before { background: var(--bronze); color: #1d1a14; }
.wnf-intro--hero .wnf-btn--hero { background: #fff; color: #20343b; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.wnf-intro--hero .wnf-btn--hero:hover { background: #f6efe3; color: #20343b; }
.wnf-intro--hero .wnf-btn--outline { border-color: rgba(255, 255, 255, .6); color: #fff; background: transparent; }
.wnf-intro--hero .wnf-btn--outline:hover { border-color: #fff; background: rgba(255, 255, 255, .1); color: #fff; }
.wnf-intro--hero .wnf-intro__more { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
:root[data-theme="dark"] .wnf-intro--hero { background: linear-gradient(135deg, #142a31 0%, #24434e 100%); }
@media (max-width: 599px) { .wnf-intro--hero .wnf-intro__in { padding-top: 26px; padding-bottom: 26px; } .wnf-intro--hero .wnf-intro__lead { font-size: 17.5px; } }
.wnf-btn--lg { min-height: 52px; padding: 0 24px; font-size: 17px; }
.wnf-new--home:not([open]) { display: none; }
.wnf-new, #new-post { scroll-margin-top: 96px; }
.wnf-new .wnf-composer { max-width: none; }
.wnf-field--wide { grid-column: 1 / -1; }
.wnf-field textarea[name="wnf_ad_about"] { min-height: 70px; }
.wnf-ad__about { font-size: 16.5px; line-height: 1.8; color: var(--text); }
.wnf-ad-group { grid-column: 1 / -1; margin: 6px 0 0; font-size: 14px; font-weight: 700; color: var(--text-2); }
.wnf-ad-group:first-child { margin-top: 0; }
.wnf-ad__facts { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.wnf-ad__fact { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--text-2); }
.wnf-ad__fact svg { color: var(--bronze-deep); flex: 0 0 auto; }
.wnf-ad__fact--title { font-weight: 700; color: var(--text); }
.wnf-phone { grid-column: 1 / -1; }
.wnf-phone__row { display: flex; gap: 8px; }
.wnf-phone__row select { flex: 0 1 230px; min-width: 0; }
.wnf-phone__row input { flex: 1 1 160px; min-width: 0; }
.wnf-ad__link--wa { background: #1f8f4e; border-color: #1f8f4e; color: #fff; }
.wnf-ad__link--wa:hover { background: #18773f; color: #fff; }
.wnf-owner__where { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; color: var(--bronze); font-weight: 600; }

/* ---------- Owner card (Webnaa team): the distinctive one ---------- */

.wnf-owner { position: relative; overflow: clip; display: flex; flex-direction: column; gap: 16px; padding: 22px 24px; border-radius: 18px; background: linear-gradient(135deg, #0b1215 0%, #15232a 70%, #2a2416 100%); color: #fff; border: 1.5px solid var(--bronze); box-shadow: 0 14px 40px rgba(11, 18, 21, .22); max-width: 74ch; }
.wnf-owner::before { content: ""; position: absolute; inset-inline-end: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(196, 165, 116, .28), transparent 70%); pointer-events: none; }
.wnf-owner__top { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.wnf-owner__logo { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; background: #fff; border-radius: 14px; padding: 12px 16px; box-shadow: 0 0 0 3px rgba(196, 165, 116, .45); }
.wnf-owner__logo img { height: 42px; width: auto; display: block; }
.wnf-owner__text { flex: 1 1 240px; display: flex; flex-direction: column; gap: 4px; }
.wnf-owner__name { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 20px; font-weight: 700; color: #fff; }
.wnf-owner__name .wnf-i { color: var(--bronze); }
.wnf-owner__badge { font-size: 12.5px; font-weight: 700; color: #0b1215; background: var(--bronze); border-radius: 999px; padding: 1px 10px; }
.wnf-owner__line { font-size: 15.5px; line-height: 1.7; color: #d3dcdf; }
.wnf-owner__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.wnf-owner__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); color: #fff; font-weight: 700; font-size: 15px; }
.wnf-owner__btn:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.wnf-owner__btn--site { background: var(--bronze); border-color: var(--bronze); color: #0b1215; }
.wnf-owner__btn--site:hover { background: #d8bd8f; color: #0b1215; }
.wnf-owner__btn--wa { background: #1f8f4e; border-color: #1f8f4e; }
.wnf-owner__btn--wa:hover { background: #18773f; }
.wnf-owner--compact { padding: 14px 16px; gap: 12px; }
.wnf-owner--compact .wnf-owner__logo { padding: 8px 12px; }
.wnf-owner--compact .wnf-owner__logo img { height: 28px; }
.wnf-owner--compact .wnf-owner__line { display: none; }
.wnf-owner--compact .wnf-owner__btn { min-height: 40px; font-size: 14px; padding: 0 12px; }

/* Topic thumbnail in lists */
.wnf-card__thumb { order: 3; flex: 0 0 auto; width: 168px; height: 112px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); align-self: center; }
.wnf-card .wnf-card__body { order: 2; }
@media (max-width: 640px) {
	.wnf-card--thumb { flex-wrap: wrap; }
	.wnf-card__thumb { order: 0; width: 100%; height: 170px; }
}

/* ---------- Member profiles ---------- */

.wnf-hintbar { background: var(--bronze-tint); border-bottom: 1px solid var(--line); }
.wnf-hintbar__in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-top: 10px; padding-bottom: 10px; font-size: 15.5px; }
.wnf-hintbar__in > span { flex: 1 1 320px; }

.wnf-profile { display: flex; flex-direction: column; gap: 18px; }
.wnf-profile__sec { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.wnf-profile__sec legend { font-size: 17px; font-weight: 700; padding: 0 6px; }
.wnf-profile__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.wnf-profile__grid legend { grid-column: 1 / -1; }
.wnf-types { display: flex; flex-wrap: wrap; gap: 8px; }
.wnf-type { position: relative; cursor: pointer; }
.wnf-type input { position: absolute; opacity: 0; }
.wnf-type span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--line-2); font-weight: 600; font-size: 15.5px; background: var(--surface); }
.wnf-type input:checked + span { border-color: var(--primary); background: var(--chip-bg); color: var(--chip-fg); }
.wnf-type input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.wnf-services { display: flex; flex-direction: column; gap: 10px; }
.wnf-service-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; padding: 12px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); }
.wnf-service-row .wnf-btn--text { justify-self: start; }
.wnf-profile__save { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }

.wnf-member { display: flex; flex-direction: column; gap: 16px; }
.wnf-member__head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
.wnf-member__who { flex: 1 1 260px; display: flex; flex-direction: column; gap: 4px; }
.wnf-member__name { font-size: 26px; display: inline-flex; align-items: center; gap: 6px; }
.wnf-member__title { font-size: 17px; font-weight: 600; color: var(--text-2); }
.wnf-member__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 14.5px; color: var(--muted); }
.wnf-member__about { font-size: 17.5px; line-height: 1.9; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.wnf-member__h { font-size: 21px; }
.wnf-svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.wnf-svc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.wnf-svc__name { font-size: 17.5px; }
.wnf-svc__desc { font-size: 15.5px; color: var(--text-2); line-height: 1.75; }
.wnf-svc__price { margin-top: auto; font-weight: 700; color: var(--bronze-deep); }
.wnf-pill--type { background: var(--chip-bg); color: var(--chip-fg); }
.wnf-ad__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.wnf-ad__svc { font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Admin notifications ---------- */

.wnf-bell { position: relative; }
.wnf-bell__badge { position: absolute; top: -6px; inset-inline-end: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #d93025; color: #fff; font-size: 12.5px; font-weight: 700; line-height: 22px; text-align: center; box-shadow: 0 0 0 2px var(--surface); }
.wnf-notifs { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.wnf-notif + .wnf-notif { border-top: 1px solid var(--line); }
.wnf-notif a { display: block; padding: 12px 14px; color: var(--text); font-size: 15.5px; line-height: 1.7; }
.wnf-notif a:hover { background: var(--surface-2); color: var(--text); }
.wnf-notif--new a { background: #fdecea; }
.wnf-notif__dot { display: inline-block; margin-inline-end: 8px; padding: 0 8px; border-radius: 999px; background: #d93025; color: #fff; font-size: 12px; font-weight: 700; }
.wnf-notif__title { font-weight: 600; color: var(--link); }

/* ---------- Admin panel ---------- */

.wnf-btn--panel { border-color: var(--bronze); color: var(--bronze-deep); }
.wnf-panel { display: flex; flex-direction: column; gap: 16px; }
.wnf-panel h2 { font-size: 20px; margin-top: 10px; }
.wnf-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.wnf-stat { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.wnf-stat__n { font-size: 34px; font-weight: 700; line-height: 1.1; color: var(--text); }
.wnf-stat__l { font-size: 14px; color: var(--text-2); line-height: 1.5; }
.wnf-stat--live { border-color: #2f6b55; background: #e3efe9; }
.wnf-stat--live .wnf-stat__n { color: #1f4d3c; }
.wnf-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.wnf-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.wnf-table th, .wnf-table td { padding: 10px 12px; text-align: start; border-bottom: 1px solid var(--line); white-space: nowrap; }
.wnf-table th { background: var(--surface-2); font-size: 13px; color: var(--muted); font-weight: 600; }
.wnf-table tr:last-child td { border-bottom: 0; }
.wnf-live { display: inline-block; margin-inline-start: 6px; padding: 0 8px; border-radius: 999px; background: #e3efe9; color: #1f4d3c; font-size: 12px; font-weight: 700; }

/* Admin "now / today" tiles (forum home + panel) */
.wnf-dash-wrap { margin-top: 20px; }
.wnf-dash { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.wnf-dash__tile { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.wnf-dash__tile:hover { border-color: var(--line-2); color: var(--text); background: var(--surface-2); }
.wnf-dash__n { font-size: 32px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.wnf-dash__l { font-size: 15px; font-weight: 600; }
.wnf-dash__s { font-size: 13px; color: var(--muted); line-height: 1.5; }
.wnf-dash__tile--live { border-color: #2f6b55; background: #e3efe9; }
.wnf-dash__tile--live .wnf-dash__n { color: #1f4d3c; }
.wnf-dash__tile--live .wnf-dash__l::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-inline-end: 6px; border-radius: 50%; background: #2f9e6b; vertical-align: middle; animation: wnf-pulse 1.6s ease-in-out infinite; }
@keyframes wnf-pulse { 50% { opacity: .3; } }
.wnf-dash__tile--alert.is-on { border-color: #d93025; background: #fdecea; }
.wnf-dash__tile--alert.is-on .wnf-dash__n, .wnf-dash__tile--alert.is-on .wnf-dash__l { color: #b42318; }
[data-theme="dark"] .wnf-dash__tile--live { background: #17302a; }
[data-theme="dark"] .wnf-dash__tile--live .wnf-dash__n { color: #8fd3b4; }
[data-theme="dark"] .wnf-dash__tile--alert.is-on { background: #3a1a17; }
[data-theme="dark"] .wnf-dash__tile--alert.is-on .wnf-dash__n, [data-theme="dark"] .wnf-dash__tile--alert.is-on .wnf-dash__l { color: #ff8a80; }
@media (max-width: 1023px) { .wnf-dash { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 599px) { .wnf-dash { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wnf-dash__n { font-size: 26px; } .wnf-dash__tile--alert { grid-column: 1 / -1; } }
.wnf-panel__h--alert { color: #b42318; }
.wnf-notifs--alert { border-color: #f3b4ae; }
.wnf-online { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.wnf-online li { padding: 10px 14px; font-size: 15px; line-height: 1.7; }
.wnf-online li + li { border-top: 1px solid var(--line); }
.wnf-online .wnf-live { margin-inline: 0 6px; }
.wnf-bar { display: inline-block; width: calc(var(--w) * .8px); height: 8px; margin-inline-end: 8px; border-radius: 4px; background: var(--bronze); vertical-align: middle; }
.wnf-card--waiting { border-inline-start: 4px solid #d93025; }
.wnf-pill--alert { background: #d93025; color: #fff; font-weight: 700; text-decoration: none; }
.wnf-pill--alert:hover { background: #b42318; color: #fff; }

/* ---------- Contact ---------- */

.wnf-page-body { font-size: 16.5px; }
.wnf-contact { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.wnf-ok { margin: 0; padding: 10px 14px; border-radius: var(--radius-sm); background: #e3efe9; color: #1f4d3c; font-size: 15px; }

/* Locked identity fields (name, phone, country) */
.wnf-lock-note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); }
.wnf-lock-note p { flex: 1 1 320px; margin: 0; font-size: 14.5px; color: var(--text-2); line-height: 1.7; }
.wnf-btn--wa { background: #1f8f4e; border-color: #1f8f4e; color: #fff; }
.wnf-btn--wa:hover { background: #18773f; border-color: #18773f; color: #fff; }
.wnf-profile input[readonly], .wnf-profile select:disabled, .wnf-profile input:disabled, .wnf-composer select:disabled, .wnf-composer input:disabled { background: var(--surface-2); color: var(--text-2); cursor: not-allowed; }
.wnf-team-edit { margin: 0; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--bronze-tint); color: var(--bronze-deep); font-weight: 600; }

/* Home hero: "for everyone" + two clear paths (question first) */
.wnf-hero2 { display: flex; flex-direction: column; gap: 18px; padding-top: 32px; padding-bottom: 30px; }
.wnf-hero2__head { display: flex; flex-direction: column; gap: 6px; }
.wnf-paths { display: grid; grid-template-columns: 1.25fr 1fr; gap: 14px; }
.wnf-path { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px 22px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .28); color: #fff; text-decoration: none; transition: background .15s, transform .15s; }
.wnf-path:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.wnf-path--main { background: rgba(255, 255, 255, .16); border: 2px solid rgba(255, 255, 255, .7); }
.wnf-path__icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bronze); color: #1d1a14; font-size: 22px; font-weight: 800; line-height: 1; }
.wnf-path__title { font-size: 22px; font-weight: 700; }
.wnf-path__text { font-size: 16.5px; line-height: 1.75; color: rgba(255, 255, 255, .9); flex: 1; }
.wnf-path .wnf-btn { margin-top: 6px; pointer-events: none; }
.wnf-hero2__more { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0; font-size: 15.5px; font-weight: 600; color: rgba(255, 255, 255, .7); }
.wnf-hero2__more a { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) {
	.wnf-paths { grid-template-columns: 1fr; }
	.wnf-hero2 { padding-top: 24px; padding-bottom: 24px; gap: 14px; }
	.wnf-path { padding: 18px; }
	.wnf-path .wnf-btn { width: 100%; }
	.wnf-hero2__more { justify-content: center; }
}
/* Asking a question: no card or ad options, just the question. */
[data-wnf-new][data-mode="ask"] .wnf-ad-box, [data-wnf-new][data-mode="ask"] .wnf-card-note { display: none; }
.wnf-box--ask { border: 2px solid var(--primary); }
.wnf-box--ask p { color: var(--text-2); font-size: 15.5px; line-height: 1.7; }
.wnf-box--ask .wnf-btn { align-self: flex-start; }

/* Own posts: edit / delete */
.wnf-owner-acts { display: inline-flex; gap: 8px; margin-inline-start: auto; }
.wnf-act--danger { color: #b42318; }
.wnf-act--danger:hover { border-color: #b42318; color: #b42318; }

/* Saved card + change request */
.wnf-profile__h { font-size: 20px; margin: 0; }
.wnf-request { display: flex; flex-direction: column; gap: 12px; }
.wnf-request__what { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 16px; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.wnf-request__what legend { padding: 0 6px; font-weight: 700; }

/* ---------- Images in posts: captions, soft reveal, gallery viewer ---------- */
.wnf-post .wnf-content figure img { box-shadow: 0 8px 24px rgba(11, 18, 21, .10); transition: transform .35s ease, box-shadow .35s ease; }
.wnf-post .wnf-content figure:hover img { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(11, 18, 21, .16); }
.wnf-post .wnf-content figcaption { position: relative; max-width: 60ch; margin: 12px auto 0; padding-top: 10px; font-size: .88em; color: var(--text-2); }
.wnf-post .wnf-content figcaption::before { content: ""; position: absolute; top: 0; left: 50%; width: 36px; height: 3px; margin-left: -18px; border-radius: 3px; background: var(--bronze); }
.wnf-reveal { opacity: 0; transform: translateY(18px) scale(.985); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.wnf-reveal.is-seen { opacity: 1; transform: none; }
.wnf-noscroll { overflow: hidden; }

.wnf-lightbox { flex-direction: column; gap: 14px; padding: 56px 72px 40px; background: rgba(8, 13, 16, .94); backdrop-filter: blur(6px); }
.wnf-lb__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; max-height: 100%; min-height: 0; opacity: 0; transform: scale(.97); transition: opacity .28s ease, transform .28s ease; }
.wnf-lightbox.is-in .wnf-lb__fig { opacity: 1; transform: none; }
.wnf-lb__fig img { max-width: 100%; max-height: calc(100vh - 190px); object-fit: contain; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.wnf-lb__cap { max-width: 70ch; padding: 10px 18px; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #f1f4f5; font-size: 16.5px; line-height: 1.7; text-align: center; }
.wnf-lb__nav { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; transition: background .15s, transform .15s; }
.wnf-lb__nav:hover { background: rgba(255, 255, 255, .26); transform: scale(1.06); }
.wnf-lb__nav--prev { inset-inline-start: 14px; }
.wnf-lb__nav--next { inset-inline-end: 14px; }
html:not([dir="rtl"]) .wnf-lb__nav svg { transform: scaleX(-1); }
.wnf-lb__count { position: absolute; top: 18px; inset-inline-start: 20px; color: rgba(255, 255, 255, .85); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.wnf-lightbox.is-single .wnf-lb__nav { display: none; }
@media (max-width: 640px) {
	.wnf-lightbox { padding: 56px 10px 24px; }
	.wnf-lb__nav { top: auto; bottom: 18px; margin-top: 0; width: 46px; height: 46px; }
	.wnf-lb__fig img { max-height: calc(100vh - 230px); }
	.wnf-lb__cap { font-size: 15.5px; margin-bottom: 56px; }
}
@media (prefers-reduced-motion: reduce) { .wnf-lb__fig, .wnf-reveal, .wnf-post .wnf-content figure img { transition: none; } }
.wnf-dash__cc { color: #1f4d3c; font-weight: 600; }
.wnf-dash__cc:empty { display: none; }
:root[data-theme="dark"] .wnf-dash__cc { color: #8fd3b4; }
.wnf-online__cc { margin: 0; font-size: 15.5px; font-weight: 600; }
.wnf-online__from { display: inline-block; margin-inline-end: 6px; font-size: 14px; color: var(--text-2); }
.wnf-credit { font-size: 13px; }

/* ---------- Owner's inbox ---------- */
.wnf-inbox-btn { position: relative; }
.wnf-inbox { display: flex; flex-direction: column; gap: 14px; }
.wnf-inbox__tabs { align-self: flex-start; flex-wrap: wrap; }
.wnf-msgs { display: flex; flex-direction: column; gap: 10px; }
.wnf-msg { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.wnf-msg.is-unread { border-color: #d93025; box-shadow: inset 4px 0 0 #d93025; }
[dir="rtl"] .wnf-msg.is-unread { box-shadow: inset -4px 0 0 #d93025; }
.wnf-msg__head { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "dot who time" "dot subj subj"; gap: 4px 12px; align-items: center; padding: 14px 18px; cursor: pointer; list-style: none; }
.wnf-msg__head::-webkit-details-marker { display: none; }
.wnf-msg__head:hover { background: var(--surface-2); }
.wnf-msg__dot { grid-area: dot; width: 10px; height: 10px; border-radius: 50%; background: #d93025; }
.wnf-msg__who { grid-area: who; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 16px; }
.wnf-msg.is-unread .wnf-msg__who strong { font-weight: 800; }
.wnf-msg__subj { grid-area: subj; color: var(--text-2); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wnf-msg__time { grid-area: time; color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.wnf-msg__kind--card { background: var(--bronze-tint); color: var(--bronze-deep); }
.wnf-msg__body { display: flex; flex-direction: column; gap: 12px; padding: 4px 18px 18px; border-top: 1px solid var(--line); }
.wnf-msg__meta { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.wnf-msg__text { font-size: 16.5px; line-height: 1.85; white-space: normal; }
.wnf-msg__reply { padding: 12px 14px; border-radius: var(--radius-sm); background: #e3efe9; color: #17352b; font-size: 15.5px; line-height: 1.8; }
:root[data-theme="dark"] .wnf-msg__reply { background: #17302a; color: #d5efe4; }
.wnf-msg__reply-head { display: block; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.wnf-msg__form { display: flex; flex-direction: column; gap: 10px; }
.wnf-msg__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
@media (max-width: 600px) { .wnf-msg__head { grid-template-areas: "dot who" "dot time" "dot subj"; grid-template-columns: auto 1fr; } }

/* ---------- Owner's hub on their own member page ---------- */
.wnf-hub { display: flex; flex-direction: column; gap: 12px; }
.wnf-hub__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.wnf-hub__tile { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; }
.wnf-hub__tile:hover { border-color: var(--primary); color: var(--text); background: var(--surface-2); }
.wnf-hub__n { font-size: 32px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.wnf-hub__l { font-size: 16px; font-weight: 700; }
.wnf-hub__s { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.wnf-hub__tile.is-alert { border-color: #d93025; background: #fdecea; }
.wnf-hub__tile.is-alert .wnf-hub__n, .wnf-hub__tile.is-alert .wnf-hub__l { color: #b42318; }
:root[data-theme="dark"] .wnf-hub__tile.is-alert { background: #3a1a17; }
:root[data-theme="dark"] .wnf-hub__tile.is-alert .wnf-hub__n, :root[data-theme="dark"] .wnf-hub__tile.is-alert .wnf-hub__l { color: #ff8a80; }
@media (max-width: 900px) { .wnf-hub__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Search: a real button + results ---------- */
.wnf-search { display: flex; align-items: stretch; gap: 0; }
.wnf-search .wnf-search__box { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--surface-2); border: 1px solid var(--line); border-inline-end: 0; color: var(--muted); }
[dir="rtl"] .wnf-search .wnf-search__box { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
html:not([dir="rtl"]) .wnf-search .wnf-search__box { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.wnf-search .wnf-search__box:focus-within { border-color: var(--primary); background: var(--surface); }
.wnf-search input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 14.5px; color: var(--text); outline: none; }
.wnf-search__go { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px; border: 0; background: var(--primary); color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .15s, transform .08s; }
[dir="rtl"] .wnf-search__go { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
html:not([dir="rtl"]) .wnf-search__go { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.wnf-search__go:hover { background: var(--primary-deep); }
.wnf-search__go:active, .wnf-search__btn:active { transform: scale(.95); }
.wnf-search__go.is-busy svg, .wnf-search__btn.is-busy span { visibility: hidden; }
.wnf-search__go.is-busy, .wnf-search__btn.is-busy { position: relative; pointer-events: none; }
.wnf-search__go.is-busy::after, .wnf-search__btn.is-busy::after { content: ""; position: absolute; top: 50%; left: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: wnf-spin .7s linear infinite; }
.wnf-search__go.is-busy span { visibility: hidden; }
@keyframes wnf-spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) { .wnf-search__go span { display: none; } .wnf-search__go { padding: 0 14px; } }

.wnf-results { display: flex; flex-direction: column; gap: 18px; }
.wnf-results__form { display: flex; gap: 10px; }
.wnf-results__form .wnf-search__box { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 16px; border-radius: var(--radius); background: var(--surface); border: 2px solid var(--line); color: var(--muted); }
.wnf-results__form .wnf-search__box:focus-within { border-color: var(--primary); }
.wnf-results__form input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 17px; color: var(--text); outline: none; }
.wnf-results__form .wnf-btn--lg { min-height: 54px; }
.wnf-results__title { font-size: 22px; margin: 0; }
.wnf-results__group { display: flex; flex-direction: column; gap: 10px; }
.wnf-results__h { font-size: 15px; color: var(--muted); font-weight: 700; margin: 0; }
.wnf-results__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wnf-chip--lg { padding: 8px 14px; font-size: 15px; }
.wnf-results__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.wnf-hit { display: flex; flex-direction: column; gap: 6px; padding: 16px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .15s, box-shadow .15s; }
.wnf-hit:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.wnf-hit__title { font-size: 19px; font-weight: 700; color: var(--text); line-height: 1.5; }
.wnf-hit__title:hover { color: var(--primary); }
.wnf-hit__snippet { margin: 0; font-size: 15.5px; line-height: 1.85; color: var(--text-2); }
.wnf-hit__where { font-weight: 700; color: var(--primary); margin-inline-end: 4px; }
.wnf-hit__meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13.5px; color: var(--muted); }
.wnf-results mark { background: #fbe7b5; color: inherit; padding: 0 2px; border-radius: 4px; }
:root[data-theme="dark"] .wnf-results mark { background: #5b4a1d; }
@media (max-width: 600px) { .wnf-results__form { flex-direction: column; } }

/* Long card text stays tidy */
.wnf-ad, .wnf-ad * { overflow-wrap: anywhere; }
.wnf-ad__about { white-space: pre-line; }
.wnf-svc__desc { white-space: pre-line; overflow-wrap: anywhere; }
.wnf-post__title, .wnf-card__title, .wnf-hit__title { overflow-wrap: anywhere; }

/* Members write in either language on either forum: each paragraph takes the direction of its own text,
   so Arabic on the English forum (and English on the Arabic one) reads right, punctuation included. */
.wnf-content p, .wnf-content li, .wnf-content h2, .wnf-content h3, .wnf-content blockquote, .wnf-content figcaption,
.wnf-post__title, .wnf-card__title, .wnf-card__excerpt, .wnf-hit__title, .wnf-hit__snippet,
.wnf-ad__about, .wnf-ad__title, .wnf-svc__name, .wnf-svc__desc, .wnf-member__about, .wnf-member__title,
.wnf-msg__text, .wnf-msg__subj { unicode-bidi: plaintext; text-align: start; }

/* ---------- Team actions + archive ---------- */
.wnf-owner-acts { flex-wrap: wrap; }
.wnf-owner-acts a:not(.wnf-act) { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text-2); font-size: 14px; font-weight: 600; }
.wnf-owner-acts a:not(.wnf-act):hover { border-color: var(--primary); color: var(--text); }
.wnf-card__del { display: inline-flex; align-items: center; gap: 4px; min-height: 30px; padding: 0 10px; border: 1px solid #f3b4ae; border-radius: 999px; background: var(--surface); color: #b42318; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.wnf-card__del:hover { background: #fdecea; }
.wnf-arch { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.wnf-arch__item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.wnf-arch__main { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.wnf-arch__title { font-size: 17px; unicode-bidi: plaintext; }
.wnf-arch__excerpt { margin: 0; font-size: 15px; color: var(--text-2); line-height: 1.75; unicode-bidi: plaintext; }
.wnf-arch__meta { margin: 0; font-size: 13.5px; color: var(--muted); }
.wnf-arch__left { color: #b42318; font-weight: 700; }
.wnf-arch__acts { display: flex; gap: 8px; flex-wrap: wrap; }

.wnf-count { align-self: flex-end; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.wnf-count.is-near { color: #b42318; font-weight: 700; }

/* Free tools link in the header: green "free" box that shakes on hover, like the main site header. */
.wnf-nav a[href^="https://webnaa.com/tools/"] { margin-block: -6px; padding: 6px 12px; border-radius: 8px; background: #15803d; color: #fff; font-weight: 700; box-shadow: 0 2px 8px rgba(21, 128, 61, .3); transition: background-color .15s ease, box-shadow .15s ease; }
.wnf-nav a[href^="https://webnaa.com/tools/"]:hover,
.wnf-nav a[href^="https://webnaa.com/tools/"]:focus-visible { background: #166534; color: #fff; box-shadow: 0 4px 14px rgba(21, 128, 61, .45); animation: wnf-free-shake .55s ease-in-out; }
@keyframes wnf-free-shake {
	0%, 100% { transform: translateX(0) rotate(0); }
	15% { transform: translateX(-3px) rotate(-4deg); }
	30% { transform: translateX(3px) rotate(4deg); }
	45% { transform: translateX(-3px) rotate(-3deg); }
	60% { transform: translateX(2px) rotate(2deg); }
	75% { transform: translateX(-1px) rotate(-1deg); }
}
@media (prefers-reduced-motion: reduce) {
	.wnf-nav a[href^="https://webnaa.com/tools/"] { animation: none !important; }
}

/* Phones: the menu links show as their own centred row under the logo, above the search. */
@media (max-width: 760px) {
	.wnf-nav { display: flex; order: 8; flex-basis: 100%; justify-content: center; align-items: center; gap: 4px 12px; padding-top: 6px; border-top: 1px solid var(--line); font-size: 14.5px; }
	.wnf-nav a { padding-block: 6px; }
	.wnf-nav a[href^="https://webnaa.com/tools/"] { margin-block: -4px; padding: 4px 10px; }
}

/* «من نحن» / About us: gold button (the About page's gold) with a soft shine, so it stands out on every screen. */
.wnf-nav a[href$="/about/"] { position: relative; overflow: hidden; margin-block: -6px; padding: 6px 12px; border-radius: 8px; background: linear-gradient(135deg, #f3dc97, #d4af37); border: 1px solid #c99a2e; color: #3d2c06; font-weight: 700; box-shadow: 0 2px 8px rgba(168, 128, 47, .35); }
.wnf-nav a[href$="/about/"]:hover,
.wnf-nav a[href$="/about/"]:focus-visible { background: linear-gradient(135deg, #f6e3a8, #c99a2e); border-color: #a8802f; color: #3d2c06; }
.wnf-nav a[href$="/about/"]::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .7) 50%, transparent 70%); transform: translateX(-120%); animation: wnf-shine 3.5s ease-in-out infinite; pointer-events: none; }
@keyframes wnf-shine { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@media (max-width: 760px) { .wnf-nav a[href$="/about/"] { margin-block: -4px; padding: 4px 10px; } }
@media (prefers-reduced-motion: reduce) { .wnf-nav a[href$="/about/"]::after { display: none; } }
/* narrow phones: the five menu links stay on one row */
@media (max-width: 400px) { .wnf-nav { gap: 4px 8px; font-size: 14px; } }

/* ---------- Writing made obvious (2026-10-30): «اكتب موضوعاً» everywhere, tips, clear steps ---------- */
/* Bronze, so it stands apart from the teal «دخول» next to it. */
.wnf-btn--write { background: var(--bronze); color: #1d1a14; font-weight: 700; box-shadow: 0 2px 8px rgba(107, 84, 44, .25); }
.wnf-btn--write:hover, .wnf-btn--write:focus-visible { background: #b8955d; color: #1d1a14; }
.wnf-fab { display: none; }
@media (max-width: 760px) {
	.wnf-header .wnf-btn--write { display: none; }
	.wnf-fab {
		position: fixed; z-index: 40; inset-inline-end: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
		display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 20px; border-radius: 999px;
		background: var(--bronze); color: #1d1a14; font-size: 16px; font-weight: 700; text-decoration: none;
		box-shadow: 0 6px 20px rgba(11, 18, 21, .28); transition: transform .2s ease, opacity .2s ease;
	}
	.wnf-fab:hover, .wnf-fab:focus-visible { background: #b8955d; color: #1d1a14; }
	.wnf-fab.is-away { transform: translateY(160%); opacity: 0; pointer-events: none; }
	.wnf-footer { padding-bottom: 84px; } /* room so the floating button never covers the footer links */
}
@media (prefers-reduced-motion: reduce) { .wnf-fab { transition: none; } }

/* Home hero: the three steps under the two paths. */
.wnf-howto { margin: 0; font-size: 15px; }
@media (max-width: 760px) { .wnf-howto { flex-direction: column; gap: 8px; } }

/* Composer: a heading, three tips for the kind of topic, numbered labels, and the sign-in note for visitors. */
.wnf-composer__intro { display: flex; flex-direction: column; gap: 8px; }
.wnf-composer__intro:empty { display: none; }
.wnf-composer__head { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 19px; font-weight: 700; color: var(--text); }
.wnf-composer__head .wnf-i { color: var(--bronze-deep); }
:root[data-theme="dark"] .wnf-composer__head .wnf-i { color: var(--bronze); }
.wnf-welcome { margin: 0; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--bronze-tint); color: var(--text); font-weight: 600; line-height: 1.7; }
.wnf-guide { display: none; margin: 0; padding: 10px 14px; padding-inline-start: 32px; border-radius: var(--radius-sm); background: var(--chip-bg); color: var(--text-2); font-size: 14.5px; line-height: 1.8; }
[data-guide="ask"] .wnf-guide[data-guide-for="ask"],
[data-guide="offer"] .wnf-guide[data-guide-for="offer"],
[data-guide="general"] .wnf-guide[data-guide-for="general"] { display: block; }
.wnf-field__label--step { font-size: 15px; font-weight: 700; color: var(--text); }
.wnf-signin-note { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 14px; line-height: 1.7; color: var(--text-2); }
.wnf-signin-note .wnf-i { flex: 0 0 auto; margin-top: 4px; color: #15803d; }
/* The sign-in window, when it opens because something written is waiting. */
.wnf-why { margin: 0 0 4px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--bronze-tint); color: var(--text); font-weight: 600; line-height: 1.7; }
/* Tablets and small laptops: with «اكتب موضوعاً» added, signed-in members' buttons need the room. The avatar stays
   (the name is on «ملفي»), the language button goes short, and the row may wrap rather than run off the screen. */
@media (min-width: 761px) and (max-width: 1199px) {
	.wnf-header__tools { flex-wrap: wrap; }
	.wnf-me > span:not(.wnf-av) { display: none; }
	.wnf-header .wnf-long { display: none; }
	.wnf-header .wnf-short { display: inline; }
}

/* ---------- Short view (2026-10-30, owner: «سهلة ومباشرة، والكلام خلفي»). <body class="wnf-focus"> on the home, a section
   and a topic shows the write action and the topics only. Everything else stays in the HTML (readers, Google) behind
   one button #wnf-more (forum.js adds .wnf-full). Print shows it all. Phones first. ---------- */
@media screen {
	.wnf-focus:not(.wnf-full) .wnf-x,
	.wnf-focus:not(.wnf-full) .wnf-side,
	.wnf-focus:not(.wnf-full) .wnf-hintbar,
	/* topic cards: author, time, title, replies; the excerpt, section chip and badges come with «more» */
	.wnf-focus:not(.wnf-full) .wnf-card__excerpt,
	.wnf-focus:not(.wnf-full) .wnf-card .wnf-chip,
	.wnf-focus:not(.wnf-full) .wnf-card .wnf-pill:not(.wnf-pill--alert),
	.wnf-focus:not(.wnf-full) .wnf-post--lead .wnf-post__head .wnf-chip,
	/* the composer: a title, the text, «انشر». Tips, formatting, section picker, image notes and the card come with «more» */
	.wnf-focus:not(.wnf-full) .wnf-guide,
	.wnf-focus:not(.wnf-full) .wnf-format,
	.wnf-focus:not(.wnf-full) .wnf-editor__tip,
	.wnf-focus:not(.wnf-full) .wnf-composer .wnf-hint,
	.wnf-focus:not(.wnf-full) .wnf-field--section,
	.wnf-focus:not(.wnf-full) .wnf-ad-box,
	.wnf-focus:not(.wnf-full) .wnf-card-note,
	.wnf-focus:not(.wnf-full) .bbp-pagination-count { display: none !important; }
	/* the home's single write button gives way to the two paths once everything shows */
	.wnf-full .wnf-hero2__go { display: none; }
}
/* phones: no search row and no moon in the short view (they come with «more») */
@media screen and (max-width: 760px) {
	.wnf-focus:not(.wnf-full) .wnf-search,
	.wnf-focus:not(.wnf-full) .wnf-header [data-wnf-theme] { display: none; }
}
.wnf-focus .wnf-layout { gap: 20px; }
.wnf-focus:not(.wnf-full) .wnf-feed { flex-basis: 100%; }
.wnf-hero2__go { margin: 0; }
.wnf-hero2__go .wnf-btn { font-size: 18px; min-height: 56px; padding: 0 28px; }
@media (max-width: 760px) { .wnf-hero2__go .wnf-btn { width: 100%; } }
.wnf-focus:not(.wnf-full) .wnf-hero2 { padding-top: 26px; padding-bottom: 22px; gap: 14px; }

.wnf-more { display: flex; justify-content: center; margin: 8px 0 4px; }
.wnf-more button {
	display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 22px; border-radius: 999px; cursor: pointer;
	background: var(--surface); border: 1px solid var(--line-2); color: var(--link); font: inherit; font-size: 15.5px; font-weight: 600;
}
.wnf-more button:hover { border-color: var(--primary); color: var(--primary); }
.wnf-more button:focus-visible { outline: 3px solid rgba(68, 110, 125, .45); outline-offset: 2px; }
.wnf-more__chev { transition: transform .2s; flex: 0 0 auto; }
.wnf-full .wnf-more__chev { transform: rotate(180deg); }
.wnf-more--quiet { justify-content: flex-start; margin: 0; }
.wnf-more--quiet button { background: transparent; border-color: transparent; color: rgba(255, 255, 255, .85); padding: 8px 4px; min-height: 44px; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }
.wnf-more--quiet button:hover { color: #fff; border-color: transparent; }
@media (max-width: 760px) { .wnf-more:not(.wnf-more--quiet) button { width: 100%; justify-content: center; } .wnf-more--quiet { justify-content: center; } }
@media (prefers-reduced-motion: no-preference) { .wnf-full .wnf-x, .wnf-full .wnf-side { animation: wnf-more-in .25s ease-out; } }
@keyframes wnf-more-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media print { .wnf-more, .wnf-fab { display: none !important; } }

/* after posting */
.wnf-posted { margin: 0 0 12px; padding: 12px 16px; border-radius: var(--radius-sm); background: #e7f6ec; color: #14532d; font-weight: 700; font-size: 16px; line-height: 1.7; }
:root[data-theme="dark"] .wnf-posted { background: #12321f; color: #bfe8cc; }
