/* ══════════════════════════════════════════════════════════
   لُحمة — القالب الافتراضي لصب دومين القبيلة (v2)
   نظام موحّد: شريط بلون القبيلة · هيدر بقائمة «الأقسام» · درج للموبايل · عرض كامل على الديسكتوب
   كل الألوان من --brand (لون القبيلة) — والنص فوقه (--on-brand) بيتحسب تلقائياً حسب فتاحة اللون
   ══════════════════════════════════════════════════════════ */
.tribe-site {
  --band: color-mix(in srgb, var(--brand) 42%, #04100C);
  --band-2: color-mix(in srgb, var(--brand) 62%, #04100C);
  --band-ink: #fff;
  --gold-hi: #E9C866;
  --tw: 1360px;
  --hdr-h: 68px;
  background: var(--bg);
}
:root[data-theme="dark"] .tribe-site { --band: color-mix(in srgb, var(--brand) 30%, #070B0A); --band-2: color-mix(in srgb, var(--brand) 46%, #070B0A); }
.tw { width: min(100%, var(--tw)); margin-inline: auto; padding-inline: 18px; }
.preview-bar { background: var(--warn-bg); color: var(--warn); font-weight: 800; font-size: 14px; text-align: center; padding: 8px 12px; display: flex; gap: 8px; align-items: center; justify-content: center; }
.tb-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .04em; color: var(--gold-dk); }
:root[data-theme="dark"] .tb-eyebrow { color: var(--gold-hi); }
.tb-eyebrow::before { content: ''; width: 22px; height: 1.5px; background: var(--gold); }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 16px; }
.tb-btn-line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .38); }
.tb-btn-line:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }
.tribe-site .btn-primary { background: var(--brand-ui); color: var(--on-brand, #fff); }

/* ─── الشعار ─── */
.t-logo { width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, var(--brand), var(--brand-dk)); color: var(--on-brand, #fff); font-family: var(--display); font-weight: 700; font-size: 22px; box-shadow: 0 0 0 1px rgba(201, 168, 76, .55), 0 6px 16px -8px rgba(var(--brand-rgb), .7); }
.t-logo img { width: 100%; height: 100%; object-fit: cover; }
.t-logo-sm { width: 42px; height: 42px; font-size: 20px; border-radius: 13px; }
.t-logo-lg { width: 112px; height: 112px; font-size: 52px; border-radius: 30px; }

/* ═══ الهيدر ═══ */
.tb-hdr { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid var(--border); }
.tb-hdr-in { display: flex; align-items: center; gap: 14px; min-height: var(--hdr-h); }
.tb-brand { display: flex; align-items: center; gap: 11px; color: var(--text); min-width: 0; flex-shrink: 1; }
.tb-brand:hover { text-decoration: none; }
.tb-brand-t { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.tb-brand-name { font-family: var(--display); font-weight: 700; font-size: 21px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-brand-sub { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--faint); font-weight: 800; }
.tb-nav { display: none; align-items: center; gap: 2px; margin-inline-start: 10px; flex: 1; min-width: 0; }
.tb-nav > a, .tb-pop > summary { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 800; color: var(--muted); white-space: nowrap; cursor: pointer; list-style: none; }
.tb-pop > summary::-webkit-details-marker { display: none; }
.tb-nav > a:hover, .tb-pop > summary:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.tb-nav > a.is-on, .tb-pop.is-on > summary { color: var(--brand-text); background: var(--brand-50); }
.tb-nav > a.is-on::after, .tb-pop.is-on > summary::after { content: ''; position: absolute; bottom: -13px; inset-inline: 12px; height: 2.5px; border-radius: 3px; background: var(--brand-ui); }
.tb-caret { transform: rotate(-90deg); opacity: .6; transition: transform var(--tr); }
.tb-pop[open] .tb-caret { transform: rotate(90deg); }
.tb-pop { position: relative; }
.tb-mega { position: absolute; top: calc(100% + 12px); inset-inline-start: -8px; z-index: 70; width: min(560px, calc(100vw - 40px)); padding: 10px; background: var(--surface); border: 1px solid var(--border-2); border-radius: 18px; box-shadow: var(--shadow-lg); animation: tbPop .16s ease; }
.tb-mega-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.tb-mega-h strong { font-family: var(--display); font-size: 18px; }
.tb-mega-h span { font-size: 12.5px; color: var(--faint); font-weight: 700; }
.tb-mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.tb-mega-grid a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; color: var(--text); font-weight: 800; font-size: 14.5px; }
.tb-mega-grid a:hover { background: var(--surface-2); text-decoration: none; }
.tb-mega-grid a.is-on { background: var(--brand-50); color: var(--brand-text); }
.tb-mega-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-text); flex-shrink: 0; }
@keyframes tbPop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.tb-act { margin-inline-start: auto; display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.tb-icon { width: 42px; height: 42px; border-radius: 12px; display: inline-grid; place-items: center; border: 1px solid var(--border-2); background: var(--surface); color: var(--text); cursor: pointer; flex-shrink: 0; }
.tb-icon:hover { border-color: var(--brand-ui); color: var(--brand-text); text-decoration: none; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.tb-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 16px; border-radius: 12px; font-weight: 800; font-size: 14.5px; border: 1.5px solid transparent; white-space: nowrap; }
.tb-btn:hover { text-decoration: none; }
.tb-btn-brand { background: var(--brand-ui); color: var(--on-brand, #fff); box-shadow: 0 8px 18px -10px rgba(var(--brand-rgb), .9); }
.tb-btn-brand:hover { filter: brightness(1.08); color: var(--on-brand, #fff); }
.tb-btn-ghost { border-color: var(--border-2); color: var(--text); }
.tb-btn-ghost:hover { border-color: var(--brand-ui); color: var(--brand-text); }
.tb-search { display: none; position: relative; }
.tb-search .ic { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.tb-search input { width: 210px; height: 42px; padding: 0 14px; padding-inline-start: 38px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--surface-2); font: inherit; font-size: 14px; color: var(--text); transition: width var(--tr), border-color var(--tr), background var(--tr); }
.tb-search input:focus { outline: 0; width: 260px; border-color: var(--brand-ui); background: var(--surface); box-shadow: 0 0 0 3px var(--brand-50); }
.tb-flash { margin-top: 18px; }

/* درج الموبايل */
.tb-scrim { position: fixed; inset: 0; z-index: 90; background: rgba(5, 8, 7, .55); backdrop-filter: blur(2px); }
.tb-drawer { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 95; width: min(88vw, 340px); display: flex; flex-direction: column; background: var(--surface); box-shadow: var(--shadow-lg); transform: translateX(105%); transition: transform .26s cubic-bezier(.3, .8, .3, 1); visibility: hidden; }
.tb-drawer.is-open { transform: none; visibility: visible; }
.tb-drawer-top { display: flex; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px solid var(--border); background: linear-gradient(135deg, var(--band-2), var(--band)); color: #fff; }
.tb-drawer-top > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tb-drawer-top strong { font-family: var(--display); font-size: 20px; }
.tb-drawer-top span { font-size: 12px; opacity: .75; font-weight: 700; }
.tb-drawer-top .tb-icon { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: #fff; }
.tb-drawer-search { position: relative; margin: 14px 16px 6px; }
.tb-drawer-search .ic { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.tb-drawer-search input { width: 100%; height: 44px; padding-inline: 38px 12px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--surface-2); font: inherit; color: var(--text); }
.tb-drawer-nav { flex: 1; overflow-y: auto; padding: 6px 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.tb-drawer-h { font-size: 11.5px; font-weight: 800; color: var(--faint); letter-spacing: .06em; padding: 14px 10px 6px; }
.tb-drawer-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; font-weight: 800; color: var(--text); font-size: 15px; }
.tb-drawer-nav a .ic { color: var(--faint); }
.tb-drawer-nav a:hover { background: var(--surface-2); text-decoration: none; }
.tb-drawer-nav a.is-on { background: var(--brand-50); color: var(--brand-text); }
.tb-drawer-nav a.is-on .ic { color: var(--brand-text); }
.tb-drawer-foot { padding: 14px 16px 18px; border-top: 1px solid var(--border); display: grid; gap: 8px; }

/* ═══ الهيرو (الرئيسية) ═══ */
.tb-hero { position: relative; isolation: isolate; color: var(--band-ink); background:
  radial-gradient(70% 90% at 100% 0%, rgba(255, 255, 255, .10), transparent 60%),
  radial-gradient(55% 80% at 0% 100%, rgba(201, 168, 76, .18), transparent 60%),
  linear-gradient(160deg, var(--band-2), var(--band) 72%); overflow: hidden; }
.tb-hero-cover { position: absolute; inset: 0; z-index: -2; }
.tb-hero-cover img { width: 100%; height: 100%; object-fit: cover; opacity: .32; filter: saturate(.9); }
.tb-hero-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--band) 75%), linear-gradient(0deg, var(--band), transparent 60%); }
.tb-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .06; pointer-events: none;
  background: repeating-linear-gradient(45deg, #fff 0 1px, transparent 1px 24px), repeating-linear-gradient(-45deg, #fff 0 1px, transparent 1px 24px); }
.tb-hero-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 40px 56px; }
.tb-hero-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .7); margin-bottom: 22px; }
.tb-hero-crumbs a { color: rgba(255, 255, 255, .85); }
.tb-hero-crumbs .ic { opacity: .6; transform: scaleX(-1); }
.tb-hero-id { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.tb-hero-id .t-logo { width: 84px; height: 84px; border-radius: 24px; font-size: 40px; box-shadow: 0 0 0 2px rgba(201, 168, 76, .7), 0 18px 40px -16px rgba(0, 0, 0, .6); }
.tb-hero-line { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 800; color: var(--gold-hi); background: rgba(201, 168, 76, .12); border: 1px solid rgba(201, 168, 76, .32); }
.tb-hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(44px, 9vw, 86px); line-height: 1.05; margin: 0 0 16px; letter-spacing: -.01em; }
.tb-hero h1 span { color: var(--gold-hi); }
.tb-hero-copy { min-width: 0; }
.tb-hero-bio { font-size: clamp(16px, 2vw, 19px); line-height: 1.95; color: rgba(255, 255, 255, .84); max-width: 680px; margin: 0 0 26px; }
/* أزرار الهيرو: نفس الارتفاع والعرض والزوايا — واحد ممتلئ وواحد بإطار */
.tb-hero-btns { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 10px; }
.tb-hb { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: 0 24px; border-radius: 14px; font-size: 15.5px; font-weight: 800; white-space: nowrap; border: 1.5px solid transparent; transition: transform .15s ease, background var(--tr), border-color var(--tr); }
.tb-hb:hover { text-decoration: none; transform: translateY(-1px); }
.tb-hb:active { transform: none; }
.tb-hb-solid { background: #fff; color: #0B1310; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .7); }
.tb-hb-solid:hover { background: #F4EFE3; color: #0B1310; }
.tb-hb-line { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tb-hb-line:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }
.tb-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 30px; }
.tb-stat { padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .13); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; align-items: center; gap: 12px; color: #fff; }
a.tb-stat:hover { background: rgba(255, 255, 255, .12); text-decoration: none; }
.tb-stat-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(201, 168, 76, .16); color: var(--gold-hi); flex-shrink: 0; }
.tb-stat b { display: block; font-family: var(--display); font-size: 26px; line-height: 1; }
.tb-stat span { font-size: 12.5px; color: rgba(255, 255, 255, .7); font-weight: 700; }

/* بطاقة القبيلة في الهيرو: غلاف (صورة أو نقش) + الشعار + الاسم + أبرز الأقسام */
.tb-idcard { align-self: center; overflow: hidden; border-radius: 26px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .7); }
.tb-idcard-cover { position: relative; aspect-ratio: 16 / 8; background: linear-gradient(135deg, var(--brand), var(--band)); }
.tb-idcard-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tb-idcard-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .35)); pointer-events: none; }
.tb-idcard-pattern { position: absolute; inset: 0; opacity: .5;
  background: radial-gradient(circle at 30% 20%, rgba(233, 200, 102, .35), transparent 45%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .09) 0 2px, transparent 2px 18px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .09) 0 2px, transparent 2px 18px); }
