/* Custom layer on top of the Tailwind CDN build.
   Keeps the academic/navy identity consistent across public and admin pages. */

:root {
  --navy: #1e3a8a;
  --navy-soft: #2f4bb0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.font-display {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
}

[x-cloak] {
  display: none !important;
}

::selection {
  background: var(--navy);
  color: #ffffff;
}

.brand-gradient {
  background-image: linear-gradient(135deg, #13265f 0%, #1e3a8a 55%, #2f4bb0 100%);
}

.brand-pattern {
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.16) 1px, transparent 0);
  background-size: 26px 26px;
}

.soft-shadow {
  box-shadow: 0 18px 45px -25px rgba(15, 23, 42, 0.35);
}

/* Article typography */
.rich-text {
  color: #334155;
  font-size: 1.0625rem;
  line-height: 1.9;
}

.rich-text > * + * {
  margin-top: 1.15rem;
}

.rich-text h2 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
  margin-top: 2.2rem;
}

.rich-text h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #0f172a;
  margin-top: 1.8rem;
}

.rich-text a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rich-text ul,
.rich-text ol {
  padding-left: 1.4rem;
}

.rich-text ul {
  list-style: disc;
}

.rich-text ol {
  list-style: decimal;
}

.rich-text li + li {
  margin-top: 0.35rem;
}

.rich-text blockquote {
  border-left: 4px solid #c7d2fe;
  background: #eef2ff;
  border-radius: 0 0.75rem 0.75rem 0;
  padding: 1rem 1.25rem;
  font-style: italic;
  color: #1e293b;
}

.rich-text img {
  border-radius: 1rem;
  margin: 1.75rem auto;
}

.rich-text strong {
  color: #0f172a;
}

/* Line clamping */
.clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Quill rich text editor */
.ql-toolbar.ql-snow {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem 0.75rem 0 0;
  background: #f8fafc;
}

.ql-container.ql-snow {
  border: 1px solid #e2e8f0;
  border-top: 0;
  border-radius: 0 0 0.75rem 0.75rem;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
}

.ql-editor {
  min-height: 320px;
  line-height: 1.8;
  color: #334155;
}

.ql-editor.ql-blank::before {
  color: #94a3b8;
  font-style: normal;
}

/* Scrollbars */
.thin-scroll::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

.thin-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

.thin-scroll::-webkit-scrollbar-track {
  background: transparent;
}

/* Data tables */
.data-table th {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  background: #f8fafc;
  padding: 0.85rem 1.25rem;
  text-align: left;
  white-space: nowrap;
}

.data-table td {
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: #334155;
  vertical-align: middle;
}

.data-table tbody tr + tr {
  border-top: 1px solid #f1f5f9;
}

.data-table tbody tr:hover {
  background: #f8fafc;
}

/* Embedded map */
.map-frame {
  border: 0;
  width: 100%;
  filter: grayscale(0.15);
}

/* Entrance animation */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.animate-rise {
  animation: rise 0.55s ease-out both;
}

.animate-rise-delay-1 {
  animation-delay: 0.08s;
}

.animate-rise-delay-2 {
  animation-delay: 0.16s;
}

.animate-rise-delay-3 {
  animation-delay: 0.24s;
}

@media print {
  .no-print {
    display: none !important;
  }
}
