/* أخبار سحائب: the header, footer, colours and fonts of the main site sahaaib.org.sa (its index.html), so the two read as one site */
@font-face { font-family: 'IBM Plex Sans Arabic'; font-weight: 400; font-display: swap; src: url(/fonts/plex-arabic-400.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-weight: 600 700; font-display: swap; src: url(/fonts/plex-arabic-600.woff2) format('woff2'); }
@font-face { font-family: 'Amiri'; font-weight: 400 700; font-display: swap; src: url(/fonts/amiri-arabic-700.woff2) format('woff2'); }
[hidden] { display: none !important; }
:root {
  --green: #314D3F; --green-2: #26402F; --mint: #DAE7CE; --gold: #BB9F69; --eyebrow: #7A6438; --sky: #EFF8F9;
  --bg: #F6F4EE; --card: #fff; --ink: #1F2A24; --ink2: #5B6660; --line: #E2DED2; --line2: #D7D2C5;
  --wrap: 1200px; --pad: clamp(18px, 4vw, 40px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'IBM Plex Sans Arabic', sans-serif; font-size: 17px; line-height: 1.85; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad); }

/* header (as on sahaaib.org.sa) */
.top { position: sticky; top: 0; z-index: 30; background: rgba(246, 244, 238, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 28px; padding-block: 12px; }
.top .logo img { height: 40px; width: auto; }
.top nav.main { display: flex; gap: 24px; font-size: 15px; font-weight: 500; }
.top nav.main a:hover, .top nav.main a.on { color: var(--green); }
.top nav.main a.on { font-weight: 700; box-shadow: inset 0 -2px 0 var(--gold); }
.give { margin-inline-start: auto; background: var(--green); color: #fff; padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: 14px; white-space: nowrap; line-height: 1.5; }
.give:hover { background: var(--green-2); }
.menu-btn { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line2); background: #fff; color: var(--green); font-size: 20px; cursor: pointer; display: none; place-items: center; flex: none; padding: 0; }
nav.drop { display: flex; flex-direction: column; padding: 4px var(--pad) 16px; border-top: 1px solid var(--line); background: var(--bg); }
nav.drop a { padding: 14px 0; border-bottom: 1px solid #EEEBE3; font-size: 17px; font-weight: 500; }
nav.drop a:last-child { border-bottom: 0; }
nav.drop a.on { color: var(--green); font-weight: 700; }
@media (max-width: 899px) { .top nav.main { display: none; } .menu-btn { display: grid; } }

/* page title band */
.hero { background: linear-gradient(180deg, var(--sky) 0%, var(--bg) 100%); }
.hero .wrap { padding-block: clamp(40px, 6vw, 72px) clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 10px; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--eyebrow); }
.hero h1 { margin: 0; font-family: Amiri, serif; font-weight: 700; font-size: clamp(38px, 5vw, 60px); line-height: 1.2; color: var(--green); }
.hero p { margin: 0; color: var(--ink2); max-width: 640px; }

main { padding-block: 8px clamp(56px, 7vw, 96px); }

/* list */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-3px); border-color: var(--line2); box-shadow: 0 14px 34px rgba(49, 77, 63, .1); }
.card .ph { aspect-ratio: 16 / 10; background: #ECE9E0; overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card .ph.none { display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, var(--sky), #EEF1E8); }
.card .ph.none img { width: 42%; height: auto; object-fit: contain; opacity: .8; }
.card .tx { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.date { font-size: 13px; color: var(--eyebrow); font-weight: 600; }
.sep { display: inline-block; width: 1px; height: .9em; background: currentColor; opacity: .45; margin: 0 .6em; vertical-align: -.1em; }
.card h2 { margin: 0; font-family: Amiri, serif; font-weight: 700; font-size: 25px; line-height: 1.45; color: var(--green); }
.card p { margin: 0; color: var(--ink2); font-size: 15.5px; line-height: 1.85; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .more-l { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 600; color: var(--green); }

/* the newest post, wide */
.card.lead { grid-column: 1 / -1; flex-direction: row; }
.card.lead .ph { flex: 0 0 56%; aspect-ratio: auto; min-height: 340px; }
.card.lead .tx { padding: clamp(24px, 3vw, 40px); justify-content: center; gap: 12px; }
.card.lead h2 { font-size: clamp(30px, 3.2vw, 40px); line-height: 1.3; }
.card.lead p { -webkit-line-clamp: 5; font-size: 16.5px; }
.card.lead .more-l { margin-top: 6px; }
@media (max-width: 760px) {
  .card.lead { flex-direction: column; }
  .card.lead .ph { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
  .card.lead .tx { padding: 20px 22px 24px; }
  .card.lead h2 { font-size: 28px; }
}

.pager { display: flex; justify-content: center; margin-top: 36px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--line2); background: #fff; color: var(--green); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--green); }
.btn.solid { background: var(--green); border-color: var(--green); color: #fff; }
.btn.solid:hover { background: var(--green-2); }

.empty { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 56px 24px; text-align: center; color: var(--ink2); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty img { width: 140px; margin-bottom: 8px; }
.empty b { color: var(--green); font-family: Amiri, serif; font-size: 26px; font-weight: 700; }
.empty .btn { margin-top: 12px; }

/* a post */
.post { max-width: 780px; margin: 0 auto; }
.post .hero-in { padding-top: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 10px; }
.back { display: flex; width: max-content; align-items: center; gap: 6px; color: var(--ink2); font-size: 14px; font-weight: 500; min-height: 40px; }
.back:hover { color: var(--green); }
.post h1 { margin: 0; font-family: Amiri, serif; font-weight: 700; font-size: clamp(34px, 4.4vw, 50px); line-height: 1.3; color: var(--green); text-wrap: balance; }
.post .pic { border-radius: 28px; overflow: hidden; margin: 28px 0 10px; background: #ECE9E0; }
.post .pic img { width: 100%; height: auto; }
.post .body { font-size: 18px; line-height: 2; margin-top: 18px; }
.post .body p { margin: 0 0 1em; text-wrap: pretty; }
.post .body a { color: var(--green); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; word-break: break-word; }
.share { display: flex; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 32px; padding-top: 22px; }
@media (max-width: 560px) { .post .body { font-size: 17px; } .post .pic { border-radius: 20px; } }

/* footer (as on sahaaib.org.sa) */
footer { background: var(--green); color: #fff; }
footer .wrap { padding-block: 48px 32px; display: flex; flex-direction: column; gap: 28px; }
.f-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.f-brand { display: flex; align-items: center; gap: 18px; }
.f-brand img { height: 64px; width: auto; }
.f-brand i { width: 1px; height: 44px; background: var(--gold); }
.f-brand span { font-family: Amiri, serif; font-size: 18px; line-height: 1.5; }
.f-links { display: flex; gap: 22px; font-size: 14px; flex-wrap: wrap; }
.f-links a { color: var(--mint); }
.f-links a:hover { color: #fff; }
.f-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 20px; font-size: 13px; opacity: .9; }
.f-base .ltr { direction: ltr; }

/* inside the SAHAAIB app's «الأخبار» tab: the app has its own tabs, so no site header or footer */
.app .top, .app footer { display: none; }
.app .hero .wrap { padding-block: 22px 18px; }
.app .hero h1 { font-size: 34px; }
.app .post .hero-in { padding-top: 18px; }
