.detail-page {
  background: var(--white);
}

.detail-header-link,
.detail-header-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 0;
  background: transparent;
  color: var(--green-primary);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.detail-header-inner {
  padding-inline: clamp(1.25rem, 3.5vw, 3rem);
}

.detail-header-link:hover,
.detail-header-link:focus-visible,
.detail-header-button:hover,
.detail-header-button:focus-visible {
  color: var(--gold);
}

.detail-header-button {
  background: var(--black);
  color: var(--white);
  padding: 0.75rem 1.05rem;
  border-radius: var(--radius-xs);
}

.detail-header-button:hover,
.detail-header-button:focus-visible {
  background: var(--gold);
  color: var(--black);
}

.proposal-hero {
  position: relative;
  min-height: 88vh;
  padding-top: var(--header-height);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.proposal-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proposal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(15, 92, 46, 0.92) 0%, rgba(0, 0, 0, 0.55) 50%, rgba(0, 0, 0, 0.85) 100%);
}

.proposal-hero .texture-diagonal {
  z-index: 2;
}

.proposal-hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-inline: clamp(1.5rem, 5vw, 4.5rem);
  padding-block: clamp(4rem, 8vw, 6rem);
}

.proposal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.proposal-kicker::before,
.proposal-kicker::after {
  content: "";
  width: 1.25rem;
  height: 1.5px;
  background: var(--gold);
}

.proposal-icon {
  display: grid;
  width: 4rem;
  height: 4rem;
  place-items: center;
  margin: 1.5rem 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(7px);
}

.proposal-title {
  max-width: 58rem;
  margin: 0;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: clamp(3.4rem, 8vw, 6.9rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.9;
  text-transform: uppercase;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.38);
}

.proposal-desc {
  max-width: 42rem;
  margin: 1.5rem 0 2rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.06rem, 2vw, 1.22rem);
  line-height: 1.7;
}

.proposal-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 36rem;
  gap: 1rem;
}

.proposal-stat {
  border-left: 2px solid var(--gold);
  padding-left: 0.85rem;
}

.proposal-stat strong {
  display: block;
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 3vw, 2rem);
  line-height: 1;
}

.proposal-stat span {
  display: block;
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  line-height: 1.25;
}

.objective {
  background: var(--white);
}

.objective::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 75% 70% at 50% 0%, rgba(15, 92, 46, 0.06) 0%, rgba(255, 255, 255, 1) 60%);
}

.objective-inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2rem), 58rem);
  margin-inline: auto;
  text-align: center;
}

.objective-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--green-primary);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.objective-text {
  margin: 2rem 0 0;
  color: var(--gray-500);
  font-size: 1.08rem;
  line-height: 1.8;
}

.objective-quote {
  margin: 3rem 0 0;
  padding: 0.35rem 0 0.35rem 2rem;
  border-left: 4px solid var(--proposal-color, var(--green-primary));
  text-align: left;
}

.objective-quote svg {
  color: var(--gold);
}

.objective-quote p {
  margin: 0.55rem 0 0;
  color: var(--proposal-color, var(--green-primary));
  font-family: var(--font-script);
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.35;
}

.actions {
  color: var(--white);
}

.actions::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0f172a, var(--green-primary), #0f172a);
}

.actions-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 64rem;
  margin-inline: auto;
}

.action-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(7px);
  padding: 1.25rem;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.action-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.5);
  background: rgba(255, 255, 255, 0.1);
}

.action-number {
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: var(--radius-md);
  background: var(--gold);
  color: var(--green-primary);
  font-family: var(--font-heading);
  font-weight: 700;
}

.action-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.65;
}

.related {
  background: var(--off-white);
}

.related-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.related-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  isolation: isolate;
}

.related-card img {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.related-card::before,
.related-card::after {
  content: "";
  position: absolute;
  inset: 0;
  transition: opacity 0.45s ease;
}

.related-card::before {
  z-index: -2;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.4), transparent);
}

.related-card::after {
  z-index: -1;
  background: var(--project-gradient);
  opacity: 0;
}

.related-card:hover img {
  transform: scale(1.1);
}

.related-card:hover::before {
  opacity: 0;
}

.related-card:hover::after {
  opacity: 0.9;
}

.related-link {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  color: var(--white);
}

.related-icon {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease;
}

.related-card:hover .related-icon {
  transform: scale(1.1);
}

.related-card h3 {
  margin: 0.65rem 0 0.2rem;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.08rem;
  text-transform: uppercase;
}

.related-card span {
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(0.4rem);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.related-card:hover span,
.related-card:focus-within span {
  opacity: 1;
  transform: translateY(0);
}

.detail-footer {
  position: relative;
  overflow: hidden;
  background: var(--green-primary);
  color: var(--white);
}

.detail-footer-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 2.5rem;
}

.detail-footer .legal-id {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.detail-footer a {
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.detail-footer a:hover,
.detail-footer a:focus-visible {
  color: var(--gold);
}

.detail-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.8rem;
}

.not-found {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.18), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(15, 92, 46, 0.14), transparent 35%),
    var(--off-white);
}

.not-found-card {
  width: min(100%, 36rem);
  border: 1px solid rgba(15, 92, 46, 0.12);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-lg);
  padding: clamp(2rem, 5vw, 3rem);
}

.not-found-code {
  margin: 0;
  color: rgba(15, 92, 46, 0.18);
  font-family: var(--font-heading);
  font-size: clamp(5rem, 18vw, 8rem);
  font-weight: 700;
  line-height: 0.9;
}

.not-found h1 {
  margin: 1rem 0 0.75rem;
  color: var(--green-primary);
  font-family: var(--font-heading);
  font-size: clamp(2rem, 7vw, 3rem);
  text-transform: uppercase;
}

.not-found p {
  margin: 0 auto 1.5rem;
  max-width: 28rem;
  color: var(--gray-500);
}
