/* Search-engine pages (routes/seoRoutes.js, utils/seo/render.js): small and fast on purpose —
   no web fonts, no JavaScript. Minglo colours, day mode. */
:root {
  --bg: #f6f5fb; --card: #fff; --card-2: #f1efff; --border: #e6e4f2;
  --text: #14132b; --text-2: #4a4868; --purple: #6a4cf5; --purple-soft: #6a4cf5; --gold: #ffc531;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", Tahoma, sans-serif; }
a { color: inherit; }
img { max-width: 100%; }

.s-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.s-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 21px; letter-spacing: -.4px; }
.s-brand svg { border-radius: 10px; display: block; }
.s-nav { display: flex; align-items: center; gap: 10px; }
.s-nav > a:first-child { text-decoration: none; color: var(--text-2); font-weight: 600; }
.s-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--purple); color: #fff; font-weight: 800; text-decoration: none; white-space: nowrap; }
.s-btn-gold { background: var(--gold); color: #14132b; }
.s-btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.s-btn-lg { min-height: 50px; padding: 0 22px; font-size: 16px; }
@media (max-width: 560px) { .s-nav .s-btn { display: none; } }

.s-main { max-width: 1040px; margin: 0 auto; padding: 18px 18px 40px; }
.s-crumbs { font-size: 13.5px; color: var(--text-2); margin: 6px 0 10px; }
.s-crumbs a { text-decoration: none; }
.s-hero { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: 26px 0 10px; }
.s-hero h1 { font-size: clamp(28px, 4.2vw, 46px); line-height: 1.15; letter-spacing: -1px; margin: 0 0 10px; }
.s-lead { font-size: 18px; color: var(--text-2); margin: 0 0 8px; max-width: 640px; white-space: pre-line; }
.s-muted { color: var(--text-2); font-size: 14px; margin: 4px 0; }
.s-hero-owl { display: grid; place-items: center; }
.s-flag-big { font-size: 110px; line-height: 1; }
.s-room-img img, .s-avatar-lg { width: 150px; height: 150px; object-fit: cover; border-radius: 28px; }
.s-avatar-lg { border-radius: 50%; }
.s-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.s-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; }
.s-stats span { padding: 6px 12px; border-radius: 999px; background: var(--card-2); font-size: 14px; font-weight: 600; }
.s-verified { color: var(--gold); font-size: .7em; }
@media (max-width: 720px) {
  .s-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 10px; }
  .s-hero .minglo-owl { width: 140px; height: 140px; }
  .s-ctas, .s-stats { justify-content: center; }
  .s-flag-big { font-size: 80px; }
}