.tb-idcard-badge { position: absolute; z-index: 1; bottom: -30px; inset-inline-start: 22px; }
.tb-idcard-badge .t-logo { width: 64px; height: 64px; font-size: 30px; border-radius: 19px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--band) 80%, #000), 0 0 0 5.5px rgba(201, 168, 76, .7); }
.tb-idcard-body { padding: 42px 22px 22px; }
.tb-idcard-title { display: flex; flex-direction: column; gap: 2px; margin-bottom: 16px; }
.tb-idcard-title strong { font-family: var(--display); font-size: 26px; line-height: 1.2; color: #fff; }
.tb-idcard-title span { font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, .58); }
.tb-idcard-h { display: block; font-size: 12px; font-weight: 800; letter-spacing: .05em; color: var(--gold-hi); margin-bottom: 8px; }
.tb-idcard-links { display: grid; gap: 6px; }
.tb-idcard-links a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; color: #fff; font-weight: 800; font-size: 15px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); transition: background var(--tr), border-color var(--tr); }
.tb-idcard-links a:hover { text-decoration: none; background: rgba(255, 255, 255, .11); border-color: rgba(255, 255, 255, .2); }
.tb-idcard-links a > span:nth-child(2) { flex: 1; min-width: 0; }
.tb-idcard-links a > .ic:last-child { opacity: .55; transform: scaleX(-1); }
.tb-idcard-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(201, 168, 76, .16); color: var(--gold-hi); flex-shrink: 0; }
.tb-idcard-more { display: inline-block; margin-top: 12px; font-size: 13.5px; font-weight: 800; color: var(--gold-hi); }
.tb-hero-sadu, .tb-phead-sadu { position: absolute; bottom: 0; inset-inline: 0; height: 10px; }

/* ═══ رأس الصفحات الداخلية ═══ */
.tb-phead { position: relative; isolation: isolate; color: #fff; overflow: hidden; background:
  radial-gradient(60% 120% at 100% 0%, rgba(255, 255, 255, .09), transparent 60%),
  radial-gradient(40% 120% at 0% 100%, rgba(201, 168, 76, .14), transparent 60%),
  linear-gradient(160deg, var(--band-2), var(--band)); }
