:root {
  --brand-navy: #17324d;
  --brand-slate: #2a4965;
  --brand-accent: #bf6a2b;
  --brand-cream: #f6f4ef;
  --brand-light: #e7eef4;
  --brand-text: #17212b;
}

body {
  font-family: "Segoe UI", "Noto Sans", sans-serif;
  color: var(--brand-text);
  background: linear-gradient(145deg, #f8fafc 0%, #f4f7fb 50%, #f9f7f2 100%);
  min-height: 100vh;
}

.hero {
  background: linear-gradient(rgba(23, 50, 77, 0.74), rgba(23, 50, 77, 0.74)), url("../../img/bg.jpeg") center/cover no-repeat;
  color: #fff;
  border-radius: 1rem;
}

.hero-square {
  background: linear-gradient(rgba(23, 50, 77, 0.7), rgba(23, 50, 77, 0.7)), url("../../img/bg-square.jpeg") center/cover no-repeat;
  color: #fff;
  border-radius: 1rem;
}

.navbar-brand img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
}

.section-title {
  border-left: 4px solid var(--brand-accent);
  padding-left: 0.75rem;
  margin-bottom: 1rem;
}

.card-soft {
  border: 0;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 10px 25px rgba(20, 34, 56, 0.07);
}

/* Editor and content image sizing */
#contentEditor img,
.ql-editor img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 0.25rem;
}

/* Editor typography to match site scale */
#contentEditor .ql-editor,
.ql-editor {
  font-size: 1.125rem;
  line-height: 1.7;
  font-family: "Segoe UI", "Noto Sans", sans-serif;
  color: var(--brand-text);
}

#contentEditor .ql-editor h1,
.ql-editor h1 {
  font-size: 2.375rem;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

#contentEditor .ql-editor h2,
.ql-editor h2 {
  font-size: 1.875rem;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

#contentEditor .ql-editor h3,
.ql-editor h3 {
  font-size: 1.5rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.module-chip {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  color: #fff;
  background: var(--brand-slate);
  margin-right: 0.25rem;
  margin-bottom: 0.25rem;
}

.journal-id-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.72rem;
  background: #edf1f5;
  color: #596776;
  letter-spacing: 0.02em;
  border: 1px solid #d5dde6;
}

.journal-written-on {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-navy);
}

.journal-entry-ref {
  margin-left: 0.4rem;
  color: #6c7a89;
  font-size: 0.8rem;
}

footer {
  border-top: 1px solid #d8e1ea;
  color: #5f6d7a;
}

.page-header {
  background: var(--brand-light);
  border-radius: 1rem;
}

.timeline-item {
  border-left: 3px solid var(--brand-accent);
  padding-left: 1rem;
  margin-bottom: 1rem;
}

.login-panel {
  max-width: 420px;
}

.admin-shell {
  background-color: #f6f8fb;
  border-radius: 0.8rem;
}

.table thead {
  background-color: #e8eef5;
}

.hidden {
  display: none !important;
}

@media (max-width: 768px) {
  .hero {
    padding: 2rem !important;
  }

  .hero-square {
    padding: 1.75rem !important;
  }
}
