/* MEPCO GP Child: language switch + news section (loaded on every page, small). Urdu-only rules are in rtl.css. */
:root { --font-latin: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }

/* Digits, hosts and codes stay left-to-right inside right-to-left text. */
.ltr-num { font-family: var(--font-latin); direction: ltr; unicode-bidi: isolate; }

/* ---------- Language switch: English | اردو ---------- */
.lang-switch { display: inline-flex; align-items: center; gap: 4px; font-size: 0.8rem; font-weight: 800; }
.lang-switch a { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 0 8px; border-radius: 9px; color: var(--primary-dark); text-decoration: none; }
.lang-switch a:hover { background: var(--primary-soft); }
.lang-switch a[lang="ur"] { font-family: var(--font-urdu); font-size: 1.08em; letter-spacing: 0; }
.lang-switch a.is-current { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.lang-sep { color: var(--muted); }
.lang-switch--header { display: none; }
.lang-switch--menu { display: flex; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }

@media (min-width: 780px) {
  .lang-switch--header { display: inline-flex; flex: 0 0 auto; }
  .lang-switch--menu { display: none; }
}

/* ---------- News ---------- */
.news-grid { display: grid; gap: 18px; }
.news-card { position: relative; display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-sm); transition: transform 160ms ease, box-shadow 160ms ease; }
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.news-card-media { border-bottom: 1px solid var(--border); background: var(--primary-soft); }
.news-card-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.news-card .card-kicker.news-date { letter-spacing: 0; text-transform: none; font-size: 0.7rem; }
.news-strip-more { margin: 28px 0 0; text-align: center; }

.news-shell { width: min(100% - 32px, 820px); margin: 40px auto 70px; }
.news-article { max-width: none; }
.news-figure { margin: 0 0 26px; }
.news-hero-img { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); }
.news-source { margin-top: 30px; }
.news-meta { font-size: 0.74rem; }

@media (min-width: 560px) {
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 980px) {
  .news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media print {
  .lang-switch { display: none !important; }
}