.tb-phead-bg { position: absolute; inset: 0; z-index: -1; opacity: .05; background: repeating-linear-gradient(45deg, #fff 0 1px, transparent 1px 22px), repeating-linear-gradient(-45deg, #fff 0 1px, transparent 1px 22px); }
.tb-phead-in { padding-block: 26px 38px; }
.tb-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .7); margin-bottom: 18px; }
.tb-crumbs a { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .88); padding: 3px 8px; border-radius: 8px; background: rgba(255, 255, 255, .07); }
.tb-crumbs a:hover { background: rgba(255, 255, 255, .14); text-decoration: none; }
.tb-crumb-sep .ic { transform: scaleX(-1); opacity: .55; }
.tb-crumbs [aria-current] { color: #fff; }
.tb-phead-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px 28px; justify-content: space-between; }
.tb-phead-txt { flex: 1 1 520px; min-width: 0; }
.tb-phead .tb-eyebrow { color: var(--gold-hi); margin-bottom: 10px; }
.tb-phead .tb-eyebrow .ic { color: var(--gold-hi); }
.tb-phead h1 { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 6vw, 54px); line-height: 1.2; margin: 0 0 10px; }
.tb-phead p { margin: 0; color: rgba(255, 255, 255, .82); font-size: 17px; line-height: 1.85; max-width: 760px; }
.tb-phead-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tb-phead-meta > span, .tb-phead-meta > a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #fff; }
.tb-phead-meta .ic { color: var(--gold-hi); }
.tb-phead-act { display: flex; gap: 8px; flex-wrap: wrap; }
.tb-phead-act .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.tb-phead-act .btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: #fff; }

/* ═══ الأقسام والعناوين ═══ */
.tb-block { margin-top: 64px; }
.tb-block-first { margin-top: 30px; }
.tb-sec-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.tb-sec-head-t { flex: 1; min-width: 0; }
.tb-sec-head .tb-eyebrow { margin-bottom: 6px; }
.tb-sec-head h2 { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 4vw, 38px); line-height: 1.25; margin: 0; }
.tb-sec-head p { margin: 6px 0 0; color: var(--muted); }
.tb-num { font-family: var(--display); font-weight: 700; font-size: clamp(48px, 7vw, 68px); line-height: .8; color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--gold) 75%, transparent); flex-shrink: 0; }
.tb-more { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--surface); color: var(--text); font-weight: 800; font-size: 14px; white-space: nowrap; }
.tb-more:hover { border-color: var(--brand-ui); color: var(--brand-text); text-decoration: none; }
.tb-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow); }
.tb-panel-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.tb-panel-h h2, .tb-panel-h h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; margin: 0; }
.tb-panel-h .ic { color: var(--brand-text); }
.tb-panel-b { padding: 18px 20px; }

/* النبذة + المعلومات */
.tb-about { display: grid; gap: 20px; }
.tb-about-text { padding: 26px; }
.tb-about-text .prose { max-width: none; }
.tb-clamp { max-height: 17em; overflow: hidden; mask-image: linear-gradient(#000 65%, transparent); -webkit-mask-image: linear-gradient(#000 65%, transparent); margin-bottom: 16px; }
/* كروت الأقسام */
.s-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.s-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); color: inherit; overflow: hidden; box-shadow: var(--shadow); transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr); }
.s-card::after { content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--brand-ui), var(--gold)); transform: scaleX(0); transform-origin: right; transition: transform .3s ease; }
.s-card:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand-ui) 40%, var(--border)); }
.s-card:hover::after { transform: scaleX(1); }
.s-card-n { position: absolute; top: 14px; inset-inline-end: 18px; font-family: var(--display); font-weight: 700; font-size: 52px; line-height: 1; color: transparent; -webkit-text-stroke: 1.2px color-mix(in srgb, var(--gold) 55%, transparent); }
.s-card-ic { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: var(--brand-ui); color: var(--on-brand, #fff); margin-bottom: 6px; box-shadow: 0 10px 22px -12px rgba(var(--brand-rgb), .9); }
.s-card h3 { font-family: var(--display); font-size: 25px; margin: 0; line-height: 1.3; }
.s-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.85; flex: 1; }
.s-card-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; margin-top: 6px; border-top: 1px dashed var(--border); font-size: 13px; font-weight: 700; color: var(--faint); }
.s-card-go { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text); transition: background var(--tr), color var(--tr); }
.s-card:hover .s-card-go { background: var(--brand-ui); color: var(--on-brand, #fff); }

/* الأعضاء */
.m-grid, .m-strip { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.m-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); transition: border-color var(--tr), box-shadow var(--tr), transform var(--tr); }
.m-card:hover { border-color: var(--border-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.m-card.is-pro { background: linear-gradient(180deg, var(--gold-50), transparent 50%), var(--surface); border-color: color-mix(in srgb, var(--gold) 38%, var(--border)); }
.m-card-link { display: flex; flex-direction: column; align-items: center; gap: 4px; color: inherit; width: 100%; }
.m-card-link:hover { text-decoration: none; }
.m-card-link:hover .m-name { color: var(--brand-text); }
.m-card .avatar { margin-bottom: 10px; box-shadow: 0 0 0 3px var(--surface), 0 0 0 4.5px var(--border-2); }
.m-card.is-pro .avatar { box-shadow: 0 0 0 3px var(--surface), 0 0 0 4.5px var(--gold); }
.m-name { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: 15.5px; line-height: 1.4; }
.m-pro { color: #1D9BF0; display: inline-flex; }
.m-title { font-size: 13px; color: var(--muted); }
.m-city { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; color: var(--faint); }
.m-free { margin-top: 10px; }
.m-free summary { list-style: none; cursor: pointer; font-size: 12px; font-weight: 700; color: var(--faint); border: 1px dashed var(--border-2); padding: 3px 10px; border-radius: 999px; }
.m-free summary::-webkit-details-marker { display: none; }
.m-free[open] summary { color: var(--brand-text); border-color: var(--brand-ui); }
.m-free-pop { position: absolute; z-index: 20; top: calc(100% - 6px); inset-inline: 6px; min-width: 200px; padding: 14px; background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r); box-shadow: var(--shadow-lg); text-align: start; font-size: 13px; }
.m-free-pop strong { display: block; font-size: 13.5px; margin-bottom: 4px; }
.m-free-pop p { margin: 0 0 8px; color: var(--muted); line-height: 1.7; }
.m-free-pop p:last-child { margin: 0; }
.tb-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.tb-find { position: relative; flex: 1 1 280px; max-width: 460px; }
.tb-find .ic { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.tb-find .input { padding-inline-start: 42px; border-radius: 14px; }
.tb-seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.tb-seg a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.tb-seg a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.tb-seg a.is-on { background: var(--brand-ui); color: var(--on-brand, #fff); }
.tb-seg b { font-size: 12px; padding: 0 7px; border-radius: 999px; background: rgba(0, 0, 0, .08); }
.tb-seg a.is-on b { background: rgba(255, 255, 255, .22); }

/* المعرض: موزاييك على الرئيسية */
.tb-mosaic { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
.tb-mosaic a { position: relative; display: block; overflow: hidden; border-radius: 16px; background: var(--surface-2); }
.tb-mosaic a:first-child { grid-column: span 2; grid-row: span 2; }
.tb-mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tb-mosaic a:hover img { transform: scale(1.05); }
.tb-mosaic span { position: absolute; inset: auto 0 0; padding: 26px 12px 10px; font-size: 13px; font-weight: 800; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); opacity: 0; transition: opacity var(--tr); pointer-events: none; }
.tb-mosaic a:hover span { opacity: 1; }
.g-item { border-radius: 14px; }

/* المقالات */
.tribe-site .a-card > a { border-radius: var(--r-xl); box-shadow: var(--shadow); }
.tribe-site .a-more { color: var(--brand-text); }

/* س و ج */
.tb-faq { display: grid; gap: 22px; }
.tb-faq-aside { padding: 24px; border-radius: var(--r-xl); background: linear-gradient(160deg, var(--brand-50), transparent 70%), var(--surface); border: 1px solid var(--border); align-self: start; }
.tb-faq-aside h3 { font-family: var(--display); font-size: 24px; margin: 0 0 8px; }
.tb-faq-aside p { margin: 0 0 16px; color: var(--muted); }
.tribe-site .faq-item { border-radius: 16px; }
.tribe-site .faq-item[open] { box-shadow: var(--shadow); }
.tribe-site .faq-item[open] .faq-ic { background: var(--brand-ui); color: var(--on-brand, #fff); }

/* دعوة الانضمام */
.tb-join { position: relative; overflow: hidden; border-radius: 28px; color: #fff; background:
  radial-gradient(70% 120% at 100% 0%, rgba(255, 255, 255, .12), transparent 60%),
  radial-gradient(50% 120% at 0% 100%, rgba(201, 168, 76, .2), transparent 60%),
  linear-gradient(150deg, var(--band-2), var(--band)); box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .6); }
.tb-join > .sadu { position: absolute; top: 0; inset-inline: 0; }
.tb-join-in { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; padding: 40px 26px 34px; }
.tb-join-mark .t-logo { width: 76px; height: 76px; font-size: 34px; border-radius: 22px; }
.tb-join-txt { flex: 1 1 360px; min-width: 0; }
.tb-join .tb-eyebrow { color: var(--gold-hi); margin-bottom: 8px; }
.tb-join h2 { font-family: var(--display); font-size: clamp(26px, 4.4vw, 38px); margin: 0 0 6px; color: #fff; line-height: 1.25; }
.tb-join p { margin: 0; color: rgba(255, 255, 255, .84); max-width: 620px; }
.tb-join-count { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 800; color: var(--gold-hi); }
.tb-join-act { display: flex; flex-wrap: wrap; gap: 10px; }

/* ═══ صفحات القراءة: فهرس الأقسام · المحتوى · «في هذه الصفحة» ═══ */
.tb-read { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); margin-top: 30px; }
.tb-read-main { min-width: 0; }
.tb-paper { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 24px 20px; box-shadow: var(--shadow); }
.tb-paper .prose { max-width: none; font-size: 17.5px; line-height: 2.05; }
.tribe-site .prose h2 { font-family: var(--display); font-size: 1.6em; line-height: 1.35; margin: 1.6em 0 .5em; padding-top: 4px; scroll-margin-top: calc(var(--hdr-h) + 20px); }
.tribe-site .prose h2:first-child { margin-top: 0; }
.tribe-site .prose h3 { scroll-margin-top: calc(var(--hdr-h) + 20px); }
.tribe-site .prose blockquote { border-inline-start-color: var(--gold); }
.tribe-site .prose a { color: var(--brand-text); }
.tb-side { display: grid; gap: 14px; align-content: start; }
.tb-toc { display: flex; flex-direction: column; gap: 2px; }
.tb-toc a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 11px; font-weight: 800; color: var(--muted); font-size: 14.5px; }
.tb-toc a .ic { color: var(--faint); flex-shrink: 0; }
.tb-toc a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.tb-toc a.is-on { background: var(--brand-50); color: var(--brand-text); }
.tb-toc a.is-on .ic { color: var(--brand-text); }
.tb-onpage { display: grid; gap: 2px; border-inline-start: 2px solid var(--border); }
.tb-onpage a { display: block; padding: 6px 14px; margin-inline-start: -2px; border-inline-start: 2px solid transparent; font-size: 14px; font-weight: 700; color: var(--faint); line-height: 1.6; }
.tb-onpage a.lvl-3 { padding-inline-start: 26px; font-size: 13px; }
.tb-onpage a:hover { color: var(--text); text-decoration: none; }
.tb-onpage a.is-on { color: var(--brand-text); border-inline-start-color: var(--brand-ui); }
.tb-onpage-box[hidden] { display: none; }
.t-sources { margin-top: 30px; padding: 20px 22px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--border); }
.t-sources-h { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; margin: 0 0 10px; }
.t-sources ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; font-size: 14.5px; color: var(--muted); }
.t-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 18px; font-size: 13.5px; color: var(--faint); line-height: 1.8; }
.t-note .ic { flex-shrink: 0; margin-top: 4px; }
.t-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.t-pn a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); color: inherit; transition: border-color var(--tr), transform var(--tr); }
.t-pn a:hover { border-color: var(--brand-ui); text-decoration: none; transform: translateY(-2px); }
.t-pn span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: var(--faint); }
.t-pn strong { font-family: var(--display); font-size: 20px; color: var(--brand-text); }
.t-pn-prev span .ic { transform: scaleX(-1); }
.t-pn-next { text-align: end; grid-column: 2; }
.t-pn-next span { justify-content: flex-end; }
.tb-share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-weight: 800; color: var(--faint); font-size: 14px; }
.tb-share-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--surface); color: var(--muted); font: inherit; font-weight: 800; font-size: 13.5px; cursor: pointer; }
.tb-share-btn:hover { border-color: var(--brand-ui); color: var(--brand-text); text-decoration: none; }
.tb-progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 80; pointer-events: none; }
.tb-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--brand-ui)); margin-inline-start: 0; }

