/* UNO Connect — custom styles on top of Tailwind */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.big-font { font-size: 19px; }
body { font-feature-settings: "kern"; }
[x-cloak] { display: none !important; }

.glass {
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
}
.dark .glass {
  background: rgba(15, 23, 42, .66);
  border-color: rgba(148, 163, 184, .16);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
}
.card {
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid rgb(226 232 240);
  box-shadow: 0 6px 24px -14px rgba(15, 23, 42, .25);
}
.dark .card { background: rgb(15 23 42); border-color: rgb(30 41 59); }

.hero-bg {
  background:
    radial-gradient(1200px 500px at 10% -10%, rgb(var(--c-primary) / .55), transparent 60%),
    radial-gradient(900px 400px at 110% 10%, rgb(var(--c-secondary) / .35), transparent 60%),
    linear-gradient(135deg, rgb(var(--c-primary)), rgb(var(--c-primary) / .78));
}
.hero-img { background-size: cover; background-position: center; }
.hero-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgb(var(--c-primary) / .92), rgb(var(--c-primary) / .65)); }

.input {
  width: 100%;
  border-radius: .9rem;
  border: 1.5px solid rgb(203 213 225);
  background: #fff;
  padding: .8rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: rgb(var(--c-primary)); box-shadow: 0 0 0 4px rgb(var(--c-primary) / .15); }
.dark .input { background: rgb(2 6 23); border-color: rgb(51 65 85); color: rgb(226 232 240); }
.label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .95rem; }

:where(.btn) { display: inline-flex; } /* zero specificity so `hidden`, `sm:inline-flex`, `xl:hidden` utilities win */
.btn {
  align-items: center; justify-content: center; gap: .5rem;
  border-radius: .9rem; padding: .8rem 1.4rem; font-weight: 600; min-height: 48px;
  transition: transform .12s ease, box-shadow .15s ease, background-color .15s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: rgb(var(--c-primary)); color: #fff; box-shadow: 0 8px 20px -8px rgb(var(--c-primary) / .7); }
.btn-primary:hover { background: rgb(var(--c-primary) / .9); }
.btn-secondary { background: rgb(var(--c-secondary)); color: #fff; }
.btn-light { background: rgb(241 245 249); color: rgb(15 23 42); }
.dark .btn-light { background: rgb(30 41 59); color: rgb(226 232 240); }
.btn-sm { padding: .45rem .9rem; min-height: 36px; font-size: .9rem; border-radius: .7rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.marquee { display: flex; gap: 3rem; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee { animation: none; } * { transition: none !important; } }

.js .fade-up { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .fade-up.in { opacity: 1; transform: none; }

.prose-body p { margin-bottom: .9rem; line-height: 1.85; }
.timeline-dot { width: 2.25rem; height: 2.25rem; border-radius: 9999px; display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* Admin */
.admin-table th { text-align: left; font-weight: 600; font-size: .85rem; color: rgb(100 116 139); padding: .7rem .8rem; white-space: nowrap; }
.admin-table td { padding: .7rem .8rem; border-top: 1px solid rgb(241 245 249); vertical-align: top; }
.dark .admin-table td { border-color: rgb(30 41 59); }
.sortable-ghost { opacity: .4; }

@media print {
  .no-print { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  .card, .glass { box-shadow: none !important; border: 1px solid #ccc !important; background: #fff !important; }
}
