/* Custom Properties */
:root {
  --dei-primary: hsl(351.1, 80.2%, 49.4%);
  --dei-primary-hover: hsl(351.1, 70.2%, 49.4%);
  --dei-primary-light: hsla(351.1, 80.2%, 49.4%, 0.025);
  --dei-primary-ring: hsla(351.1, 80.2%, 49.4%, 0.15);
  --dei-text-dark: hsl(222, 47%, 11%);
  --dei-text-muted: hsl(215, 16%, 47%);
  --dei-text-muted-hover: hsl(215, 16%, 67%);
  --dei-border: hsl(214, 32%, 91%);
  --dei-white: hsl(0, 0%, 100%);
  --dei-white-80: hsla(0, 0%, 100%, 0.8);
  --dei-white-20: hsla(0, 0%, 100%, 0.2);
}

/* Process Badge */
.process-badge-row {
  margin-bottom: 1rem;
  text-align: center;
}

.process-date-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background-color: hsla(351.1, 80.2%, 49.4%, 0.07);
  color: var(--dei-primary);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 0.5rem;
  white-space: nowrap;
}

/* Process Alert */
.documents-section .process-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1.125rem;
  margin-bottom: 1rem;
  background-color: hsl(45, 100%, 96%);
  border: 1px solid hsl(45, 80%, 78%);
  border-radius: 0.625rem;
  color: hsl(32, 60%, 30%);
  font-size: 0.875rem;
  line-height: 1.5;
}

.documents-section .process-alert-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: hsl(40, 80%, 45%);
  margin-top: 0.1rem;
}

.documents-section .process-alert-content {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.5rem;
}

.documents-section .process-alert-text {
  font-weight: 600;
}

.documents-section button.process-alert-link,
.documents-section button.process-alert-link:visited {
  display: inline;
  padding: 0;
  margin: 0;
  background: none;
  background-image: none;
  border: none;
  box-shadow: none;
  color: hsl(32, 60%, 30%);
  font-family: inherit;
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.documents-section button.process-alert-link:hover,
.documents-section button.process-alert-link:focus {
  color: hsl(32, 70%, 22%);
  text-decoration: underline;
  background: none;
  box-shadow: none;
  outline: none;
}

/* Process Navigation */
.documents-section .process-nav {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}

.documents-section .process-nav button.process-nav-link,
.documents-section .process-nav button.process-nav-link:visited {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background-color: transparent;
  background-image: none;
  border: 1px solid hsl(215, 20%, 82%);
  border-radius: 0.5rem;
  color: hsl(215, 14%, 44%);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: none;
  box-shadow: none;
  outline: none;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.documents-section .process-nav button.process-nav-link:hover,
.documents-section .process-nav button.process-nav-link:focus {
  color: hsl(215, 20%, 30%);
  border-color: hsl(215, 14%, 70%);
  background-color: hsl(220, 14%, 96%);
  box-shadow: none;
  text-decoration: none;
}

.documents-section .process-nav button.process-nav-link svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: inherit;
}

/* Documents Section */
.documents-section {
  margin-top: 2rem;
}

.documents-container {
  margin: 0 auto;
}

/* Process Panel — hidden by default, visible when active */
.process-panel {
  display: none;
}

.process-panel.active {
  display: block;
  animation: fadeUp 0.3s ease-out forwards;
}

/* Document Card */
.document-card {
  background-color: var(--dei-white);
  border-radius: 1rem;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.document-card:hover {
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Main Document Link */
.document-main-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  background-color: var(--dei-primary);
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.document-main-link:hover {
  background-color: var(--dei-primary-hover);
}

.document-main-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.document-icon-wrapper {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background-color: var(--dei-white-20);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.document-icon-wrapper svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--dei-white);
}

.document-main-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dei-white);
}

.document-download-action {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--dei-white);
  background-color: var(--dei-white-20);
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: background-color 0.3s ease, transform 0.15s ease;
  flex-shrink: 0;
}

.document-main-link:hover .document-download-action {
  background-color: hsla(0, 0%, 100%, 0.35);
  transform: translateY(-1px);
}

.document-download-action svg {
  width: 1.25rem;
  height: 1.25rem;
}

.download-text {
  display: none;
}

@media (min-width: 640px) {
  .download-text {
    display: inline;
  }
}

/* Annex Items */
.annexes-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.annex-item {
  border-bottom: 1px solid var(--dei-border);
}

.annex-item:last-child {
  border-bottom: none;
}

.annex-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.annex-link:hover {
  background-color: var(--dei-primary-light);
}

div.annex-link:hover {
  background-color: white;
  cursor: default;
}

.annex-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.annex-content svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--dei-text-muted);
  flex-shrink: 0;
}

.annex-title {
  color: var(--dei-text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
}

.annex-link:hover .annex-title {
  color: var(--dei-primary);
}

div.annex-link:hover .annex-title {
  color: black;
}

.annex-download-icon {
  width: 1rem;
  height: 1rem;
  color: var(--dei-text-muted);
  transition: color 0.3s ease;
  flex-shrink: 0;
}

.annex-link:hover .annex-download-icon {
  color: var(--dei-primary);
}

/* Animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