/* المقال */
.tb-art-cover { margin: -20px 0 0; position: relative; z-index: 2; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16 / 8; background: var(--surface-2); box-shadow: var(--shadow-lg); }
.tb-art-cover img { width: 100%; height: 100%; object-fit: cover; }
.tb-art-foot { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--border); }

/* ═══ المجلس (المجتمع) ═══ */
.c-layout { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); margin-top: 26px; }
.c-main { min-width: 0; }
.c-aside, .c-nav { display: grid; gap: 14px; align-content: start; }
.c-nav { order: -1; }
.c-menu { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.c-menu a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; font-weight: 800; font-size: 14px; color: var(--muted); white-space: nowrap; }
.c-menu a .ic { color: var(--faint); }
.c-menu a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.c-menu a.is-on { background: var(--brand-ui); color: var(--on-brand, #fff); }
.c-menu a.is-on .ic { color: inherit; }
.c-menu b { margin-inline-start: auto; font-size: 12px; padding: 0 8px; border-radius: 999px; background: var(--surface-2); color: var(--faint); }
.c-menu a.is-on b { background: rgba(255, 255, 255, .22); color: inherit; }
.c-nav-stats { display: none; }
.c-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--border); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); }
.c-kpis div { background: var(--surface); padding: 14px 10px; text-align: center; }
.c-kpis b { display: block; font-family: var(--display); font-size: 24px; line-height: 1.1; color: var(--brand-text); }
.c-kpis span { font-size: 12px; font-weight: 700; color: var(--faint); }
.c-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 0 0 14px; }
.c-bar h2 { font-size: 17px; margin: 0; }
.c-feed { display: grid; gap: 12px; }
.c-author { display: inline-flex; align-items: center; gap: 10px; color: var(--text); min-width: 0; }
.c-author:hover { text-decoration: none; }
.c-author:hover strong { color: var(--brand-text); }
.c-author > span { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.c-author strong { display: inline-flex; align-items: center; gap: 4px; font-size: 14.5px; }
.c-author time { font-size: 12.5px; color: var(--faint); font-weight: 700; }
.c-post { position: relative; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow); transition: border-color var(--tr), box-shadow var(--tr), transform var(--tr); }
.c-post:hover { border-color: color-mix(in srgb, var(--brand-ui) 35%, var(--border)); box-shadow: var(--shadow-lg); }
.c-post.is-pinned { border-color: color-mix(in srgb, var(--gold) 45%, var(--border)); background: linear-gradient(180deg, var(--gold-50), transparent 40%), var(--surface); }
.c-post-main { display: flex; gap: 16px; margin-top: 12px; color: inherit; }
.c-post-main:hover { text-decoration: none; }
.c-post-main:hover h3 { color: var(--brand-text); }
.c-post-main > div { flex: 1; min-width: 0; }
.c-post h3 { font-size: 18.5px; line-height: 1.55; margin: 0 0 6px; }
.c-post p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.85; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.c-thumb { position: relative; width: 104px; height: 104px; border-radius: 14px; overflow: hidden; flex-shrink: 0; background: var(--surface-2); }
.c-thumb img { width: 100%; height: 100%; object-fit: cover; }
.c-thumb b { position: absolute; inset: auto 6px 6px auto; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; padding: 1px 7px; border-radius: 999px; }
.c-flags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.c-post-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border); font-size: 13.5px; font-weight: 800; color: var(--faint); }
.c-post-foot span { display: inline-flex; align-items: center; gap: 5px; }
.c-post-foot .hint { margin-inline-start: auto; font-weight: 700; }

