/* shared site header + footer (inc/site-header.php, inc/site-footer.php) */
@font-face { font-family: 'MV Waheed'; src: url('MVWaheed.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Farumaa'; src: url('Faruma.otf'); font-display: swap; }

:root {
    --red: #e60000;
    --red-dark: #b80000;
    --blue: #034aa0;
    --ink: #16181d;
    --muted: #6b7280;
    --line: #e5e7eb;
    --bg: #f4f5f7;
    --card: #ffffff;
    --wrap: 1180px;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.site-chrome, .site-chrome * { box-sizing: border-box; direction: rtl; }
.site-chrome a { color: inherit; text-decoration: none; }
.site-chrome img { display: block; max-width: 100%; }

/* top strip */
.topbar { background: var(--ink); color: #d1d5db; font-size: 13px; font-family: 'Farumaa', 'MV Waheed', sans-serif; line-height: 1.7; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar .social a { margin-right: 14px; color: #d1d5db; transition: color .15s; }
.topbar .social a:hover { color: #fff; }

/* masthead */
.masthead { background: #fff; border-bottom: 1px solid var(--line); }
.masthead .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; padding-bottom: 14px; }
.masthead .logo img { height: 64px; width: auto; }
.tg-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: #229ed9; color: #fff; padding: 8px 16px; border-radius: 4px;
    font-family: 'MV Waheed'; font-size: 15px; line-height: 1.7;
}
.site-chrome .tg-btn { color: #fff; }
.tg-btn:hover { background: #1a8bc0; }
.mast-btns { display: flex; gap: 8px; }
.donate-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: #0f7a4f; color: #fff; padding: 8px 16px; border-radius: 4px;
    font-family: 'MV Waheed'; font-size: 15px; line-height: 1.7;
}
.site-chrome .donate-btn { color: #fff; }
.donate-btn:hover { background: #0b5f3d; }

/* nav + ticker */
.nav { background: var(--red); }
.nav .wrap { display: flex; align-items: center; height: 44px; overflow: hidden; }
.nav .home { color: #fff; font-size: 16px; padding: 0 4px 0 18px; white-space: nowrap; border-left: 1px solid rgba(255,255,255,.35); margin-left: 14px; }
.ticker-label { background: var(--blue); color: #fff; font-family: 'MV Waheed'; font-size: 14px; line-height: 1.7; padding: 3px 12px; border-radius: 3px; white-space: nowrap; margin-left: 12px; }
.ticker { flex: 1; overflow: hidden; position: relative; height: 100%; }
.ticker-track { position: absolute; top: 0; right: 0; display: flex; align-items: center; height: 100%; white-space: nowrap; animation: tick 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track a { color: #fff; font-family: 'MV Waheed'; font-size: 15px; padding-left: 28px; }
.ticker-track a::after { content: '•'; padding-right: 28px; opacity: .6; }
/* headlines are rendered twice; sliding by one copy loops seamlessly */
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* footer */
.site-footer { background: #fff; border-top: 4px solid var(--red); margin-top: 0; }
.site-footer .wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 26px; padding-bottom: 22px; }
.site-footer .logo img { height: 52px; width: auto; }
.site-footer .social { display: flex; gap: 10px; }
.site-footer .social a {
    width: 36px; height: 36px; border-radius: 50%; background: var(--bg); color: var(--ink);
    display: flex; align-items: center; justify-content: center; transition: background .15s, color .15s;
}
.site-footer .social a:hover { background: var(--red); color: #fff; }
.site-footer .links { font-size: 13px; color: var(--muted); font-family: 'Lato', Arial, sans-serif; }
.site-footer .links, .site-footer .links * { direction: ltr; }
.site-footer .links a { margin: 0 8px; }
.site-footer .links a:hover { color: var(--red); }

@media (max-width: 600px) {
    .topbar .social { display: none; }
    .masthead .logo img { height: 46px; }
    .masthead .tg-btn span, .masthead .donate-btn span { display: none; }
    .nav .home { display: none; }
}
