/* ============================================================
   assets/css/public.css
   The one stylesheet for the Public Portal (nadwicentre.com),
   as decided. Not yet in use — the Public Portal (Module 7)
   hasn't been built yet — but the file exists now so the
   architecture is ready when we get there, rather than being a
   fresh CSS decision at that point.

   Deliberately duplicates the token block from admin.css rather
   than sharing a third file, per "two CSS files" — public.css
   and admin.css are each self-contained.
   ============================================================ */

:root {
  --latin-font: 'Plus Jakarta Sans', sans-serif;
  --brand-navy: #1e293b;
  --brand-green: #047857;
  --nastaleeq-size: 18px;
  --nastaleeq-lh: 2.2;
}

/* Awami Nastaliq — see admin.css for the full explanation. Same
   scaffold, same graceful fallback until the files are uploaded. */
@font-face {
  font-family: 'Awami Nastaliq';
  src: url('/assets/fonts/AwamiNastaliq-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

body {
  background: #f8fafc;
  font-family: var(--latin-font);
}

.urdu-field {
  font-family: var(--nastaleeq-font, 'Noto Nastaliq Urdu', serif);
  font-size: var(--nastaleeq-size);
  line-height: var(--nastaleeq-lh);
  direction: rtl;
  text-align: right;
}

mark.search-hit, .search-hit {
  background-color: #fef08a !important;
  color: #713f12 !important;
  padding: 1px 3px;
  border-radius: 3px;
}

/* Public Portal-specific rules (nav, hero, gallery, received-books
   ledger, etc.) will be added here when Module 7 is built. */