/* صندوق النشر */
.c-compose { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); margin-bottom: 16px; box-shadow: var(--shadow); }
.c-compose > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.c-compose > summary::-webkit-details-marker { display: none; }
.c-compose > summary .c-author > span { display: none; }
.c-compose-ph { flex: 1; color: var(--faint); font-weight: 700; padding: 11px 16px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.c-compose[open] > summary .btn { display: none; }
.c-compose-form { padding: 14px 18px 18px; border-top: 1px solid var(--border); }

/* الأدوار والقواعد */
.c-card { padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow); }
.c-card h2 { display: flex; align-items: center; gap: 8px; font-size: 16px; margin: 0 0 8px; }
.c-card h2 .ic { color: var(--brand-text); }
.c-card p { margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.c-card ul { margin: 0 0 12px; padding: 0; list-style: none; color: var(--muted); font-size: 14px; display: grid; gap: 8px; }
.c-card li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.7; }
.c-card li::before { content: ''; width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); background: var(--gold); flex-shrink: 0; margin-top: 9px; }
.c-card > a { font-weight: 800; font-size: 14px; color: var(--brand-text); }
.c-role { position: relative; overflow: hidden; color: #fff; border: 0; background: radial-gradient(80% 120% at 100% 0%, rgba(255, 255, 255, .1), transparent 60%), linear-gradient(150deg, var(--band-2), var(--band)); }
.c-role h2, .c-role h2 .ic { color: #fff; }
.c-role p { color: rgba(255, 255, 255, .82); }
.c-role .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.tribe-site .c-role .btn-primary { background: #fff; color: #0B1310; }
.c-top { display: grid; gap: 10px; }
.c-top a { display: flex; align-items: center; gap: 10px; color: inherit; }
.c-top a:hover { text-decoration: none; }
.c-top a:hover strong { color: var(--brand-text); }
.c-top strong { font-size: 14px; display: block; }
.c-top span { font-size: 12.5px; color: var(--faint); }
.c-top b { margin-inline-start: auto; font-size: 13px; color: var(--brand-text); }
.c-mini { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-bottom: 1px dashed var(--border-2); color: inherit; }
.c-mini:last-of-type { border-bottom: 0; }
.c-mini:hover { text-decoration: none; }
.c-mini:hover strong { color: var(--brand-text); }
.c-mini strong { font-size: 14.5px; line-height: 1.55; }
.c-mini span { font-size: 12.5px; color: var(--faint); }

/* النقاش كامل */
.c-full { padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow); }
.c-full-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.c-full h1 { font-family: var(--display); font-size: clamp(26px, 4.6vw, 38px); line-height: 1.35; margin: 18px 0 12px; }
.c-body { font-size: 16.5px; line-height: 2; color: var(--text); overflow-wrap: anywhere; }
.c-body p { margin: 0 0 .9em; }
.c-body p:last-child { margin: 0; }
.c-body a { text-decoration: underline; text-underline-offset: 3px; color: var(--brand-text); }
.c-imgs { margin-top: 16px; }
.c-imgs-1 .g-grid { columns: 1; }
.c-imgs-2 .g-grid, .c-imgs-4 .g-grid { columns: 2; }
.c-imgs-3 .g-grid { columns: 3 120px; }
.c-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.c-actions form { display: inline; }
.c-act { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--surface); color: var(--muted); font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; }
.c-act:hover { text-decoration: none; border-color: var(--brand-ui); color: var(--brand-text); }
.c-act.is-on { background: var(--brand-50); border-color: var(--brand-ui); color: var(--brand-text); }
.c-act.is-static { cursor: default; }
.c-act.is-static:hover { border-color: var(--border-2); color: var(--muted); }
.c-actions-end { margin-inline-start: auto; display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.c-mod { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; padding: 10px 12px; border-radius: var(--r); background: var(--warn-bg); color: var(--warn); font-weight: 800; font-size: 13.5px; }
.c-mod > span { display: inline-flex; align-items: center; gap: 5px; margin-inline-end: 4px; }
.c-report { position: relative; }
.c-report summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 800; color: var(--faint); padding: 6px 8px; border-radius: 8px; }
.c-report summary::-webkit-details-marker { display: none; }
.c-report summary:hover { color: var(--err); }
.c-report-pop { position: absolute; z-index: 30; top: calc(100% + 6px); inset-inline-end: 0; width: 250px; display: grid; gap: 6px; padding: 14px; background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r); box-shadow: var(--shadow-lg); font-size: 13.5px; }
.c-report-pop .input { min-height: 36px; font-size: 13.5px; }
.c-comments { margin-top: 22px; }
.c-comments-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.c-comments-h h2 { font-size: 20px; margin: 0; display: flex; align-items: center; gap: 8px; }
.c-cmt { position: relative; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); margin-bottom: 10px; scroll-margin-top: calc(var(--hdr-h) + 20px); }
.c-cmt::before { content: ''; position: absolute; top: 18px; bottom: 18px; inset-inline-start: -1px; width: 3px; border-radius: 3px; background: var(--brand-ui); opacity: 0; }
.c-cmt:target { border-color: var(--brand-ui); box-shadow: 0 0 0 3px var(--brand-50); }
.c-cmt:target::before { opacity: 1; }
.c-cmt.is-pending { border-style: dashed; background: color-mix(in srgb, var(--warn-bg) 50%, var(--surface)); }
.c-cmt-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.c-cmt-body { font-size: 15.5px; margin-top: 8px; line-height: 1.9; }
.c-cmt-act { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; margin-top: 6px; }
.c-cmt-act:empty { display: none; }
.c-cmt-act form { display: inline; }
.c-link-btn { background: none; border: 0; padding: 6px 8px; font: inherit; font-size: 13px; font-weight: 800; color: var(--faint); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.c-link-btn:hover { color: var(--err); }
.c-reply { margin-top: 16px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow); }
.c-reply .textarea { background: var(--surface-2); }
.c-edit { margin-top: 0; }
.c-edit-imgs { display: flex; flex-wrap: wrap; gap: 10px; }
.c-edit-imgs label { display: flex; flex-direction: column; gap: 6px; width: 120px; }
.c-edit-imgs img { width: 120px; height: 90px; object-fit: cover; border-radius: 10px; }

/* نتائج البحث */
.tb-results { display: grid; gap: 10px; }
.tb-res { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); color: inherit; }
.tb-res:hover { border-color: var(--brand-ui); text-decoration: none; }
.tb-res-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-text); flex-shrink: 0; }
.tb-res strong { display: block; font-size: 16px; margin-bottom: 2px; }
.tb-res p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.8; }
.tb-res mark { background: var(--gold-50); color: inherit; padding: 0 2px; border-radius: 3px; }
.tb-res-type { font-size: 12px; font-weight: 800; color: var(--faint); }

/* السياسات */
.tb-doc { max-width: 900px; margin-inline: auto; }

