/**
 * Charte graphique SLH — flyer « Programme 2026 » (Sports et Loisirs d’Hargeville).
 * Couleurs : crème, prune, corail, turquoise, or.
 */
:root {
  --slh-cream: #fdf5e6;
  --slh-cream-dark: #f3e4d4;
  --slh-coral: #d15143;
  --slh-plum: #523058;
  --slh-teal: #0097a7;
  --slh-gold: #e9a139;
  --slh-white: #ffffff;
  --slh-text: #3a2a3f;
  --slh-muted: #6b5a6e;
  --slh-radius: 18px;
  --slh-shadow: 0 14px 40px rgba(82, 48, 88, 0.14);
  --slh-font: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --slh-display: system-ui, "Segoe UI", sans-serif;
  /* Alias (compatibilité avec l’existant) */
  --slh-navy: var(--slh-plum);
  --slh-blue: var(--slh-teal);
  --slh-sky: rgba(0, 151, 167, 0.14);
  --slh-green: var(--slh-teal);
  --slh-green-soft: rgba(0, 151, 167, 0.18);
  --slh-accent: var(--slh-gold);
  --slh-accent-soft: rgba(233, 161, 57, 0.25);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--slh-font);
  color: var(--slh-text);
  background-color: var(--slh-cream);
  background-image:
    radial-gradient(circle at 8% 12%, rgba(209, 81, 67, 0.09) 0%, transparent 42%),
    radial-gradient(circle at 92% 8%, rgba(0, 151, 167, 0.11) 0%, transparent 40%),
    radial-gradient(circle at 78% 88%, rgba(233, 161, 57, 0.12) 0%, transparent 48%),
    repeating-linear-gradient(
      -4deg,
      transparent,
      transparent 22px,
      rgba(82, 48, 88, 0.04) 22px,
      rgba(82, 48, 88, 0.04) 23px
    );
  min-height: 100vh;
  line-height: 1.55;
}

a {
  color: var(--slh-teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--slh-plum);
}

.wrap {
  width: min(1100px, 92vw);
  margin-inline: auto;
}

/* Petites étoiles décoratives (esprit flyer) */
.da-stars {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}

.da-stars span {
  position: absolute;
  font-size: 0.65rem;
  opacity: 0.55;
}

.da-stars span:nth-child(1) {
  top: 12%;
  left: 8%;
  color: var(--slh-gold);
}

.da-stars span:nth-child(2) {
  top: 22%;
  right: 14%;
  color: var(--slh-teal);
}

.da-stars span:nth-child(3) {
  bottom: 18%;
  left: 18%;
  color: var(--slh-white);
}

.da-stars span:nth-child(4) {
  bottom: 28%;
  right: 10%;
  color: var(--slh-gold);
}