.s-sec { margin-top: 34px; }
.s-sec h2 { font-size: 22px; letter-spacing: -.3px; margin: 0 0 12px; }
.s-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.s-cols article { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 16px 18px; }
.s-cols h2 { font-size: 18px; margin-bottom: 6px; }
.s-cols p { margin: 0; color: var(--text-2); }
.s-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.s-tile { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--border); text-decoration: none; }
.s-tile:hover, .s-card:hover { border-color: var(--purple-soft); }
.s-tile small { color: var(--text-2); }
.s-ico { font-size: 26px; }
.s-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.s-card { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); text-decoration: none; min-width: 0; }
.s-card-img { flex: none; width: 56px; height: 56px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: var(--card-2); font-size: 28px; }
.s-card-img img { width: 100%; height: 100%; object-fit: cover; }
.s-card-body { display: flex; flex-direction: column; min-width: 0; }
.s-card-body b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-card-body small { color: var(--text-2); font-size: 13px; }
.s-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.s-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.s-chips a { padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.s-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.s-people a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 16px; background: var(--card); text-decoration: none; overflow: hidden; }
.s-people img, .s-av { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.s-people b { font-size: 13.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-av { display: inline-grid; place-items: center; background: var(--purple); color: #fff; font-weight: 900; flex: none; }
.s-av-lg { width: 140px; height: 140px; font-size: 56px; }

.s-faq { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px; margin-bottom: 8px; }
.s-faq summary { cursor: pointer; font-weight: 700; }
.s-faq p { margin: 8px 0 0; color: var(--text-2); }

.s-post { max-width: 680px; margin: 10px auto 0; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 18px; }
.s-post-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.s-post-head img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.s-post-head div { display: flex; flex-direction: column; }
.s-post-head small { color: var(--text-2); font-size: 13px; }
.s-post-text { white-space: pre-line; font-size: 17px; margin: 0 0 10px; }
.s-post-img { display: block; width: 100%; border-radius: 14px; margin: 6px 0; }
.s-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.s-gal-item { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--card-2); display: grid; place-items: center; text-decoration: none; padding: 0; }
.s-gal-item img { width: 100%; height: 100%; object-fit: cover; }
.s-gal-item span { padding: 10px; font-size: 13px; color: var(--text-2); }
.s-gal-item i { position: absolute; inset-inline-end: 8px; top: 6px; font-style: normal; color: #fff; text-shadow: 0 1px 4px #000; }

.s-foot { border-top: 1px solid var(--border); padding: 22px 18px 34px; text-align: center; color: var(--text-2); font-size: 14px; }
.s-foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-bottom: 10px; }
.s-foot-links a { text-decoration: none; }

/* The owl (same moves as the web app: css/app.css "Minglo owl"). */
.minglo-owl { overflow: visible; }
.minglo-owl .mo-body { transform-box: view-box; transform-origin: 256px 330px; animation: mo-sway 4.6s ease-in-out infinite; }
.minglo-owl .mo-eye { transform-box: fill-box; transform-origin: 50% 50%; animation: mo-blink 4.2s ease-in-out infinite; }
.minglo-owl .mo-pupil { animation: mo-look 6.5s ease-in-out infinite; }
.minglo-owl .mo-wing-l { transform-box: fill-box; transform-origin: 80% 10%; animation: mo-flap-l 3.3s ease-in-out infinite; }
.minglo-owl .mo-wing-r { transform-box: fill-box; transform-origin: 20% 10%; animation: mo-flap-r 3.3s ease-in-out infinite; }
.minglo-owl .mo-star { transform-box: fill-box; transform-origin: 50% 50%; animation: mo-twinkle 2.4s ease-in-out infinite; }
@keyframes mo-sway { 0%, 100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(3deg) translateY(-10px); } }
@keyframes mo-blink { 0%, 76%, 80%, 86%, 90%, 100% { transform: scaleY(1); } 78%, 88% { transform: scaleY(.1); } }
@keyframes mo-look { 0%, 12%, 36%, 58%, 84%, 100% { transform: translate(0, 0); } 17%, 31% { transform: translate(-9px, 2px); } 63%, 79% { transform: translate(9px, 2px); } }
@keyframes mo-flap-l { 0%, 70%, 100% { transform: rotate(0); } 78%, 92% { transform: rotate(16deg); } 85% { transform: rotate(4deg); } }
@keyframes mo-flap-r { 0%, 70%, 100% { transform: rotate(0); } 78%, 92% { transform: rotate(-16deg); } 85% { transform: rotate(-4deg); } }
@keyframes mo-twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.72) rotate(45deg); opacity: .75; } }
@media (prefers-reduced-motion: reduce) { .minglo-owl * { animation: none !important; } }
.s-kicker { margin: 0 0 4px; font-weight: 800; color: var(--purple-soft); letter-spacing: .2px; }

/* Language menu (utils/seo/render.js) */
.s-lang { position: relative; }
.s-lang summary { list-style: none; cursor: pointer; padding: 8px 12px; border-radius: 999px; background: var(--card-2); font-weight: 700; font-size: 14px; white-space: nowrap; }
.s-lang summary::-webkit-details-marker { display: none; }
.s-lang div { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 10; display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 2px; padding: 8px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); box-shadow: 0 16px 40px -16px rgba(20, 19, 43, .35); }
.s-lang a { padding: 7px 10px; border-radius: 10px; text-decoration: none; font-size: 14px; }
.s-lang a:hover, .s-lang a[aria-current] { background: var(--card-2); }
.s-foot-langs { font-size: 13px; opacity: .85; }
.s-chip { padding: 8px 14px; border-radius: 999px; background: var(--card-2); font-weight: 600; font-size: 14.5px; }