/* ═══ الفوتر: شريط بسيط في المنتصف ═══ */
.tb-ftr { margin-top: 72px; color: rgba(255, 255, 255, .78); background: linear-gradient(170deg, var(--band-2), var(--band)); border-top: 3px solid color-mix(in srgb, var(--gold) 70%, transparent); }
.tb-ftr-in { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding-block: 30px 26px; }
.tb-ftr-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.tb-ftr-brand:hover { text-decoration: none; color: #fff; }
.tb-ftr-brand .t-logo { width: 36px; height: 36px; font-size: 17px; border-radius: 11px; }
.tb-ftr-brand strong { font-family: var(--display); font-size: 21px; font-weight: 700; }
.tb-ftr-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; }
.tb-ftr-links a { color: rgba(255, 255, 255, .86); font-weight: 700; font-size: 14px; padding: 4px 10px; border-radius: 8px; }
.tb-ftr-links a:hover { color: #fff; background: rgba(255, 255, 255, .08); text-decoration: none; }
.tb-ftr-note { display: inline-flex; align-items: center; gap: 7px; margin: 0; font-size: 12.5px; color: rgba(255, 255, 255, .56); }
.tb-ftr-copy { margin: 0; padding-top: 14px; width: min(100%, 520px); border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12.5px; color: rgba(255, 255, 255, .56); }
.tb-ftr-copy a { display: inline-flex; align-items: center; gap: 5px; color: rgba(255, 255, 255, .82); font-weight: 700; }
.tb-ftr-copy a:hover { color: #fff; text-decoration: none; }

/* ═══ شريط التنقل السفلي (موبايل — للزوار) ═══ */
.tb-bnav { display: none; }
@media (max-width: 1179px) {
  .has-bnav { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .tb-bnav { display: block; position: fixed; bottom: 0; inset-inline: 0; z-index: 70; padding: 0 10px calc(8px + env(safe-area-inset-bottom)); pointer-events: none; }
  .tb-bnav-in { pointer-events: auto; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: center; max-width: 520px; margin: 0 auto; min-height: 64px; padding: 6px; border-radius: 22px;
    background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border: 1px solid var(--border-2); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .35); }
  .tb-bn-item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 52px; padding: 2px; border: 0; border-radius: 14px; background: none;
    color: var(--faint); font: inherit; font-size: 11.5px; font-weight: 800; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .tb-bn-item:hover { color: var(--text); text-decoration: none; }
  .tb-bn-item.is-on, .tb-bn-item[aria-expanded="true"] { color: var(--brand-text); }
  .tb-bn-item.is-on::before { content: ''; position: absolute; top: 2px; width: 22px; height: 3px; border-radius: 3px; background: var(--brand-ui); }
  .tb-bn-item:active { transform: scale(.94); }
  /* المحتوى ميتغطاش تحت الشريط */
  .has-bnav .tb-ftr-in { padding-bottom: 22px; }
}

/* ورقة الأقسام السفلية */
.tb-sheet { position: fixed; inset-inline: 0; bottom: 0; z-index: 96; max-height: 78vh; overflow-y: auto; padding: 8px 16px calc(18px + env(safe-area-inset-bottom)); background: var(--surface);
  border-radius: 24px 24px 0 0; box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, .45); transform: translateY(105%); visibility: hidden; transition: transform .28s cubic-bezier(.3, .8, .3, 1), visibility 0s .28s; }
.tb-sheet.is-open { transform: none; visibility: visible; transition: transform .28s cubic-bezier(.3, .8, .3, 1); }
.tb-sheet-grip { width: 42px; height: 5px; border-radius: 5px; background: var(--border-2); margin: 4px auto 10px; }
.tb-sheet-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.tb-sheet-h strong { font-family: var(--display); font-size: 20px; }
.tb-sheet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tb-sheet-grid a { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-weight: 800; font-size: 14.5px; min-width: 0; }
.tb-sheet-grid a > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-sheet-grid a:hover { text-decoration: none; border-color: var(--brand-ui); }
.tb-sheet-grid a.is-on { background: var(--brand-50); border-color: var(--brand-ui); color: var(--brand-text); }
.tb-sheet-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-text); flex-shrink: 0; }
@media (min-width: 1180px) { .tb-sheet { display: none; } }
@media (prefers-reduced-motion: reduce) { .tb-sheet { transition: none; } }

/* ═══ نموذج طلب التصحيح ═══ */
.tb-corr { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.tb-corr-form, .tb-corr-done { padding: 26px 22px; }
.tb-form-row { display: grid; gap: 0 16px; grid-template-columns: minmax(0, 1fr); }
.tb-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tb-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 5px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); margin-top: 8px; }
.tb-seg-opt { position: relative; cursor: pointer; }
.tb-seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.tb-seg-opt span { display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 8px; border-radius: 10px; font-weight: 800; font-size: 14px; color: var(--muted); text-align: center; transition: background var(--tr), color var(--tr); }
.tb-seg-opt input:checked + span { background: var(--surface); color: var(--brand-text); box-shadow: var(--shadow); }
.tb-seg-opt input:focus-visible + span { outline: 2px solid var(--brand-ui); outline-offset: 2px; }
.tb-corr-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 6px; }
.tb-corr-done { text-align: center; }
.tb-corr-done-ic { width: 68px; height: 68px; border-radius: 22px; display: inline-grid; place-items: center; background: var(--ok-bg); color: var(--ok); margin-bottom: 14px; }
.tb-corr-done h2 { font-family: var(--display); font-size: 28px; margin: 0 0 8px; }
.tb-corr-done p { color: var(--muted); max-width: 520px; margin: 0 auto 20px; }
.tb-corr-done-act { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tb-corr-side { display: grid; gap: 14px; align-content: start; }
.tb-corr-mail { display: flex; gap: 14px; padding: 20px; }
.tb-corr-mail h3, .tb-corr-how h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; margin: 0 0 6px; }
.tb-corr-mail p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.tb-corr-side-ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-text); flex-shrink: 0; }
.tb-corr-addr { display: block; margin-top: 8px; font-size: 12.5px; color: var(--faint); word-break: break-all; }
.tb-corr-how { padding: 20px; }
.tb-corr-how .ic { color: var(--brand-text); }
.tb-corr-how ol { margin: 6px 0 0; padding-inline-start: 20px; color: var(--muted); font-size: 14px; display: grid; gap: 6px; }
@media (min-width: 640px) { .tb-form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tb-corr-form, .tb-corr-done { padding: 32px; } }
@media (min-width: 900px) { .tb-corr { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } .tb-corr-side { position: sticky; top: calc(var(--hdr-h) + 20px); } }

