:root {
  --teal: #0E2F56; --teal-2: #164170; --teal-3: #157FA6; --teal-soft: #E4F1F7;
  --sand: #F4F7FA; --sand-2: #E6EDF3; --paper: #FFFFFF; --ink: #0E2236; --muted: #586A7C; --line: #D6E0EA;
  --copper: #1A8DB5; --copper-soft: #DDF0F7; --green: #2F7D57; --green-soft: #E2F1E8; --red: #B04434; --red-soft: #F8E2DE;
  --r: 14px; --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; --display: 'Montserrat', 'Inter', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--sand); color: var(--ink); font-family: var(--font); font-size: 16.5px; line-height: 1.6; }
a { color: var(--teal-3); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.3; margin: 0; font-weight: 700; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
.hidden { display: none !important; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 18px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--copper); }
[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: 14px; }

/* header */
.top { background: var(--teal); color: #fff; position: sticky; top: 0; z-index: 30; box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.top .wrap { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none !important; }
.logo-mark { font-family: var(--display); font-size: 34px; line-height: 1; font-weight: 700; color: #fff; padding-bottom: 4px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text b { font-size: 15px; }
.logo-text span { font-size: 11.5px; opacity: .75; }
.nav { display: flex; gap: 2px; margin-inline-start: auto; align-items: center; }
.nav a { color: #DCEBEB; padding: 8px 11px; border-radius: 9px; font-size: 15px; font-weight: 500; }
.nav a:hover, .nav a.on { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.lang-btn { background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 9px; padding: 6px 11px; cursor: pointer; font-size: 14px; font-weight: 600; }
.menu-btn { display: none; background: transparent; border: 0; color: #fff; font-size: 26px; cursor: pointer; padding: 4px 8px; }
.drawer { display: none; }
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .top-actions { margin-inline-start: auto; }
  .drawer.open { display: flex; flex-direction: column; background: var(--teal-2); padding: 8px 18px 16px; }
  .drawer a { color: #fff; padding: 11px 4px; border-bottom: 1px solid rgba(255,255,255,.08); font-weight: 500; }
}

/* buttons, forms */
.btn { appearance: none; border: 1.5px solid var(--teal); background: transparent; color: var(--teal); border-radius: 11px; padding: 10px 18px; font-weight: 700; font-size: 15.5px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; justify-content: center; text-decoration: none !important; min-height: 44px; }
.btn.primary { background: var(--teal); color: #fff; }
.btn.copper { background: var(--copper); border-color: var(--copper); color: #fff; }
.btn.light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn.small { padding: 6px 12px; min-height: 34px; font-size: 14px; border-radius: 9px; }
.btn.danger { border-color: var(--red); color: var(--red); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.block { width: 100%; }
label.f { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
label.f .hint { font-weight: 400; font-size: 13.5px; color: var(--muted); }
.t { border: 1.5px solid var(--line); background: var(--paper); border-radius: 10px; padding: 10px 12px; width: 100%; font-size: 16px; }
.t:focus { outline: none; border-color: var(--teal-3); }
textarea.t { min-height: 110px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: var(--paper); border-radius: 999px; padding: 6px 13px; font-size: 14.5px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--teal); color: #fff; border-color: var(--teal); }
.banner { border-radius: 11px; padding: 11px 14px; font-size: 15px; }
.banner.green { background: var(--green-soft); color: #1F5A3E; }
.banner.red { background: var(--red-soft); color: #7D2A1E; }
.banner.copper { background: var(--copper-soft); color: #6E4A17; }
.banner.teal { background: var(--teal-soft); color: var(--teal); }

/* layout pieces */
main { min-height: 70vh; }
.section { padding: 34px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h2 { font-size: 26px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.page-head { background: var(--teal); color: #fff; padding: 34px 0 30px; }
.page-head h1 { font-size: 32px; }
.page-head p { color: #C9DCEE; margin-top: 6px; max-width: 640px; }

/* hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #1E5A92 0%, transparent 60%), var(--teal); color: #fff; padding: 52px 0 56px; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: grid; gap: 30px; grid-template-columns: 1.2fr 1fr; align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }
.hero h1 { font-size: 44px; line-height: 1.2; }
.hero .mark { font-family: var(--display); font-size: 92px; line-height: .9; color: #fff; }
.hero p.lead { font-size: 18.5px; color: #D6E7E7; margin-top: 12px; max-width: 560px; }
.hero .row { margin-top: 22px; }
.hero-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 10px; backdrop-filter: blur(4px); }
.hero-card .eyebrow { color: #8FD3EE; }
.hero-card h3 { font-size: 21px; }
.datebox { display: inline-flex; align-items: baseline; gap: 6px; background: var(--copper); color: #fff; border-radius: 10px; padding: 6px 12px; font-weight: 700; align-self: flex-start; }
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: -26px; position: relative; z-index: 2; }
.stats-band div { background: var(--paper); padding: 16px; text-align: center; }
.stats-band b { display: block; font-size: 26px; color: var(--teal); }
.stats-band span { font-size: 13.5px; color: var(--muted); }
@media (max-width: 600px) { .stats-band { grid-template-columns: repeat(2, 1fr); } .hero h1 { font-size: 34px; } .hero .mark { font-size: 70px; } }

/* content cards */
.ccard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; text-decoration: none !important; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.ccard:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(1,58,65,.09); }
.thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--teal) 0%, var(--teal-3) 100%); position: relative; display: grid; place-items: center; color: #fff; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .play { position: absolute; width: 54px; height: 54px; border-radius: 50%; background: rgba(0,0,0,.45); display: grid; place-items: center; font-size: 22px; }
.thumb .series { position: absolute; inset-inline-start: 12px; bottom: 10px; font-size: 13px; font-weight: 600; background: rgba(0,0,0,.35); padding: 2px 9px; border-radius: 6px; }
.thumb .word { font-family: var(--display); font-size: 40px; opacity: .25; }
.ccard .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ccard h3 { font-size: 17px; line-height: 1.45; }
.ccard .meta { font-size: 13.5px; color: var(--muted); margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.book-cover { aspect-ratio: 3/4; background: linear-gradient(160deg, var(--teal) 0%, #04525A 60%, var(--teal-3) 100%); color: #fff; padding: 18px 16px; display: flex; flex-direction: column; justify-content: space-between; position: relative; }
.book-cover::before { content: ''; position: absolute; inset-block: 0; inset-inline-start: 10px; width: 2px; background: rgba(255,255,255,.18); }
.book-cover h3 { font-family: var(--display); font-size: 22px; line-height: 1.35; }
.book-cover .by { font-size: 13px; color: #C9DCEE; }
.book-cover .mk { font-family: var(--display); font-size: 26px; opacity: .6; align-self: flex-end; }
.list-row { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; text-decoration: none !important; color: var(--ink); }
.list-row:hover { border-color: var(--teal-3); }
.list-row .ic { width: 46px; height: 46px; border-radius: 11px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; font-size: 20px; flex: none; }
.list-row h3 { font-size: 17.5px; }

/* item page */
.detail { display: grid; grid-template-columns: 1fr 330px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } }
.video { aspect-ratio: 16/9; border-radius: var(--r); overflow: hidden; background: #000; }
.video iframe { width: 100%; height: 100%; border: 0; }
.tag { display: inline-block; font-size: 12.5px; font-weight: 700; background: var(--teal-soft); color: var(--teal); padding: 3px 10px; border-radius: 999px; }
.tag.copper { background: var(--copper-soft); color: #7A5320; }
.tag.green { background: var(--green-soft); color: var(--green); }
.tag.gray { background: #ECECEC; color: #555; }

/* discussion */
.thread { display: flex; flex-direction: column; gap: 12px; }
.msg { display: flex; gap: 10px; align-items: flex-start; }
.av { width: 36px; height: 36px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.av.staff { background: var(--copper); }
.bubble { background: var(--sand); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; flex: 1; }
.bubble .who { font-size: 13px; font-weight: 700; color: var(--teal-2); display: flex; gap: 8px; flex-wrap: wrap; }
.bubble .who span { font-weight: 400; color: var(--muted); }
.msg.hiddenmsg { opacity: .5; }

/* footer */
footer { background: var(--teal); color: #C9DCEE; margin-top: 40px; padding: 30px 0; font-size: 14.5px; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
footer a { color: #fff; }
footer h4 { color: #fff; margin: 0 0 8px; font-size: 15px; }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 700px) { footer .wrap { grid-template-columns: 1fr; } }

/* admin */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { border: 0; background: var(--paper); border: 1px solid var(--line); padding: 8px 14px; border-radius: 10px; font-weight: 600; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--teal); color: #fff; border-color: var(--teal); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.kpi b { font-size: 26px; color: var(--teal); display: block; }
.kpi span { font-size: 13px; color: var(--muted); }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; background: var(--paper); border-radius: 12px; overflow: hidden; }
table.data th, table.data td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
table.data th { background: var(--sand-2); font-size: 13px; }
.toast { position: fixed; bottom: 18px; inset-inline-start: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 50; font-size: 15px; }
[dir="rtl"] .toast { transform: translateX(50%); }
@media (max-width: 600px) {
  .logo-text span { display: none; }
  .logo-text b { font-size: 14px; }
  .logo-mark { font-size: 28px; }
  .top .wrap { gap: 8px; }
  .top-actions .btn.small { padding: 5px 9px; font-size: 13px; }
  .lang-btn { padding: 5px 8px; font-size: 13px; }
}


/* Maan-Koris */
h1, h2 { font-family: var(--display); letter-spacing: -.01em; }
.logo-img { width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: 10px; padding: 4px; }
.logo-text b { font-family: var(--display); font-weight: 800; letter-spacing: .02em; }
.soft { color: #C9DCEE; }
.hero-mark { width: 190px; max-width: 60%; margin-bottom: 14px; }
.hero-tag { font-style: italic; color: #8FD3EE; font-size: 17px; margin-bottom: 14px; }
.mk-mark { width: 46%; max-width: 120px; opacity: .9; }
.thumb { background: var(--teal-soft); display: grid; place-items: center; }
.thumb .mk-mark { opacity: .5; }
.book-cover .mk-mark { width: 54px; align-self: flex-end; filter: brightness(0) invert(1); opacity: .6; }
.btn.copper { color: #fff; }
.proverb { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.proverb blockquote { margin: 0; font-family: var(--display); font-weight: 800; font-size: 24px; color: var(--teal); }
.proverb figcaption { color: var(--muted); font-style: italic; }
.shaykh-band { background: var(--teal); color: #fff; }
.shaykh-band h2 { font-size: 24px; }
.shaykh-band .list-row, .shaykh-band .ccard { background: rgba(255,255,255,.96); color: var(--ink); }
.shaykh-row { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.shaykh-photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; border: 3px solid rgba(255,255,255,.25); }
.shaykh-head .wrap { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; }
.shaykh-head .shaykh-photo { border-radius: 50%; }
@media (max-width: 760px) { .shaykh-row { grid-template-columns: 1fr; } .shaykh-row .shaykh-photo { max-width: 220px; } .shaykh-head .wrap { grid-template-columns: 84px 1fr; } }
@media (max-width: 600px) { .proverb blockquote { font-size: 20px; } .hero-mark { width: 150px; } }
.shaykh-name { font-weight: 700; color: #8FD3EE !important; font-size: 17px; }
.msg.child { margin-inline-start: 38px; }
.pk { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--teal-soft); color: var(--teal); margin-bottom: 4px; }
.pk-question { background: #FFF4D6; color: #7A5A00; } .pk-counter { background: #FBE4E1; color: #8A2E22; } .pk-connect { background: #E3F2E8; color: #1F6B3F; }
.linkchip { display: inline-block; margin-top: 6px; font-size: 13.5px; font-weight: 600; background: var(--teal-soft); padding: 4px 10px; border-radius: 10px; }
.replylink { font-size: 13px; display: inline-block; margin-top: 6px; }
.composer { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 6px; }
.btn.zoom { background: #2D8CFF; color: #fff; border-color: #2D8CFF; font-weight: 700; }
.av.big { width: 44px; height: 44px; font-size: 16px; }
.member-card { gap: 10px; }
.invite { background: var(--teal-soft); border-color: transparent; }
select.t { appearance: auto; }
.vfile { width: 100%; border-radius: 14px; background: #000; max-height: 70vh; }

/* header illustration */
.hero-art { aspect-ratio: 2 / 1; max-height: 520px; width: 100%; background: var(--teal) url('../header.jpg') center 35% / cover no-repeat; position: relative; }
.hero-art::after { content: ''; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(to bottom, transparent, var(--teal)); }
.hero-art + .hero { padding-top: 18px; }
.hero-art + .hero .hero-mark { width: 120px; }
@media (min-width: 900px) { .hero-art { aspect-ratio: auto; height: 460px; } }

.art-quote { position: absolute; z-index: 1; left: 0; right: 0; top: 0; margin: 0 auto; max-width: 1120px; padding: 22px 18px 0; font-family: var(--display); font-weight: 800; font-style: italic;
  font-size: clamp(20px, 5.4vw, 46px); line-height: 1.2; color: #fff; text-shadow: 0 2px 14px rgba(8, 22, 44, .75), 0 1px 3px rgba(8, 22, 44, .6); max-inline-size: 1120px; }
.art-quote { width: min(100%, 1120px); }
@media (min-width: 900px) { .art-quote { padding-top: 48px; padding-right: 45%; } }
@media (max-width: 899px) { .art-quote { padding-right: 38%; } }
