Plaintiff Powder River Basin Resource Council (PRBRC) filed suit under the citizen suit provision of the Surface Mining Control and Reclamation Act (SMCRA), 30 U.S.C. § 1270(a)(2), the federal Declaratory Judgment Act, 28 U.S.C. § 2201, and the act allowing citizens to compel federal governmental performance, 28 U.S.C. § 1361. Plaintiff alleged that the attorney’s fees provision of Wyoming’s surface mining regulatory scheme violated established federal regulations and requested declaratory and injunc-tive relief. The district court granted defendant’s request for summary judgment, holding that plaintiffs action against the state was barred by the Eleventh Amendment and that its case against the federal government was unripe. The court also denied plaintiffs request for attorney’s fees in the case at bar. We exercise jurisdiction pursuant to 28 U.S.C. § 1291.
I. BACKGROUND
A.
Before turning to plaintiffs allegations, we must first establish the regulatory framework as it existed when this litigation began. SMCRA permits a state to “assume exclusive jurisdiction over the regulation of surface coal mining and reclamation operations.” 30 U.S.C. § 1253(a). Procedurally, any state wishing to control its surface coal mining operations was required to submit its plan for state control to the Secretary of the Interior (the Secretary) during an eighteen-month period beginning on August 3, 1977. Id. To gain exclusive control, however, the state has to demonstrate that it can carry out a number of tasks, including promulgating “rules and regulations consistent with regulations issued by the Secretary.” Id. § 1253(a)(7).
According to federal regulations enacted under SMCRA, the Secretary can conditionally approve a program when the deficiencies were minor. 30 C.F.R. § 732.13(j). To obtain conditional approval, “[t]he State [must] agree[] in writing to correct such deficiencies within a time established by the Secretary and stated in the conditional approval.” Id. § 732.13(j)(3). If the state does not take corrective action within the prescribed time period, the regulations direct the following:
[T]he Director [of the Office of Surface Mining] shall notify the Secretary that the deficiencies have not been corrected and shall within 30 days—
*1481 (i) Withdraw approval of the State program in whole or in part, and specify the extent to which approval of the State program is being withdrawn;
(ii) Substitute direct Federal enforcement of those portions of the permanent regulatory program that the State has failed to implement;
(in) Initiate procedures ... to withdraw State program approval and implement a Federal program for the State, including specifying necessary remedial actions to correct continued deficiencies; or
(iv) Take any combination of actions under paragraphs (j)(4) and (i) through (iii) of this section.
30 C.F.R. § 7S2.18(j)(4).
SMCRA allows a court, whenever it deems proper, to order one party to reimburse another party for its costs and expenses (including attorney’s fees) incurred in pursuing a SMCRA claim. 30 U.S.C. § 1275(e). In accordance with this provision, the Secretary issued regulations specifying who may receive an award for costs and expenses. See 43 C.F.R. § 4.1294.
On August 15, 1979, Wyoming submitted its proposed regulatory plan under SMCRA; In 1980, the Secretary determined that the state’s regulatory scheme was deficient in certain areas. See Conditional Approval of the Permanent Program Submission from the State of Wyoming Under the Surface Mining Control and Reclamation Act of 1977, 45 Fed.Reg. 78,637 (1980). One such deficiency was the absence of a state provision for attorney’s fees. Id. at 78,674. The absence of an attorney’s fee provision in Wyoming’s plan conflicted with attorney’s fees regulations previously enacted by the Secretary. Id. The state gained conditional approval, however, by agreeing to correct all of its plan’s deficiencies by March 26,1981. Id. at 78,683.
Over the next three years, Wyoming attempted to correct the deficiencies in its program. See 30 C.F.R. § 950.15. When necessary, the Secretary extended Wyoming’s deadlines for compliance. On September 27, 1982, the Secretary again ruled that Wyoming’s program did not conform to the requirements of 43 C.F.R. § 4.1294 and extended Wyoming’s deadline for compliance to May 20, 1983. See Removal of Condition of Approval of the Wyoming Permanent Regulatory Program and Extension of the Deadline for Wyoming to Satisfy a Condition of Approval, 47 Fed.Reg. 42,351 (1982). Wyoming took no further action regarding its provision for attorney’s fees, however, until after plaintiff filed its notice of suit in the case at bar.
B.
In 1991 plaintiff participated in an administrative proceeding concerning the renewal and revision of the Black Thunder Mine’s Campbell County coal permit. The parties to that proceeding settled. Plaintiff then petitioned the Wyoming Department of Environmental Quality (the DEQ) for costs and expenses, including attorney’s fees. DEQ director Dennis Hemmer denied plaintiffs petition, citing the version of Wyoming’s costs statute then in force, Wyo.Stat. § 35-ll-437(f) (1988).
At this point the litigation split into two parts. Plaintiff appealed Hemmer’s decision in Wyoming state court. It also notified defendants on March 31,1992, of its intent to sue them in federal court. Following the sixty day notice period required by statute, see 30 U.S.C. § 1270(b)(1)(A), plaintiff filed the case at bar in federal district court.
Believe it or not, here’s where the case gets complicated. In the sixty days between the notice of suit and the filing of suit in federal court, Hemmer proposed changes to Wyoming’s attorney’s fees provision. On May 16,1992, the state published notice of its intent to engage in rulemaking, and .on November 25, 1992, the state filed the revised rules.
Each party filed for summary judgment in federal district court. On September 29,
As the parties were preparing their appeals to this court, two things happened. First, on January 24, 1994, the Secretary partially approved Wyoming’s revised program, requiring a number of changes for full approval. 30 C.F.R. § 950.11. The Secretary ruled that Wyoming had to complete the revisions by June 1, 1994. Id. Second, the Wyoming Supreme Court decided plaintiffs appeal in its state court action. See Powder River Basin Resource Council v. Wyoming Envtl. Quality Council,
On April 13, 1994, Wyoming submitted the current version of section 35 — 11—437 to the Secretary for approval. Approval of Amendments and Removal of Condition of Program Approval, 59 Fed.Reg. 53,094-95 (1994) (to be codified at 30 C.F.R. §§ 950.11, 950.15). On October 21, 1994 — approximately one month before oral argument in this case — the Secretary approved Wyoming’s amendment. Id. at 53,097. The Secretary therefore lifted the condition relating to attorney’s fees from SMCRA approval.
In their briefs, the parties raise issues concerning ripeness, mootness, standing, and the Eleventh Amendment. We must also address plaintiffs argument that it is entitled to attorney’s fees in the case at bar. We first address these issues as they apply to the state and then turn to plaintiffs case against the federal government.
II. THE CASE AGAINST THE STATE DEFENDANTS
Plaintiffs asked for declaratory and injunc-tive relief and for reimbursement of their costs incurred in litigating the case at bar. Although we find that the district court had jurisdiction over the case when it was filed, we conclude that the district court lost its power to hear the case when plaintiffs injury was eradicated. Because jurisdiction was present at the beginning of the suit, however, we nonetheless address plaintiffs request for attorney’s fees. Cf. Clark v. Busey,
A.
The Eleventh Amendment prohibits federal courts from entertaining suits “commenced or prosecuted against one of the United States by Citizens of another State, or by Citizens or Subjects of any Foreign State.” U.S. Const, amend. XI. Federal courts will therefore hear suits initiated against a state only when that state has consented to suit in federal court or Con
Citizens may, however, challenge a state official’s action in enforcing state law. Ex parte Young,
Plaintiff here asked for two forms of relief. It requested a judgment stating that Wyoming’s state attorney’s fees program is invalid because the state failed to satisfy the terms of the 1983 conditional approval. In the alternative, plaintiff asked the court to construe Wyoming’s provisions as consistent with 43 C.F.R. § 4.1294(b), (c), and (d), and apply such provisions retroactively to May 20, 1983. The district court held that the Eleventh Amendment barred suit because plaintiff asked for relief “retroactive” to 1983.
Assuming arguendo that plaintiffs second request included an aspect of retroactive relief under Edelman, all forms of relief were not barred in this case. Plaintiff asked for declaratory relief under 28 U.S.C. § 2201. Declaratory judgments are construed as retroactive relief only when “[tjhere is no claimed continuing violation of federal law, and therefore no occasion to issue an injunction.” Green v. Mansour,
Plaintiff alleged in its complaint that Wyoming’s attorney’s fees provision violated federal SMCRA law. At the time plaintiff brought suit, the allegedly deficient attorney’s fees statute was still in effect. Wyo. Stat. § 35-ll-437(f) (1988). Thus, plaintiff alleged a continuing violation of SMCRA. Because plaintiffs request sought prospective, as opposed to retroactive, relief, the claim was not barred by the Eleventh Amendment, and the district court wrongly granted summary judgment to the state on that ground.
B.
We next face the issue of whether the action was ripe when originally filed. Because ripeness is a jurisdictional issue, our standard of review is de novo. Reahard v. Lee County,
We first turn to the “fitness for judicial resolution” prong. This prong requires us to consider “both the legal nature of the question presented and the finality of the administrative action.” Id. In this case, both factors confirm that plaintiffs . action
Defendant contends that the issue was not final because the state had initiated proceedings to change section 35—11—437(f). We disagree. In most cases involving issues of ripeness, the administrative rule is not final, see Sierra Club,
Moving to the second prong of Abbott Laboratories, it is clear that plaintiff would suffer hardship. In evaluating potential hardship to the parties, a court should consider (1) whether the challenged rule has had a direct impact on the party challenging the rule, and (2) the possible harm to the parties of delaying judicial consideration. Yeutter,
C.
Although we have determined that plaintiffs suit against the state was ripe when filed and was not barred by the Eleventh Amendment, we must now address whether plaintiff lost standing because of the Wyoming Supreme Court’s decision in 1994. See Powder River Basin,
We first examine whether a party can lose standing in the middle of a lawsuit. Defendants do not dispute that plaintiff had standing when it filed suit. Thus, although “[sjtanding represents a jurisdictional requirement which remains open to review at all stages of the litigation,” National Org. for Women, Inc. v. Scheidler, — U.S. —, —,
In diversity jurisdiction cases, the Supreme Court has stated that, as a general matter, “jurisdiction is tested by the facts as they existed when the action is brought.” Smith v. Sperling,
More recently, however, in a case grounded in federal question jurisdiction, the Supreme Court stated that “the plaintiff
We now turn to whether plaintiff lost its standing when it recovered attorney’s fees in state court. The constitutional minimum of standing contains three elements. “First, the plaintiff must have suffered an ‘injury in fact’ — an invasion of a legally-protected interest.” Lujan v. Defenders of Wildlife,
Plaintiff no longer meets the first prong of the Lujan test. To establish an injury in fact, “the plaintiff must show ‘a distinct and palpable injury to itself.’ ” Wyoming ex rel. Sullivan v. Lujan,
Plaintiffs sole remaining injury is the generalized assertion that defendant was not in compliance with the federal mandate. That general complaint does not distinguish plaintiff from any other Wyoming citizen and is insufficient to grant standing. See City of Los Angeles v. Lyons,
D.
Having determined that plaintiff originally had standing but lost it after the Wyoming Supreme Court’s decision deprived it of an injury in fact, we must still address whether plaintiff is entitled to attorney’s fees incurred up to the time at which it lost standing.
Unless one of the statute’s exceptions is met, no plaintiff may bring an action prior to sixty days after notice is provided to the appropriate agency. 30 U.S.C. § 1270(b). This notice period is mandatory and cannot be disregarded by a plaintiff. See Hallstrom v. Tillamook County,
The district court, however, ruled that plaintiff should never have brought suit because defendant started proceedings to correct the alleged deficiency. It therefore barred the recovery of attorney’s fees. We believe this result misconstrues the effect of SMCRA’s notice provision.
Section 1270(b) is merely a procedural requirement. It affects the litigation only if plaintiff files prematurely, thereby forcing the court to dismiss the action. Notice serves two important and interrelated purposes. “First, notice allows Government agencies to take responsibility for enforcing environmental regulations, thus obviating the need for citizen suits.” Hallstrom,
Here, Wyoming did not bring itself into complete compliance — or even partial compliance — during the notice period. It merely began procedures which had the potential to result in a new attorney’s fee rule. The allegedly deficient rule, however, was still in effect when plaintiff filed suit. The district court therefore abused its discretion by denying plaintiff’s attorney’s fees against the state for its stated reasons.
The question remains, however, whether plaintiff should nevertheless be denied attorney’s fees on other grounds. When, as here, there has been no judicial determination on the merits, a plaintiff may prevail for attorney’s fees purposes if she can show “(1) that [the] lawsuit is causally linked to securing the relief obtained and (2) that the defendant’s conduct in response to the lawsuit was required by law.” J & J Anderson, Inc. v. Town of Erie,
In prior cases, this court has applied the two-part Nadeau test when the statute required the recipient of attorney’s fees to “prevail.” See, e.g., Collins,
Plaintiff claims that it was a “catalyst” for the change in Wyoming’s attorney’s fees provision. The first prong of the Nadeau test requires a factual determination made by the district court; the second prong poses a legal question. Collins,
III. THE CASE AGAINST THE FEDERAL DEFENDANTS
A.
We next examine whether the case against the federal defendants is moot. The jurisdiction of federal courts extends only to actual cases and controversies. U.S. Const, art. III, § 2, cl. 1; Nebraska Press Ass’n v. Stuart,
The federal defendants contend that this case no longer presents a live controversy, rendering plaintiffs claim moot.
In this ease, plaintiff asks the court to enforce the allegedly mandatory requirements of 30 C.F.R. § 732.13(j)(3). Even if the steps contemplated by section 732.13(j)(3) are required, however, they apply only when the Secretary has conditionally approved the state’s program. Here, the Secretary has determined that the state has fully complied with SMCRA’s requirements and therefore removed conditional approval. See 59 Fed. Reg. 53,094. This court can offer no relief. The case is moot.
B.
Plaintiff also asks for attorney’s fees against the federal government under 30 U.S.C. § 1270(d). Although we remand for a determination of whether attorney’s fees may appropriately be assessed against the state, the same determination is not necessary against the United States.
Section 1270(d) allows a court to assess costs against a party whenever it determines an award is appropriate. Nevertheless, a party must achieve at least some measure of success to warrant an attorney’s fees award. See Ruckelshaus,
IV. CONCLUSION
We dismiss the requests for declaratory and injunctive relief against both the state and federal defendants. Plaintiff lacks standing to continue its suit against the state defendants, and the case against the federal defendants is moot. We REMAND the case to the district court, however, for a determination of whether plaintiff is entitled to re
Notes
. Plaintiff asked the district court for leave to amend its complaint to include charges that Wyoming's revised guidelines were inadequate. The district court denied plaintiff’s request. Plaintiff has not appealed that ruling. We therefore will not consider any contentions that Wyoming’s revised statute does not conform to the federal mandate.
. The Equal Access to Justice Act (EAJA), 28 U.S.C. § 2412, explicitly includes a requirement that the court have jurisdiction to hear a case before issuing a cost award. See 28 U.S.C. § 2412(d)(1)(A). Courts have applied this same prerequisite in cases without the EAJA’s language. See Thompson,
. SMCRA does not abrogate states’ sovereign immunity. It explicitly allows suit only "to the extent permitted by the eleventh amendment.” 30 U.S.C. § 1270(a)(1).
. Similarly, the Supreme Court also recently concluded that a case was unripe because of events that occurred subsequent to the filing of suit. See Anderson v. Green, — U.S. —, —,
. Although we have determined that plaintiff lost standing, we note that "the expiration of the underlying cause of action does not moot a controversy over attorney's fees already incurred." Dahlem v. Board of Educ.,
. The federal defendants also claim that (a) the case was unripe and (b) plaintiff lost its standing or the case was moot following the Wyoming Supreme Court's decision. Because we resolve plaintiff's claims against the federal defendants on other grounds, we need not address these issues.
