/* ================================================================
   papiers.css — Custom styles for papiers.tn
   Loaded globally via base.php after Tabler CSS.
   ================================================================ */

/* ── ARABIC FONTS ───────────────────────────────────────────── */
/* Cairo: modern geometric Arabic — never leaves the system fallback */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap');
[lang="ar-TN"] {
  --tblr-font-sans-serif: 'Cairo', sans-serif;
}
[lang="ar-TN"] body,
[lang="ar-TN"] h1, [lang="ar-TN"] h2, [lang="ar-TN"] h3,
[lang="ar-TN"] .btn, [lang="ar-TN"] .nav-link,
[lang="ar-TN"] label, [lang="ar-TN"] input, [lang="ar-TN"] select, [lang="ar-TN"] textarea {
  font-family: 'Cairo', sans-serif;
}
[lang="ar-TN"] h1, [lang="ar-TN"] h2 { font-weight: 700; line-height: 1.3; }

/* ── SHARED SECTION HELPERS ─────────────────────────────────── */
.ppt-sec-title { font-size: 1.75rem; font-weight: 800; text-align: center; color: #1e293b; margin-bottom: .4rem; }
.ppt-sec-sub   { text-align: center; color: #475569; font-size: .95rem; margin-bottom: 2.5rem; }

/* ── HERO ───────────────────────────────────────────────────── */
.ppt-hero { background: #EEF2FF; padding: 5.5rem 0 4.5rem; border-bottom: 1px solid #dde4f5; box-shadow: 0 4px 24px rgba(37,99,235,.06); }
.ppt-headline { font-size: clamp(1.75rem, 3.5vw, 2.6rem); font-weight: 800; line-height: 1.2; color: #1e293b; margin-bottom: .3rem; }
.ppt-tagline  { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; font-style: italic; color: #2563eb; line-height: 1.2; margin-bottom: 1.25rem; }
[dir="rtl"] .ppt-tagline { font-style: normal; }
.ppt-headline-accent { color: #2563EB; }
.ppt-subtitle { font-size: .97rem; color: #475569; line-height: 1.65; margin-bottom: 2.75rem; max-width: 490px; }
[dir="rtl"] .ppt-subtitle { max-width: none; }

/* ── HERO ENTRANCE ANIMATION ────────────────────────────────── */
@keyframes ppt-fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.ppt-hero .ppt-headline { animation: ppt-fade-up .55s ease both; animation-delay: .05s; }
.ppt-hero .ppt-tagline  { animation: ppt-fade-up .55s ease both; animation-delay: .13s; }
.ppt-hero .ppt-subtitle { animation: ppt-fade-up .55s ease both; animation-delay: .22s; }
.ppt-hero .d-flex.gap-2 { animation: ppt-fade-up .55s ease both; animation-delay: .30s; }
.ppt-hero #qs-form      { animation: ppt-fade-up .55s ease both; animation-delay: .38s; }
@media (prefers-reduced-motion: reduce) {
  .ppt-hero .ppt-headline, .ppt-hero .ppt-tagline, .ppt-hero .ppt-subtitle,
  .ppt-hero #qs-form, .ppt-hero .d-flex.gap-2 { animation: none; }
}

/* ── HERO SVG CARD HOVER ────────────────────────────────────── */
/* direction:ltr locks the SVG coordinate system regardless of page RTL */
.ppt-hero-svg-col svg { direction: ltr; unicode-bidi: embed; }
.ppt-svg-card { transition: transform .28s cubic-bezier(.34,1.56,.64,1); cursor: default; }
.ppt-svg-card:hover { transform: translateY(-9px); }
@media (prefers-reduced-motion: reduce) { .ppt-svg-card { transition: none; } }

/* ── FEATURES STRIP ─────────────────────────────────────────── */
.ppt-feat-cell { display: flex; border-inline-end: 1px solid #e9ecef; border-bottom: 1px solid #e9ecef; }
.ppt-feat-cell:nth-child(2n) { border-inline-end: none; }
@media (min-width: 992px) {
  .ppt-feat-cell { border-bottom: none; }
  .ppt-feat-cell:nth-child(2n) { border-inline-end: 1px solid #e9ecef; }
  .ppt-feat-cell:last-child { border-inline-end: none; }
}

/* ── SEARCH FORM ────────────────────────────────────────────── */
/* overflow:hidden on #qs-box clips children to container radius */
#qs-box { flex-wrap: nowrap !important; }
#qs-form .form-select { border-radius: 10px 0 0 10px; }
[dir="rtl"] #qs-form .form-select { border-radius: 0 10px 10px 0; }
#qs-btn {
  padding: .62rem 1.55rem;
  font-size: .97rem;
  font-weight: 700;
  letter-spacing: .02em;
  border-radius: 0 10px 10px 0;
  background: linear-gradient(140deg, #3b82f6 0%, #2563EB 50%, #1d4ed8 100%);
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(37,99,235,.42), inset 0 1px 0 rgba(255,255,255,.15);
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s ease;
  white-space: nowrap;
}
[dir="rtl"] #qs-btn { border-radius: 10px 0 0 10px; }
#qs-btn:hover {
  background: linear-gradient(140deg, #2563EB 0%, #1d4ed8 50%, #1e40af 100%);
  box-shadow: 0 0 0 4px rgba(37,99,235,.18), 0 8px 28px rgba(37,99,235,.55), inset 0 1px 0 rgba(255,255,255,.15);
  transform: translateY(-2px) scale(1.04);
  border-color: transparent;
}
#qs-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(37,99,235,.35), 0 4px 18px rgba(37,99,235,.42);
  outline: none;
}
#qs-btn:active {
  transform: translateY(0) scale(.97);
  box-shadow: 0 2px 8px rgba(37,99,235,.30);
  transition: transform .08s ease, box-shadow .08s ease;
}
@media (prefers-reduced-motion: reduce) {
  #qs-btn { transition: none; box-shadow: 0 4px 18px rgba(37,99,235,.42); }
}

/* Mobile: stack select on top, input+button below */
@media (max-width: 575.98px) {
  #qs-box { flex-wrap: wrap !important; row-gap: 1px; background: #e2e8f0; }
  #qs-form .form-select {
    width: 100% !important; max-width: none !important;
    border-inline-end: none !important; border-radius: 0 !important;
    flex-shrink: 0;
  }
  #qs-form .form-control { border-radius: 0 !important; flex: 1; }
  #qs-form #qs-btn { border-radius: 0 !important; }
}

/* ── HOW IT WORKS ───────────────────────────────────────────── */
.ppt-how { padding: 3.5rem 0; background: #fff; border-top: 1px solid #f1f5f9; border-bottom: 1px solid #f1f5f9; }
.ppt-step-card { border-radius: 12px; transition: transform .2s, box-shadow .2s; overflow: hidden; }
.ppt-step-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(37,99,235,.13) !important; }
.ppt-step-num   { width: 2.4rem; height: 2.4rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1rem; color: #fff; margin-bottom: 1.2rem; flex-shrink: 0; }
.ppt-step-title { font-size: 1rem; font-weight: 700; color: #1e293b; margin-bottom: .45rem; }
.ppt-step-desc  { font-size: .84rem; color: #475569; line-height: 1.65; margin: 0; }
.ppt-step-arrow { display: flex; align-items: center; justify-content: center; color: #cbd5e1; padding-top: .5rem; }
[dir="rtl"] .ppt-step-arrow { transform: scaleX(-1); }

/* ── DOCS STATS ─────────────────────────────────────────────── */
.ppt-docs { padding: 3rem 0; background: #f8fafc; }
.ppt-doc-num-lost  { font-size: 1.65rem; font-weight: 800; color: #2563EB; line-height: 1.1; }
.ppt-doc-num-found { font-size: 1.65rem; font-weight: 800; color: #16a34a; line-height: 1.1; }

/* ── TRUST ──────────────────────────────────────────────────── */
.ppt-trust { padding: 3rem 0; background: #fff; border-top: 1px solid #f1f5f9; }

/* ================================================================
   GLOBAL ANIMATION SYSTEM — Papiers.tn
   Easing: cubic-bezier(.22,1,.36,1) = natural Expo-Out deceleration
   ================================================================ */

/* ── 1. SCROLL REVEAL ───────────────────────────────────────── */
/* Initial state set only after JS adds html.ppt-animate —
   guarantees content stays visible if IntersectionObserver
   or JS is unavailable (accessibility + old browsers).          */
html.ppt-animate .ppt-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s cubic-bezier(.22,1,.36,1),
              transform .65s cubic-bezier(.22,1,.36,1);
  will-change: opacity, transform;
}
html.ppt-animate .ppt-reveal.is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}
/* Stagger delays — add data-d="1…5" to children */
.ppt-reveal[data-d="1"] { transition-delay: .06s; }
.ppt-reveal[data-d="2"] { transition-delay: .12s; }
.ppt-reveal[data-d="3"] { transition-delay: .18s; }
.ppt-reveal[data-d="4"] { transition-delay: .24s; }
.ppt-reveal[data-d="5"] { transition-delay: .30s; }

/* ── 2. HOVER CARDS — feature strip ────────────────────────── */
.ppt-feat-cell > div {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  border-radius: 10px;
  transition: transform .22s cubic-bezier(.22,1,.36,1), box-shadow .22s ease;
}
.ppt-feat-cell:hover > div {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(37,99,235,.09);
}

/* ── 3. HOVER CARDS — document stat cards ──────────────────── */
.ppt-docs .card {
  transition: transform .22s cubic-bezier(.22,1,.36,1),
              box-shadow .22s ease, border-color .22s ease;
}
.ppt-docs .card:hover {
  transform: translateY(-4px) scale(1.012);
  box-shadow: 0 14px 36px rgba(37,99,235,.13);
  border-color: rgba(37,99,235,.18);
}

/* ── 4. HOVER CARDS — trust badge cards ────────────────────── */
.ppt-trust .card:not(.bg-primary) {
  transition: transform .22s cubic-bezier(.22,1,.36,1),
              box-shadow .22s ease, border-color .22s ease;
}
.ppt-trust .card:not(.bg-primary):hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,.09);
  border-color: rgba(37,99,235,.14);
}

/* ── 5. ANIMATED COUNTERS ───────────────────────────────────── */
/* tabular-nums prevents layout shift during count-up           */
.ppt-counter { font-variant-numeric: tabular-nums; }

/* ── 6. FLOATING HERO ILLUSTRATION ─────────────────────────── */
@keyframes ppt-hero-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}
.ppt-hero-svg-col {
  animation: ppt-hero-float 5.5s cubic-bezier(.45,.05,.55,.95) infinite;
  will-change: transform;
}

/* ── 7. CTA BUTTON MICRO-INTERACTIONS ──────────────────────── */
.ppt-hero .btn-outline-danger,
.ppt-hero .btn-outline-success {
  transition: transform .22s cubic-bezier(.22,1,.36,1),
              box-shadow .22s ease, background-color .18s ease,
              color .18s ease, border-color .18s ease;
}
.ppt-hero .btn-outline-danger:hover  { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(220,38,38,.22); }
.ppt-hero .btn-outline-success:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(22,163,74,.22); }
.ppt-hero .btn-outline-danger:active,
.ppt-hero .btn-outline-success:active { transform: translateY(0) scale(.97); box-shadow: none; }

/* ── 8. NAVBAR GLASSMORPHISM (all pages) ────────────────────── */
/* Smooth glass effect applied when user scrolls past 24px.
   JS adds/removes .ppt-nav-scrolled via passive scroll listener. */
header.navbar {
  transition: background .28s ease, box-shadow .28s ease,
              border-color .28s ease, backdrop-filter .28s ease;
}
header.navbar.ppt-nav-scrolled {
  background: rgba(255, 255, 255, .82) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  backdrop-filter: blur(14px) saturate(1.5);
  box-shadow: 0 1px 0 rgba(0,0,0,.07), 0 4px 20px rgba(0,0,0,.06);
  border-bottom-color: rgba(0,0,0,.06) !important;
}

/* ── 9. PREFERS-REDUCED-MOTION ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html.ppt-animate .ppt-reveal { opacity: 1; transform: none; transition: none; }
  .ppt-hero-svg-col             { animation: none; }
  header.navbar                 { transition: none; }
  .ppt-feat-cell > div,
  .ppt-docs .card,
  .ppt-trust .card:not(.bg-primary),
  .ppt-hero .btn-outline-danger,
  .ppt-hero .btn-outline-success,
  .ppt-step-card                { transition: none; }
}

/* ================================================================
   MOBILE NAVIGATION SYSTEM
   Bottom nav · Bottom sheet · FAB
   Mobile-first — shown only below 768 px
   ================================================================ */

/* ── GLOBAL MOBILE LAYOUT IMPROVEMENTS ───────────────────────── */
@media (max-width: 767.98px) {
  /* Prevent accidental horizontal scroll */
  body { overflow-x: hidden; }

  /* Content clears fixed bottom nav */
  .page { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }

  /* Sections need more breathing room on mobile */
  .ppt-how, .ppt-docs, .ppt-trust { padding-top: 2.5rem; padding-bottom: 2.5rem; }

  /* Tighter hero on small screens */
  .ppt-hero { padding: 3.5rem 0 2.75rem; }

  /* Touch-friendly CTA buttons */
  .ppt-hero .btn-outline-danger,
  .ppt-hero .btn-outline-success { min-height: 48px; font-size: .95rem; }

  /* Step cards: no hover animation on touch devices */
  .ppt-step-card:hover { transform: none; box-shadow: none !important; }
}

/* ── BOTTOM NAVIGATION ────────────────────────────────────────── */
/* Hidden on desktop — JS/CSS only activates on mobile (<768px)   */
.ppt-bottom-nav { display: none; }

@media (max-width: 767.98px) {
  .ppt-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1035;
    height: 64px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(255, 255, 255, .90);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    backdrop-filter: blur(20px) saturate(1.8);
    border-top: 1px solid rgba(0,0,0,.07);
    box-shadow: 0 -2px 24px rgba(0,0,0,.09);
    align-items: stretch;
    /* Slide-down on scroll, slide-up on scroll-up */
    transition: transform .3s cubic-bezier(.22,1,.36,1);
    will-change: transform;
  }

  .ppt-bottom-nav.ppt-bn-hidden {
    transform: translateY(calc(100% + 2px));
  }

  /* Each nav item */
  .ppt-bn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 3px;
    padding: 6px 2px 4px;
    text-decoration: none;
    color: #94a3b8;
    font-size: .58rem;
    font-weight: 600;
    letter-spacing: .025em;
    text-transform: uppercase;
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
    transition: color .18s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    position: relative;
    min-width: 0;
  }

  .ppt-bn-item svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    transition: transform .2s cubic-bezier(.22,1,.36,1);
  }

  /* Active indicator dot above icon */
  .ppt-bn-item::before {
    content: '';
    position: absolute;
    top: 4px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #2563EB;
    opacity: 0;
    transform: scale(0);
    transition: opacity .18s ease, transform .22s cubic-bezier(.34,1.56,.64,1);
  }

  .ppt-bn-item.active { color: #2563EB; }

  .ppt-bn-item.active::before {
    opacity: 1;
    transform: scale(1);
  }

  .ppt-bn-item.active svg {
    transform: scale(1.1) translateY(-1px);
  }

  /* ── Déclarer — primary action pill ──────────────────────── */
  .ppt-bn-declare {
    flex: 0 0 70px;
    gap: 2px;
  }

  /* No dot indicator on declare (has its own pill) */
  .ppt-bn-declare::before { display: none; }

  .ppt-bn-declare-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 38px;
    border-radius: 14px;
    background: linear-gradient(140deg, #3b82f6 0%, #2563EB 55%, #1d4ed8 100%);
    box-shadow: 0 4px 14px rgba(37,99,235,.38);
    transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s ease;
    pointer-events: none; /* clicks go to parent button */
  }

  .ppt-bn-declare-pill svg {
    width: 20px;
    height: 20px;
    color: #fff;
    transition: none !important;
    transform: none !important;
  }

  .ppt-bn-declare .ppt-bn-label {
    font-size: .58rem;
    color: #2563EB;
    font-weight: 700;
  }

  .ppt-bn-declare:active .ppt-bn-declare-pill {
    transform: scale(.88);
    box-shadow: 0 2px 8px rgba(37,99,235,.22);
  }
}

/* ── DECLARE BOTTOM SHEET ─────────────────────────────────────── */
/* Slide-up modal with lost / found choice. Works on all screen    */
/* sizes but will be triggered only from mobile bottom nav / FAB.  */
.ppt-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.52);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  transition: opacity .28s ease, visibility .28s ease;
}

.ppt-sheet-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.ppt-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1055;
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 10px 20px 0;
  padding-bottom: max(28px, env(safe-area-inset-bottom, 28px));
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 -8px 40px rgba(0,0,0,.16);
  will-change: transform;
}

.ppt-sheet.is-open { transform: translateY(0); }

/* Drag handle */
.ppt-sheet-handle {
  width: 44px;
  height: 4px;
  border-radius: 2px;
  background: #e2e8f0;
  margin: 0 auto 22px;
}

.ppt-sheet-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  margin-bottom: 20px;
}

.ppt-sheet-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 20px;
  border-radius: 16px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
  border: 1.5px solid transparent;
  transition: transform .14s cubic-bezier(.22,1,.36,1);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.ppt-sheet-btn:active { transform: scale(.97); }
.ppt-sheet-btn svg { width: 24px; height: 24px; flex-shrink: 0; }

.ppt-sheet-btn-lost  { background: #fff1f2; color: #dc2626; border-color: #fecaca; }
.ppt-sheet-btn-found { background: #f0fdf4; color: #16a34a; border-color: #bbf7d0; }

.ppt-sheet-cancel {
  display: block;
  width: 100%;
  padding: 15px;
  margin-top: 4px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: .9rem;
  font-weight: 500;
  font-family: inherit;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* ── FAB — Floating Action Button ────────────────────────────── */
/* Hidden on desktop. On mobile: pill above the bottom nav.       */
/* Hides automatically when page hero is visible (no redundancy). */
.ppt-fab { display: none; }

@media (max-width: 767.98px) {
  .ppt-fab {
    display: flex;
    position: fixed;
    right: 16px;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    z-index: 1034;
    align-items: center;
    gap: 8px;
    padding: 12px 20px 12px 14px;
    background: linear-gradient(140deg, #3b82f6 0%, #2563EB 60%, #1d4ed8 100%);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-family: inherit;
    font-weight: 700;
    font-size: .88rem;
    letter-spacing: .01em;
    box-shadow: 0 4px 22px rgba(37,99,235,.42);
    cursor: pointer;
    transition: transform .2s cubic-bezier(.22,1,.36,1),
                box-shadow .2s ease, opacity .22s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    will-change: transform, opacity;
  }

  [dir="rtl"] .ppt-fab { right: auto; left: 16px; }

  .ppt-fab svg { width: 18px; height: 18px; flex-shrink: 0; }

  .ppt-fab:active {
    transform: scale(.92);
    box-shadow: 0 2px 12px rgba(37,99,235,.30);
    color: #fff;
  }

  /* Hidden state — used by JS when hero is visible or on scroll */
  .ppt-fab.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px) scale(.88);
  }
}

/* ── MOBILE REDUCED MOTION OVERRIDES ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .ppt-bottom-nav,
  .ppt-sheet,
  .ppt-sheet-overlay,
  .ppt-fab,
  .ppt-bn-item,
  .ppt-bn-declare-pill   { transition: none !important; animation: none !important; }
}

/* ================================================================
   GENERIC CARD HOVER LIFT — inner app + admin pages
   Applies to all .card inside .page-body (Tabler layout wrapper).
   Does NOT affect home-page custom sections (ppt-hero, ppt-docs, etc.)
   which use their own specific hover rules above.
   ================================================================ */
.page-body .card {
  transition: box-shadow .25s cubic-bezier(.22,1,.36,1),
              transform .25s cubic-bezier(.22,1,.36,1);
}
.page-body .card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.09);
  transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
  .page-body .card { transition: none; }
  .page-body .card:hover { transform: none; box-shadow: none; }
}

/* ================================================================
   FOCUS STATES — keyboard + screen-reader visibility
   ================================================================ */
/* Search form inputs */
#qs-form .form-select:focus,
#qs-form .form-control:focus {
  outline: 3px solid rgba(37,99,235,.45);
  outline-offset: 0;
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
/* Any interactive element keyboard-focused (except #qs-btn which has its own) */
a:focus-visible,
button:focus-visible:not(#qs-btn),
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(37,99,235,.5);
  outline-offset: 2px;
  border-radius: 4px;
}
/* Tabler .btn override — Bootstrap removes outline, add it back */
.btn:focus-visible {
  outline: 3px solid rgba(37,99,235,.5);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(37,99,235,.15);
}

/* ================================================================
   LOST / FOUND COLOR CODING — consistent red/green everywhere
   ================================================================ */
/* highlighted keyword inside trust card */
.ppt-mark {
  background: rgba(255,255,255,.22);
  color: #fff;
  font-weight: 700;
  font-style: normal;
  padding: .05em .35em;
  border-radius: 4px;
}

/* trust section — pill badges */
.ppt-trust-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: .78rem;
  font-weight: 500;
  padding: .3em .75em;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.25);
  white-space: nowrap;
}

.ppt-doc-lost  { color: #dc2626 !important; font-weight: 600; }
.ppt-doc-found { color: #16a34a !important; font-weight: 600; }
/* Ensure color holds in RTL without layout changes */
[dir="rtl"] .ppt-doc-lost,
[dir="rtl"] .ppt-doc-found { font-weight: 600; }
