:root {
  --honey-50: #fff8e8;
  --honey-100: #f8e7b0;
  --honey-200: #f0c968;
  --honey-300: #d89c2b;
  --honey-400: #8e5b10;
  --leaf-700: #314126;
  --leaf-800: #24321d;
  --ink-700: #403625;
  --paper: #fffdf7;
  --card-shadow: 0 24px 60px rgba(93, 63, 8, 0.12);
  --soft-shadow: 0 12px 32px rgba(42, 29, 4, 0.08);
  --bs-primary: #d89c2b;
  --bs-primary-rgb: 216, 156, 43;
  --bs-link-color: #8e5b10;
  --bs-link-hover-color: #6f480c;
  --bs-body-bg: #f8f2de;
  --bs-body-color: #403625;
  --bs-border-color: rgba(104, 76, 20, 0.12);
}

html {
  font-size: 15px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--bs-body-color);
  background:
    radial-gradient(circle at top left, rgba(255, 225, 138, 0.55), transparent 28%),
    radial-gradient(circle at top right, rgba(223, 183, 80, 0.25), transparent 24%),
    linear-gradient(180deg, #f7edd0 0%, #f8f2de 46%, #fffdf7 100%);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(30deg, rgba(158, 112, 20, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(158, 112, 20, 0.05) 87.5%, rgba(158, 112, 20, 0.05)),
    linear-gradient(150deg, rgba(158, 112, 20, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(158, 112, 20, 0.05) 87.5%, rgba(158, 112, 20, 0.05)),
    linear-gradient(90deg, rgba(158, 112, 20, 0.05) 2%, transparent 2.5%, transparent 97%, rgba(158, 112, 20, 0.05) 97.5%, rgba(158, 112, 20, 0.05));
  background-size: 88px 154px;
  background-position: 0 0, 0 0, 44px 77px;
  content: "";
  pointer-events: none;
  opacity: 0.4;
}

h1, h2, h3, h4, h5, .navbar-brand, .brand-title {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.02em;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-nav {
  background: rgba(36, 50, 29, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 22px rgba(28, 25, 15, 0.16);
}

.brand-logo {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(255, 246, 221, 0.36);
  box-shadow: 0 8px 18px rgba(24, 20, 9, 0.2);
  background: rgba(255, 253, 247, 0.95);
}

.brand-title {
  color: #fff6dd;
  font-size: 1.15rem;
}

.brand-subtitle {
  color: rgba(255, 246, 221, 0.72);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-nav .nav-link {
  color: rgba(255, 248, 232, 0.82);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus,
.site-nav .nav-link.active {
  color: #2d2009;
  background-color: rgba(255, 218, 121, 0.78);
}

.auth-links .nav-link {
  color: rgba(255, 248, 232, 0.9);
}

.btn-honey,
.btn-honey-outline {
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  font-weight: 600;
}

.btn-honey {
  color: #2d2009;
  background: linear-gradient(135deg, #efc85d, #d89c2b);
  border: 1px solid rgba(122, 78, 13, 0.35);
  box-shadow: 0 10px 20px rgba(145, 96, 15, 0.18);
}

.btn-honey:hover,
.btn-honey:focus {
  color: #2d2009;
  background: linear-gradient(135deg, #e3b94a, #c98b1f);
}

.btn-honey-outline {
  color: var(--honey-400);
  background: rgba(255, 251, 239, 0.72);
  border: 1px solid rgba(142, 91, 16, 0.24);
}

.btn-honey-outline:hover,
.btn-honey-outline:focus {
  color: #6d4308;
  background: rgba(255, 244, 213, 0.95);
  border-color: rgba(142, 91, 16, 0.32);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  border: 1px solid rgba(119, 89, 24, 0.08);
  border-radius: 2rem;
  background: linear-gradient(135deg, rgba(255, 251, 238, 0.9), rgba(244, 224, 164, 0.48));
  box-shadow: var(--card-shadow);
}

.hero-panel::after {
  position: absolute;
  right: -3rem;
  top: -3rem;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 163, 55, 0.28), transparent 68%);
  content: "";
}

.section-kicker {
  display: inline-block;
  color: var(--leaf-700);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-aside,
.beekeeper-card,
.beekeeper-empty {
  background: rgba(255, 253, 247, 0.88);
  box-shadow: var(--soft-shadow);
  border-radius: 1.5rem;
}

.association-banner {
  border-radius: 1.5rem;
  box-shadow: var(--soft-shadow);
  background: rgba(255, 253, 247, 0.9);
}

.association-banner-image {
  display: block;
  width: 100%;
  height: auto;
}

.association-logo-panel {
  background: linear-gradient(135deg, rgba(248, 231, 176, 0.55), rgba(255, 251, 238, 0.9));
}

.association-logo-feature {
  width: min(9rem, 100%);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(41, 31, 7, 0.14));
}

.association-page-logo {
  width: min(8rem, 100%);
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 253, 247, 0.96);
  box-shadow: var(--soft-shadow);
  padding: 0.5rem;
}

.association-page-logo-sm {
  width: min(6.5rem, 100%);
}

.metric-stack {
  display: grid;
  gap: 1.5rem;
}

.metric-value {
  color: var(--leaf-800);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2vw, 2.1rem);
}

.metric-label,
.post-preview {
  color: rgba(64, 54, 37, 0.82);
}

.beekeeper-badge {
  background: rgba(49, 65, 38, 0.12);
  color: var(--leaf-800);
  border: 1px solid rgba(49, 65, 38, 0.12);
}

.letter-space {
  letter-spacing: 0.08em;
}

.content-header {
  padding-top: 0.5rem;
}

.home-grid {
  margin-top: 0.5rem;
}

.posts-rail {
  top: 1.5rem;
}

.posts-rail > section,
.posts-rail > article,
.posts-rail > div {
  width: 100%;
}

.beekeeper-table thead th {
  background: rgba(248, 231, 176, 0.42);
  color: var(--leaf-800);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom-width: 0;
}

.beekeeper-table tbody tr:last-child td {
  border-bottom-width: 0;
}

.beekeeper-input {
  border-radius: 1rem;
  border-color: rgba(128, 94, 25, 0.18);
  background: rgba(255, 255, 255, 0.7);
  padding: 0.95rem 1rem;
}

.beekeeper-input:focus,
.form-check-input:focus,
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus {
  border-color: rgba(216, 156, 43, 0.65);
  box-shadow: 0 0 0 0.25rem rgba(216, 156, 43, 0.18);
}

.form-check-input:checked {
  background-color: var(--honey-300);
  border-color: var(--honey-300);
}

.post-body {
  line-height: 1.9;
}

.post-editor-toolbar {
  border: 1px solid rgba(128, 94, 25, 0.18);
  border-bottom: 0;
  background: rgba(255, 251, 239, 0.88);
}

.post-content-editor {
  min-height: 17rem;
  border: 1px solid rgba(128, 94, 25, 0.18);
  border-top: 0;
  background: rgba(255, 255, 255, 0.78);
}

.post-content-editor .ql-editor {
  min-height: 17rem;
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
}

.post-body p {
  margin-bottom: 1rem;
}

.post-body p:last-child {
  margin-bottom: 0;
}

.post-body .ql-align-center {
  text-align: center;
}

.post-body .ql-align-right {
  text-align: right;
}

.post-body .ql-size-small {
  font-size: 0.78em;
}

.post-body .ql-size-large {
  font-size: 1.35em;
}

.post-body .ql-size-huge {
  font-size: 1.75em;
}

.post-card-image,
.post-detail-image,
.post-edit-image,
.event-card-image,
.event-detail-image {
  width: 100%;
  object-fit: cover;
  background: rgba(255, 253, 247, 0.9);
}

.image-choice-card {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.image-choice-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(42, 29, 4, 0.12);
}

.image-choice-preview,
.image-library-preview {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: rgba(255, 253, 247, 0.9);
}

.post-card-image {
  max-height: 14rem;
}

.post-detail-image {
  max-height: 28rem;
}

.post-edit-image {
  max-height: 14rem;
}

.event-card-image {
  max-height: 14rem;
}

.event-detail-image {
  max-height: 28rem;
}

.event-meta-row {
  display: grid;
  gap: 0.2rem;
  padding: 0.7rem 0.9rem;
  border-radius: 0.85rem;
  background: rgba(248, 231, 176, 0.2);
}

.event-detail-meta {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  padding: 1rem;
  border: 1px solid rgba(142, 91, 16, 0.16);
  border-radius: 1rem;
  background: rgba(255, 251, 239, 0.72);
}

.event-widget-item {
  padding: 0.9rem;
  border: 1px solid rgba(142, 91, 16, 0.14);
  border-radius: 0.9rem;
  background: rgba(255, 251, 239, 0.55);
}

.interaction-strip {
  padding: 0.9rem;
  border: 1px solid rgba(142, 91, 16, 0.14);
  border-radius: 0.9rem;
  background: rgba(255, 251, 239, 0.42);
}

.comment-card {
  padding: 0.9rem;
  border: 1px solid rgba(142, 91, 16, 0.14);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.72);
}

.comment-meta-line {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.comment-edited-badge {
  display: inline-block;
  padding: 0.08rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(142, 91, 16, 0.24);
  background: rgba(248, 231, 176, 0.36);
  color: var(--leaf-800);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.reply-thread > summary {
  cursor: pointer;
  color: var(--honey-400);
  font-weight: 600;
}

.reply-thread > summary:hover,
.reply-thread > summary:focus {
  color: #6d4308;
}

.comment-reply {
  border-left: 4px solid rgba(216, 156, 43, 0.55);
  background: rgba(255, 251, 239, 0.7);
}

.validation-summary-errors ul {
  margin: 0;
  padding-left: 1.1rem;
}

.footer-section {
  color: rgba(64, 54, 37, 0.8);
}

.footer-section a {
  color: var(--honey-400);
}

@media (max-width: 767.98px) {
  .hero-panel {
    padding: 1.5rem;
  }

  .brand-subtitle {
    display: none;
  }

  .association-page-logo {
    width: 5.5rem;
  }
}