/* ═══ المقاسات ═══ */
@media (min-width: 560px) {
  .tb-stats { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}
@media (min-width: 640px) {
  .tw { padding-inline: 24px; }
  .s-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-grid, .m-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tb-mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 170px; }
  .tb-paper { padding: 34px 36px; }
}
@media (min-width: 900px) {
  .tb-about { grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); align-items: start; }
  .tb-about.no-facts { grid-template-columns: minmax(0, 1fr); }
  .s-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .m-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .m-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tb-faq { grid-template-columns: minmax(280px, .8fr) minmax(0, 2fr); align-items: start; }
  .tb-faq-aside { position: sticky; top: calc(var(--hdr-h) + 20px); }
  .tb-join-in { padding: 48px 44px 42px; }
  .tb-read { grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; }
  .tb-read .tb-side-start { display: none; }
  .tb-side { position: sticky; top: calc(var(--hdr-h) + 20px); max-height: calc(100vh - var(--hdr-h) - 40px); overflow-y: auto; scrollbar-width: thin; }
}
@media (min-width: 1000px) {
  .tb-hero-in { grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr); gap: 56px; padding-block: 56px 80px; align-items: center; }
  .tb-hero-in.no-card { grid-template-columns: minmax(0, 1fr); }
  .c-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; }
  .c-aside { position: sticky; top: calc(var(--hdr-h) + 20px); }
}
@media (min-width: 1180px) {
  .tw { padding-inline: 32px; }
  .tb-nav { display: flex; }
  .tb-burger { display: none; }
  .tb-search { display: block; }
  .tb-search-btn { display: none; }
  .tb-read { grid-template-columns: 250px minmax(0, 1fr) 260px; gap: 28px; }
  .tb-read.no-start { grid-template-columns: minmax(0, 1fr) 280px; }
  .tb-read .tb-side-start { display: grid; }
  .c-layout { grid-template-columns: 240px minmax(0, 1fr) 320px; }
  .c-layout.no-nav { grid-template-columns: minmax(0, 1fr) 320px; }
  .c-nav { order: 0; position: sticky; top: calc(var(--hdr-h) + 20px); }
  .c-menu { flex-direction: column; overflow: visible; padding: 8px; }
  .c-menu a { padding: 10px 12px; }
  .c-nav-stats { display: grid; }
  .m-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .m-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .s-grid.s-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1440px) {
  .m-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tb-mosaic { grid-auto-rows: 200px; }
}
@media (max-width: 1179px) {
  .tb-nav { display: none; }
}
@media (max-width: 899px) {
  .tb-read .tb-side { order: 2; }
  .tb-onpage-box { display: none; }
}
@media (max-width: 639px) {
  .m-strip .m-card:nth-child(n+7) { display: none; }
  .tb-hide-sm { display: none; }
  .tb-brand-sub { display: none; }
  .tb-hdr-in { gap: 8px; }
  .tb-act { gap: 6px; }
  .tb-icon, .tb-btn { height: 40px; min-height: 40px; }
  .tb-icon { width: 40px; }
  .theme-toggle { display: none; }
  .c-thumb { width: 76px; height: 76px; }
  .c-full { padding: 18px 16px; }
  .c-report-pop { inset-inline-end: auto; inset-inline-start: 0; }
  .tb-sec-head .tb-more { margin-inline-start: 0; }
  .tb-block { margin-top: 52px; }
  .tb-hero h1 { font-size: 46px; margin-bottom: 12px; }
  .tb-hero-in { padding-block: 26px 44px; gap: 26px; }
  .tb-hero-crumbs { margin-bottom: 16px; }
  .tb-hero-id { gap: 12px; margin-bottom: 14px; }
  .tb-hero-id .t-logo { width: 56px; height: 56px; font-size: 26px; border-radius: 17px; }
  .tb-hero-line { flex: 1; min-width: 0; font-size: 12.5px; padding: 7px 12px; line-height: 1.5; }
  .tb-hero-bio { max-width: none; font-size: 15.5px; line-height: 1.9; margin-bottom: 22px; }
  .tb-hero-btns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tb-hb { min-height: 50px; padding: 0 10px; font-size: 14.5px; gap: 7px; }
  .tb-stats { margin-top: 22px; gap: 8px; }
  .tb-stat { padding: 12px; gap: 10px; }
  .tb-idcard-cover { aspect-ratio: 16 / 7; }
  .tb-idcard-body { padding: 40px 16px 16px; }
  .tb-idcard-badge { inset-inline-start: 16px; }
  .tb-sheet-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 639px) {
  .tb-num { display: none; }
  .s-card { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 4px 14px; padding: 16px; align-items: start; }
  .s-card-n, .s-card-foot { display: none; }
  .s-card-ic { grid-row: span 2; width: 46px; height: 46px; margin: 0; }
  .s-card h3 { font-size: 21px; }
  .s-card p { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .tb-sec-head { margin-bottom: 16px; }
  .tb-crumbs > [aria-current], .tb-crumbs > .tb-crumb-sep:nth-last-child(2) { display: none; }
  .tb-phead-in { padding-block: 20px 32px; }
}
@media (prefers-reduced-motion: reduce) { .tb-drawer { transition: none; } }
/* header scrolled */
.tb-hdr.is-scrolled { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .35); }
.tb-btn .avatar-xs { box-shadow: 0 0 0 2px rgba(255,255,255,.6); }
.tb-btn-ghost.is-on { border-color: var(--brand-ui); color: var(--brand-text); background: var(--brand-50); }

