/* ── Header: user dropdown and login button — loaded on all pages ── */

.dkf-user-menu {
  position: relative;
}

.dkf-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 9999px;
  padding: 5px 12px 5px 5px;
  cursor: pointer;
  color: white;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.2s;
}

.dkf-user-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dkf-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #00a265;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.dkf-chevron {
  transition: transform 0.2s;
  flex-shrink: 0;
}

.dkf-user-btn[aria-expanded="true"] .dkf-chevron {
  transform: rotate(180deg);
}

.dkf-user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  min-width: 210px;
  padding: 6px 0;
  z-index: 9999;
}

.dkf-user-dropdown[hidden] {
  display: none;
}

.dkf-user-dropdown-header {
  padding: 10px 16px 8px;
  font-weight: 700;
  font-size: 14px;
  color: #00583c;
  border-bottom: 1px solid #e8f0e6;
  margin-bottom: 4px;
}

.dkf-user-dropdown a {
  display: block;
  padding: 8px 16px;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.dkf-user-dropdown a:hover {
  background: #f0f7f4;
  color: #008254;
}

.dkf-login-btn {
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  background: #008254;
  padding: 10px 24px;
  font-weight: 600;
  font-size: 14px;
  color: white;
  text-decoration: none;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.dkf-login-btn:hover {
  background: #00a265;
  color: white;
}

/* Mobile user section */
.dkf-user-mobile {
  list-style: none;
  border-top: 1px solid #d4e1d1;
  margin-top: 12px;
  padding-top: 12px;
}

.dkf-user-mobile-name {
  font-weight: 700;
  font-size: 14px;
  color: #00583c;
  padding: 4px 0 10px;
}

.dkf-user-mobile a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  text-decoration: none;
}

.dkf-user-mobile a:hover {
  color: #008254;
}

.dkf-login-btn-mobile {
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  background: #008254;
  padding: 10px 24px;
  font-weight: 600;
  font-size: 14px;
  color: white !important;
  text-decoration: none;
  transition: background-color 0.2s;
  margin-top: 4px;
}

.dkf-login-btn-mobile:hover {
  background: #00a265;
}

/* ── Sticky footer ─────────────────────────────────────────────────── */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#primary {
  flex: 1 0 auto;
}