/* Header */
.site-header {
  background: rgba(253, 245, 230, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 2px dashed rgba(82, 48, 88, 0.18);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 6px 28px rgba(82, 48, 88, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  font-family: var(--slh-display);
  font-weight: 700;
  font-size: 1.5rem;
  background: linear-gradient(145deg, var(--slh-plum), #6b3d72);
  color: var(--slh-white);
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 20px rgba(82, 48, 88, 0.25);
  position: relative;
  display: inline-block;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 16px;
  background: conic-gradient(
    from 45deg,
    var(--slh-coral),
    var(--slh-gold),
    var(--slh-teal),
    var(--slh-plum),
    var(--slh-coral)
  );
  z-index: -1;
  opacity: 0.35;
  filter: blur(6px);
}

.brand-mark img { 
  height: 100%; 
  border-radius: 14px;
}

.brand-stack {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-ribbon {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slh-white);
  background: linear-gradient(90deg, var(--slh-gold), #f0b85c);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  width: fit-content;
  box-shadow: 0 2px 8px rgba(233, 161, 57, 0.35);
}

.brand-title {
  font-family: var(--slh-display);
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--slh-plum);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slh-plum);
  opacity: 0.85;
}

.brand-text {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.25;
}

.brand-text small {
  font-weight: 500;
  color: var(--slh-muted);
  font-size: 0.82rem;
}

.nav-main {
  display: flex;
  gap: 0.35rem 1rem;
  flex-wrap: wrap;
}

.nav-main a {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--slh-plum);
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.nav-main a:hover,
.nav-main a.is-active {
  background: rgba(233, 161, 57, 0.22);
  border-color: rgba(82, 48, 88, 0.12);
  color: var(--slh-plum);
}

.main-content {
  padding: 2rem 0 3.5rem;
}

/* Hero — prochain événement */
.hero-event {
  margin-bottom: 2.5rem;
}

.hero-card {
  background: linear-gradient(148deg, var(--slh-plum) 0%, #6e3f75 42%, var(--slh-coral) 100%);
  color: var(--slh-white);
  border-radius: var(--slh-radius);
  padding: 2rem 2rem 2.35rem;
  box-shadow: var(--slh-shadow);
  position: relative;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.hero-card::before {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  background: var(--slh-teal);
  opacity: 0.2;
  border-radius: 50%;
  top: -40px;
  right: 10%;
}

.hero-card::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  background: var(--slh-gold);
  opacity: 0.18;
  border-radius: 50%;
  bottom: -30px;
  left: 5%;
}

.hero-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--slh-gold), #f4c06a);
  color: var(--slh-plum);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.hero-card h1 {
  font-family: var(--slh-display);
  font-size: clamp(1.45rem, 4vw, 2.05rem);
  margin: 0 0 0.75rem;
  line-height: 1.15;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.12);
}

.hero-meta {
  font-size: 0.95rem;
  opacity: 0.96;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.hero-meta strong {
  font-weight: 700;
}

.hero-desc {
  opacity: 0.94;
  max-width: 65ch;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.hero-actions {
  position: relative;
  z-index: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:focus-visible {
  outline: 3px solid var(--slh-gold);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--slh-white);
  color: var(--slh-plum);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--slh-white);
  border: 2px solid rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero-empty {
  background: var(--slh-white);
  border-radius: var(--slh-radius);
  padding: 2rem;
  text-align: center;
  color: var(--slh-muted);
  border: 2px dashed rgba(82, 48, 88, 0.25);
  box-shadow: 0 8px 28px rgba(82, 48, 88, 0.06);
}

/* Sections */
.section-title {
  font-family: var(--slh-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--slh-plum);
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.section-title::before {
  content: "";
  width: 5px;
  height: 1.2em;
  background: linear-gradient(
    180deg,
    var(--slh-coral),
    var(--slh-gold),
    var(--slh-teal)
  );
  border-radius: 6px;
}

.grid-two {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .grid-two {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* Cartes événements — palette flyer */
.event-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Événements passés (filtre par année, côté client) */
.past-events-section {
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(82, 48, 88, 0.12);
}

.past-events-title {
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
}

.past-events-intro {
  margin: 0 0 1rem;
  max-width: 42rem;
}

.past-events-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-bottom: 1rem;
}

.past-events-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--slh-plum);
}

.past-events-select {
  font: inherit;
  color: var(--slh-text);
  background: var(--slh-white);
  border: 2px solid rgba(82, 48, 88, 0.14);
  border-radius: 12px;
  padding: 0.45rem 2rem 0.45rem 0.75rem;
  min-width: 6.5rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(82, 48, 88, 0.06);
}

.past-events-select:hover,
.past-events-select:focus {
  border-color: var(--slh-teal);
  outline: none;
}

.past-events-select:focus {
  box-shadow: 0 0 0 3px rgba(0, 151, 167, 0.25);
}

.past-events-empty {
  margin: 0 0 1rem;
  color: var(--slh-muted);
  font-size: 0.95rem;
}

/* Sans ceci, display:grid / flex sur .event-card annule l’effet de l’attribut hidden */
.past-events-list .past-event-card[hidden] {
  display: none !important;
}

.event-card {
  background: var(--slh-white);
  border-radius: var(--slh-radius);
  padding: 1.15rem 1.3rem;
  box-shadow: 0 6px 22px rgba(82, 48, 88, 0.08);
  border: 2px solid rgba(82, 48, 88, 0.06);
  display: grid;
  gap: 0.35rem;
  border-left: 6px solid var(--slh-coral);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(82, 48, 88, 0.12);
}

.event-card--p1 {
  border-left-color: var(--slh-coral);
}

.event-card--p2 {
  border-left-color: var(--slh-plum);
}

.event-card--p3 {
  border-left-color: var(--slh-teal);
}

.event-card--p4 {
  border-left-color: var(--slh-gold);
}

.event-card--highlight {
  border: none;
  border-left: none;
  background: linear-gradient(135deg, var(--slh-coral) 0%, #b83d32 100%);
  color: var(--slh-white);
  box-shadow: 0 12px 36px rgba(209, 81, 67, 0.38);
}

.event-card--highlight .event-date {
  color: rgba(255, 255, 255, 0.95);
}

.event-card--highlight .event-loc {
  color: rgba(255, 255, 255, 0.88);
}

.event-card--highlight h3 a {
  color: var(--slh-white);
}

.event-card--highlight h3 a:hover {
  text-decoration: underline;
}

.event-date {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--slh-teal);
}

.event-card--p1 .event-date {
  color: var(--slh-coral);
}

.event-card--p2 .event-date {
  color: var(--slh-plum);
}

.event-card--p3 .event-date {
  color: var(--slh-teal);
}

.event-card--p4 .event-date {
  color: #c48a1a;
}

.event-card h3 {
  font-family: var(--slh-display);
  font-size: 1.12rem;
  margin: 0;
  line-height: 1.3;
}

.event-card h3 a {
  color: inherit;
  text-decoration: none;
}

.event-card h3 a:hover {
  color: var(--slh-teal);
}

.event-card--highlight h3 a:hover {
  color: var(--slh-white);
}

.event-loc {
  font-size: 0.9rem;
  color: var(--slh-muted);
}

.event-card--has-thumb {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

.event-card__thumb-wrap {
  margin: 0;
  line-height: 0;
  flex: 0 0 7rem;
  width: 7rem;
  max-width: 34%;
  align-self: stretch;
  background: rgba(82, 48, 88, 0.04);
  border-left: 1px solid rgba(82, 48, 88, 0.1);
}

.event-card__thumb-wrap a {
  display: block;
  outline: none;
  height: 100%;
  min-height: 5.5rem;
}

.event-card__thumb-wrap img {
  width: 100%;
  height: 100%;
  min-height: 5.5rem;
  object-fit: cover;
  display: block;
}

.event-card--has-thumb .event-card__body {
  padding: 1.15rem 1rem 1.15rem 1.3rem;
  display: grid;
  gap: 0.35rem;
  flex: 1;
  min-width: 0;
  border-left: 6px solid var(--slh-coral);
}

.event-card--has-thumb.event-card--p1 .event-card__body {
  border-left-color: var(--slh-coral);
}

.event-card--has-thumb.event-card--p2 .event-card__body {
  border-left-color: var(--slh-plum);
}

.event-card--has-thumb.event-card--p3 .event-card__body {
  border-left-color: var(--slh-teal);
}

.event-card--has-thumb.event-card--p4 .event-card__body {
  border-left-color: var(--slh-gold);
}

.event-card--highlight.event-card--has-thumb {
  background: var(--slh-white);
  border: 2px solid rgba(82, 48, 88, 0.06);
  box-shadow: 0 6px 22px rgba(82, 48, 88, 0.08);
}

.event-card--highlight.event-card--has-thumb .event-card__thumb-wrap {
  background: var(--slh-white);
  border-left: 1px solid rgba(82, 48, 88, 0.12);
}

.event-card--highlight.event-card--has-thumb .event-card__body {
  background: linear-gradient(135deg, var(--slh-coral) 0%, #b83d32 100%);
  color: var(--slh-white);
  box-shadow: none;
  border: none;
}

.event-card--highlight.event-card--has-thumb .event-card__body .event-date {
  color: rgba(255, 255, 255, 0.95);
}

.event-card--highlight.event-card--has-thumb .event-card__body .event-loc {
  color: rgba(255, 255, 255, 0.88);
}

.event-card--highlight.event-card--has-thumb .event-card__body h3 a {
  color: var(--slh-white);
}

.event-card--highlight.event-card--has-thumb .event-card__body h3 a:hover {
  color: var(--slh-white);
  text-decoration: underline;
}

/* News */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-card {
  background: var(--slh-white);
  border-radius: var(--slh-radius);
  padding: 1.15rem 1.3rem;
  box-shadow: 0 6px 22px rgba(82, 48, 88, 0.07);
  border: 2px solid rgba(233, 161, 57, 0.25);
}

.news-date {
  font-size: 0.85rem;
  color: var(--slh-muted);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.news-card h3 {
  font-family: var(--slh-display);
  font-size: 1.06rem;
  margin: 0 0 0.5rem;
}

.news-card h3 a {
  color: var(--slh-plum);
  text-decoration: none;
}

.news-card h3 a:hover {
  color: var(--slh-coral);
}

.news-excerpt {
  font-size: 0.95rem;
  color: var(--slh-muted);
  margin: 0;
}

/* Article */
.article-page {
  background: var(--slh-white);
  border-radius: var(--slh-radius);
  padding: 2rem 2.25rem;
  box-shadow: var(--slh-shadow);
  max-width: 760px;
  margin-inline: auto;
  border: 2px solid rgba(82, 48, 88, 0.06);
}

.article-page h1 {
  font-family: var(--slh-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.75rem;
  color: var(--slh-plum);
}

.article-body {
  font-size: 1.02rem;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.event-detail-figure {
  margin: 0 0 1.25rem;
}

.event-detail-figure img {
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(82, 48, 88, 0.08);
}

/* Lien pièce jointe événement (lisible sur fond blanc — ne pas utiliser .btn-ghost ici) */
.event-document-cta {
  margin-top: 1.25rem;
}

.btn-event-document {
  background: var(--slh-white);
  color: var(--slh-plum);
  border: 2px solid rgba(82, 48, 88, 0.38);
  box-shadow: 0 2px 10px rgba(82, 48, 88, 0.1);
}

.btn-event-document:hover {
  background: rgba(82, 48, 88, 0.07);
  border-color: rgba(82, 48, 88, 0.55);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(82, 48, 88, 0.14);
}

.event-document-link {
  gap: 0.55rem;
}

.event-doc-icon {
  display: block;
}

.event-doc-icon-wrap {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.event-doc-icon-wrap--pdf {
  color: #c62828;
}

.event-doc-icon-wrap--doc,
.event-doc-icon-wrap--docx {
  color: #185abd;
}

.event-doc-icon-wrap--odt {
  color: #0d6e3f;
}

.event-doc-type {
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.article-body h2,
.article-body h3 {
  font-family: var(--slh-display);
  color: var(--slh-plum);
  margin-top: 1.5rem;
}

.article-body p {
  margin: 0 0 1rem;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.slh-prose a {
  color: var(--slh-teal);
}

.back-link {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

/* Bloc flyer / programme sur l’accueil */
.da-flyer-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px dashed rgba(82, 48, 88, 0.15);
}

.da-flyer-intro {
  color: var(--slh-muted);
  margin: -0.5rem 0 1.25rem;
  max-width: 50ch;
}

.da-flyer-figure {
  margin: 0;
  text-align: center;
}

.da-flyer-figure img {
  max-width: min(520px, 100%);
  height: auto;
  border-radius: 14px;
  box-shadow: var(--slh-shadow);
  border: 3px solid rgba(255, 255, 255, 0.8);
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, var(--slh-plum) 0%, #3d2244 100%);
  color: rgba(255, 255, 255, 0.9);
  padding: 2rem 0;
  margin-top: auto;
  border-top: 4px solid var(--slh-gold);
}

.footer-inner p {
  margin: 0.25rem 0;
}

.footer-note {
  font-size: 0.9rem;
  opacity: 0.78;
}

.footer-flyer-hint {
  font-size: 0.82rem;
  opacity: 0.65;
  font-style: italic;
  max-width: 42rem;
  margin-top: 0.75rem;
}

/* Admin */
.admin-body {
  background: var(--slh-cream-dark);
}

.admin-wrap {
  width: min(1000px, 94vw);
  margin-inline: auto;
  padding: 1.5rem 0 3rem;
}

.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-card {
  background: var(--slh-white);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 6px 26px rgba(82, 48, 88, 0.09);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(82, 48, 88, 0.06);
}

.admin-card h2 {
  margin-top: 0;
  font-family: var(--slh-display);
  font-size: 1.2rem;
  color: var(--slh-plum);
}

table.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid #ebe4dc;
}

.admin-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--slh-muted);
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.badge-draft {
  background: #fff4e0;
  color: #8a5a00;
}

.badge-published {
  background: var(--slh-green-soft);
  color: #006a76;
}

.badge-archived {
  background: #ece8ee;
  color: #5c6778;
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--slh-plum);
}

.form-row input[type="text"],
.form-row input[type="password"],
.form-row input[type="datetime-local"],
.form-row input[type="date"],
.form-row input[type="time"],
.form-row textarea,
.form-row select {
  width: 100%;
  max-width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid #d4c8c0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--slh-white);
}

.form-row textarea {
  min-height: 100px;
  resize: vertical;
}

.form-row--datetime-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: end;
}

@media (max-width: 520px) {
  .form-row--datetime-split {
    grid-template-columns: 1fr;
  }
}

#editor {
  min-height: 280px;
  background: var(--slh-white);
}

.ql-toolbar.ql-snow {
  border-radius: 10px 10px 0 0;
}

.ql-container.ql-snow {
  border-radius: 0 0 10px 10px;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.btn-admin {
  background: linear-gradient(135deg, var(--slh-plum), #6b3d72);
  color: var(--slh-white);
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 16px rgba(82, 48, 88, 0.22);
}

.btn-admin:hover {
  filter: brightness(1.07);
}

.btn-admin-secondary {
  background: var(--slh-cream-dark);
  color: var(--slh-plum);
  box-shadow: none;
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.alert-error {
  background: #fdeaea;
  color: #8f1c1c;
}

.alert-success {
  background: rgba(0, 151, 167, 0.14);
  color: #005f6b;
}

.alert-warning {
  background: rgba(233, 161, 57, 0.22);
  color: #5c3d06;
  border: 1px solid rgba(196, 138, 26, 0.35);
}

.login-box {
  max-width: 400px;
  margin: 4rem auto;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat {
  background: var(--slh-white);
  padding: 1rem 1.25rem;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(82, 48, 88, 0.07);
  border: 1px solid rgba(82, 48, 88, 0.05);
}

.stat strong {
  display: block;
  font-size: 1.75rem;
  font-family: var(--slh-display);
  color: var(--slh-coral);
}

.stat span {
  font-size: 0.85rem;
  color: var(--slh-muted);
}
