/* ==========================================================================
   THE SANCTUARY ORPHANAGE — TRANSPARENCY VAULT STYLES
   ========================================================================== */
.page-hero {
  background-color: var(--color-text-main);
  color: var(--color-bg-primary);
  padding: 5rem 0 3.5rem;
  margin-top: var(--header-height);
  border-bottom: 3px solid var(--color-accent-terracotta);
}

.page-hero h1 {
  color: var(--color-bg-primary);
  margin-bottom: 1rem;
}

.page-hero p {
  color: rgba(253, 251, 247, 0.85);
  font-size: 1.15rem;
  max-width: 700px;
}

.transparency-intro {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3.5rem;
}

/* Credentials Grid */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.credential-card {
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-subtle);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.credential-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.credential-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.credential-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.credential-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.credential-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-navy-dark);
  background-color: #E8ECEF;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
}

/* Allocation Grid & Progress Bars */
.allocation-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.allocation-card {
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-subtle);
}

.allocation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.allocation-header h4 {
  margin: 0;
  font-size: 1.1rem;
}

.allocation-percentage {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-accent-text);
}

.progress-bar-bg {
  width: 100%;
  height: 10px;
  background-color: #E8ECEF;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.progress-bar-fill {
  height: 100%;
  background-color: var(--color-accent-accessible);
  border-radius: 5px;
  transition: width 1s ease-in-out;
}

/* Document Table */
.documents-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  background-color: var(--color-bg-surface);
  box-shadow: var(--shadow-subtle);
}

.documents-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.documents-table th,
.documents-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border-subtle);
}

.documents-table th {
  background-color: var(--color-navy-dark);
  color: var(--color-bg-primary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.documents-table tr:last-child td {
  border-bottom: none;
}

.documents-table tr:hover {
  background-color: #F8F6F2;
}

.btn-download {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-main);
  border: 1px solid var(--color-text-main);
  border-radius: var(--radius-sm);
  transition: all var(--transition-smooth);
}

.btn-download:hover {
  background-color: var(--color-text-main);
  color: var(--color-bg-primary);
}
/* Phase 2: prevent credential cards from creating horizontal overflow on narrow screens. */
@media (max-width: 575px) {
  .credentials-grid {
    grid-template-columns: 1fr;
  }

  .allocation-header {
    gap: 1rem;
    align-items: flex-start;
  }

  .documents-table th,
  .documents-table td {
    padding: 1rem;
  }
}


/* Documents not yet published online: keep the action visually consistent without presenting a dead link. */
.btn-download.is-unavailable {
  cursor: default;
  opacity: 0.78;
}