/* ═══ الحائط ═══ */
.tb-wall .tb-ftr { margin-top: 40px; }
.tb-wall .tb-ftr-note { display: none; }
.wl { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); padding-top: 18px; }
.wl-main { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: start; }
.wl-me, .wl-side { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: start; }
.wl-me { display: none; }
.wl-side { order: 2; }
.wl-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow); overflow: hidden; }
.wl-card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 8px; }
.wl-card-h strong { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.wl-card-h strong .ic { color: var(--brand-text); }
.wl-card-h a { font-size: 13px; font-weight: 800; color: var(--brand-text); }
/* كارت العضو */
.wl-profile { text-align: center; padding-bottom: 16px; }
.wl-profile-cover { position: relative; height: 74px; background: radial-gradient(70% 120% at 100% 0%, rgba(255, 255, 255, .14), transparent 60%), linear-gradient(140deg, var(--band-2), var(--band)); }
.wl-profile-cover .sadu { position: absolute; bottom: 0; inset-inline: 0; height: 8px; }
.wl-profile-av { display: inline-block; margin-top: -38px; position: relative; }
.wl-profile-av .avatar { width: 76px; height: 76px; font-size: 32px; box-shadow: 0 0 0 4px var(--surface), 0 0 0 5.5px var(--gold); }
.wl-profile-name { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 17px; margin-top: 8px; }
.wl-profile-sub { display: block; font-size: 13px; color: var(--faint); padding: 0 14px; }
.wl-profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 14px 14px 0; border-radius: 14px; background: var(--surface-2); }
.wl-profile-stats a { padding: 10px 4px; color: inherit; }
.wl-profile-stats a:hover { text-decoration: none; color: var(--brand-text); }
.wl-profile-stats b { display: block; font-size: 17px; font-variant-numeric: tabular-nums; }
.wl-profile-stats span { font-size: 11.5px; font-weight: 700; color: var(--faint); }
.wl-meter { margin: 14px 16px 0; text-align: start; }
.wl-meter-h { display: flex; justify-content: space-between; font-size: 13px; font-weight: 800; color: var(--muted); }
.meter-bar { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin: 6px 0 8px; }
.meter-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-ui), var(--gold)); }
.wl-next { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--brand-text); }
.wl-links { display: grid; padding: 6px; }
.wl-links a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; font-weight: 800; font-size: 14.5px; color: var(--muted); }
.wl-links a .ic { color: var(--faint); }
.wl-links a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.wl-links b { margin-inline-start: auto; font-size: 12px; padding: 0 8px; border-radius: 999px; background: var(--surface-2); }
.wl-upgrade { padding: 18px; background: linear-gradient(160deg, var(--gold-50), transparent 70%), var(--surface); border-color: color-mix(in srgb, var(--gold) 35%, var(--border)); }
.wl-upgrade-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--gold); color: #1C1405; margin-bottom: 10px; }
.wl-upgrade strong { display: block; font-size: 16px; }
.wl-upgrade p { font-size: 13.5px; color: var(--muted); margin: 6px 0 12px; line-height: 1.8; }
/* الترحيب */
.wl-hello { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px; border-radius: var(--r-xl); color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(70% 120% at 100% 0%, rgba(255, 255, 255, .12), transparent 60%), radial-gradient(50% 120% at 0% 100%, rgba(201, 168, 76, .2), transparent 60%), linear-gradient(150deg, var(--band-2), var(--band)); }
.wl-hello .tb-eyebrow { color: var(--gold-hi); }
.wl-hello h1 { font-family: var(--display); font-size: clamp(24px, 4vw, 32px); line-height: 1.3; margin: 4px 0 4px; }
.wl-hello p { margin: 0; color: rgba(255, 255, 255, .8); font-size: 14.5px; }
.wl-hello .t-logo { width: 58px; height: 58px; font-size: 26px; border-radius: 18px; }
.wl-start { padding: 16px; }
.wl-start-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.wl-start-h strong { display: flex; gap: 8px; align-items: center; }
.wl-start-h span { font-weight: 800; color: var(--brand-text); }
.wl-start-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.wl-start-grid a { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--border-2); font-size: 13.5px; font-weight: 800; color: var(--text); }
.wl-start-grid a:hover { border-color: var(--brand-ui); text-decoration: none; }
.wl-start-grid a.is-done { border-style: solid; background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.wl-compose-lock { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; }
.wl-compose-lock .c-author > span { display: none; }
.wl-compose-lock > div { flex: 1 1 220px; min-width: 0; }
.wl-compose-lock strong { display: block; font-size: 15px; }
.wl-compose-lock span { font-size: 13.5px; color: var(--muted); }
.wl-tabs { width: 100%; }
.wl-tabs a { flex: 1; justify-content: center; }
.tb-wall .c-compose { margin-bottom: 0; }
/* مقال داخل الحائط */
.wl-art { display: flex; gap: 14px; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow); color: inherit; }
.wl-art:hover { text-decoration: none; border-color: var(--brand-ui); }
.wl-art-cover { width: 110px; height: 90px; border-radius: 14px; overflow: hidden; flex-shrink: 0; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-text); }
.wl-art-cover img { width: 100%; height: 100%; object-fit: cover; }
.wl-art-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wl-art-t strong { font-size: 16.5px; line-height: 1.5; }
.wl-art-t > span:last-child { font-size: 13.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wl-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; color: var(--gold-dk); }
:root[data-theme="dark"] .wl-tag { color: var(--gold-hi); }
.wl-newbies-row { display: flex; gap: 6px; padding: 4px 12px 16px; overflow-x: auto; scrollbar-width: none; }
.wl-newbies-row a { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 72px; color: inherit; font-size: 12.5px; font-weight: 800; }
.wl-newbies-row a:hover { text-decoration: none; color: var(--brand-text); }
/* بطاقة القبيلة */
.wl-tribe-cover { position: relative; height: 92px; background: linear-gradient(140deg, var(--brand), var(--band)); }
.wl-tribe-cover img { width: 100%; height: 100%; object-fit: cover; }
.wl-tribe-cover .sadu { position: absolute; bottom: 0; inset-inline: 0; height: 8px; }
.wl-tribe-b { padding: 0 16px 16px; display: grid; gap: 12px; }
.wl-tribe-id { display: flex; align-items: flex-start; gap: 12px; }
.wl-tribe-id > div { padding-top: 10px; min-width: 0; }
.wl-tribe-id .t-logo { width: 58px; height: 58px; font-size: 26px; border-radius: 16px; border: 3px solid var(--surface); margin-top: -26px; position: relative; }
.wl-tribe-id strong { display: block; font-family: var(--display); font-size: 20px; line-height: 1.2; }
.wl-tribe-id span { font-size: 12.5px; color: var(--faint); }
.wl-facts { margin: 0; display: grid; }
.wl-facts > div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 13.5px; }
.wl-facts dt { color: var(--faint); font-weight: 700; }
.wl-facts dd { margin: 0; font-weight: 800; }
.wl-legal { font-size: 12.5px; color: var(--faint); text-align: center; margin: 0; }
.wl-legal a { color: var(--muted); }
@media (min-width: 1000px) {
  .wl { grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; padding-top: 24px; }
  .wl-side { order: 0; position: sticky; top: calc(var(--hdr-h) + 18px); }
}
@media (min-width: 1240px) {
  .wl { grid-template-columns: 280px minmax(0, 1fr) 320px; }
  .wl-me { display: grid; position: sticky; top: calc(var(--hdr-h) + 18px); }
}
@media (max-width: 999px) {
  .wl-side .wl-card:not(.wl-tribe) { display: none; }
}
@media (max-width: 639px) {
  .wl { padding-top: 12px; gap: 12px; }
  .wl-hello { padding: 16px; }
  .wl-hello .t-logo { display: none; }
  .wl-art-cover { width: 84px; height: 74px; }
}
.c-compose-ph { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 639px) { .c-compose > summary .btn span, .c-compose > summary .btn { padding: 0 12px; } }

/* ═══ تحصين التجاوب: منع أي عنصر من توسيع العمود (نصوص طويلة · روابط · أسماء لاتينية) ═══ */
.tb-drawer-foot > *, .tb-about > *, .tb-faq > *, .tb-side > *, .c-aside > *, .c-nav > *, .c-feed > *, .c-top > *,
.tb-results > *, .wl-links > *, .wl-tribe-b > *, .wl > *, .c-layout > *, .tb-read > *, .tb-block > *, .tw > * { min-width: 0; }
.c-post h3, .c-post p, .c-post-body, .c-comment, .prose, .wl-hello h1, .tb-phead h1, .tb-hero h1, .m-card, .wl-profile-name, .us-me, .c-author { overflow-wrap: anywhere; }
.c-post-body a, .prose a { word-break: break-word; }
.m-free-pop { min-width: 0; }
.wl-hello > div { min-width: 0; flex: 1; }
@media (max-width: 560px) {
  .wl-hello { padding: 16px; gap: 12px; }
  .wl-hello h1 { font-size: 22px; }
  .wl-hello .t-logo { width: 48px; height: 48px; font-size: 22px; border-radius: 14px; }
  .c-post { padding: 14px 15px; }
  .c-post-main { gap: 12px; }
  .c-compose > summary { padding: 12px; gap: 10px; }
  .c-compose-ph { padding: 10px 14px; font-size: 14.5px; }
  .c-compose-form { padding: 12px 14px 16px; }
}

/* تبويبات الحائط: شبكة متساوية على الموبايل بدون قص */
.wl-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.wl-tabs a { justify-content: center; min-width: 0; }
@media (max-width: 480px) {
  .wl-tabs { gap: 2px; padding: 3px; }
  .wl-tabs a { padding: 9px 4px; font-size: 13px; }
  .wl-tabs a .ic { display: none; }
}
/* اتجاه النص التلقائي للمحتوى المكتوب بلغات مختلطة (أسماء وروابط لاتينية) */
.c-post h3, .c-post-main p, .c-body p, .c-body, .c-full h1, .tb-phead h1, .wl-art h3 { unicode-bidi: plaintext; text-align: start; }
.c-body, .c-full { overflow-wrap: anywhere; }
.c-compose-ph { font-size: 14.5px; }

/* ─── شجرة الفروع: القوائم المتداخلة في المحتوى بتتعرض كشجرة (قسم «الفروع والفخوذ») ─── */
.tribe-site .prose li > ul, .tribe-site .prose li > ol { list-style: none; margin: 6px 0 10px; padding-inline-start: 22px; border-inline-start: 2px solid var(--border-2); }
.tribe-site .prose li > ul > li { position: relative; margin-bottom: 4px; }
.tribe-site .prose li > ul > li::before { content: ''; position: absolute; inset-inline-start: -22px; top: .95em; width: 16px; border-top: 2px solid var(--border-2); }
.tribe-site .prose ul:has(> li > ul) > li > strong:first-child { color: var(--brand-text); }
