/* ============================================================== */
/* EDGE SECTION STYLES                                            */
/* Vault articles + Update pages                                  */
/* Modern 2026 typography: generous spacing, fluid type, clean    */
/* ============================================================== */

/* ---- VAULT ARTICLE ---- */

.prose.vault-article {
  max-width: 720px;
  margin: 0 auto;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.85;
  color: #1a1a2e;
  letter-spacing: -0.01em;
}

.prose.vault-article p {
  margin-bottom: 1.75rem;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.prose.vault-article p:first-of-type {
  font-size: 1.125em;
  line-height: 1.75;
  color: #111827;
  border-left: 3px solid #049f82;
  padding-left: 1.25rem;
  margin-bottom: 2rem;
}

.prose.vault-article p:first-of-type::first-letter {
  font-size: 3.25em;
  font-weight: 700;
  float: left;
  line-height: 0.85;
  margin-right: 0.1em;
  margin-top: 0.05em;
  color: #0B3D2E;
}

.prose.vault-article a.vault-link {
  color: #0B3D2E;
  text-decoration: none;
  font-weight: 600;
  background: linear-gradient(to bottom, transparent 60%, rgba(4, 159, 130, 0.15) 60%);
  transition: background 0.2s ease, color 0.2s ease;
  padding: 0 2px;
  border-radius: 2px;
}

.prose.vault-article a.vault-link:hover {
  background: rgba(4, 159, 130, 0.2);
  color: #049f82;
}

.prose.vault-article p:nth-of-type(3n+1):not(:first-of-type) {
  padding-top: 0.5rem;
}

/* ---- VAULT HEADER ---- */

.vault-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e5e7eb;
}

.vault-header h1 {
  font-size: clamp(1.5rem, 1.25rem + 1.25vw, 2.25rem);
  font-weight: 800;
  color: #0B3D2E;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.vault-header .vault-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.vault-header .vault-category-badge {
  background: rgba(4, 159, 130, 0.1);
  color: #049f82;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.8125rem;
}

/* ---- VAULT BREADCRUMB ---- */

.vault-breadcrumb {
  font-size: 0.8125rem;
  color: #9ca3af;
  margin-bottom: 2rem;
}

.vault-breadcrumb a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.15s;
}

.vault-breadcrumb a:hover {
  color: #049f82;
}

/* ---- VAULT RELATED ---- */

.vault-related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.vault-related h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0B3D2E;
  margin-bottom: 1rem;
}

.vault-related a {
  display: block;
  padding: 0.875rem 1rem;
  background: #f9fafb;
  border-radius: 0.5rem;
  color: #1a1a2e;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: background 0.2s ease;
  text-decoration: none;
  margin-bottom: 0.5rem;
}

.vault-related a:hover {
  background: #f0fdf9;
}

/* ---- UPDATE ARTICLE ---- */

.update-article {
  max-width: 720px;
  margin: 0 auto;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.85;
  color: #1a1a2e;
}

.update-article p {
  margin-bottom: 1.5rem;
}

.update-citation {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 2rem;
}

.update-citation .source-name {
  font-weight: 600;
  color: #374151;
}

/* ---- EDGE LANDING ---- */

.edge-category-card {
  background: #ffffff;
  border: 1px solid #f3f4f6;
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.edge-category-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.edge-category-card .card-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(4, 159, 130, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.edge-category-card .card-icon img {
  width: 1.5rem;
  height: 1.5rem;
  opacity: 0.7;
  filter: brightness(0) saturate(100%) invert(18%) sepia(15%) saturate(2000%) hue-rotate(120deg);
}

.edge-category-card h3 {
  font-weight: 600;
  color: #111827;
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

.edge-category-card .card-count {
  font-size: 0.8125rem;
  color: #9ca3af;
}

.edge-update-card {
  background: #ffffff;
  border: 1px solid #f3f4f6;
  border-radius: 0.75rem;
  padding: 1.25rem;
  transition: box-shadow 0.2s ease;
  text-decoration: none;
  display: block;
}

.edge-update-card:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.edge-update-card h3 {
  font-weight: 600;
  color: #111827;
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.edge-update-card .update-meta {
  font-size: 0.8125rem;
  color: #9ca3af;
}

.edge-tab-toggle {
  display: inline-flex;
  background: #f3f4f6;
  border-radius: 0.5rem;
  padding: 0.25rem;
}

.edge-tab-toggle button {
  padding: 0.5rem 1.5rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  background: transparent;
  color: #6b7280;
}

.edge-tab-toggle button.active {
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  color: #111827;
}

/* ---- MOBILE RESPONSIVE ---- */

@media (max-width: 768px) {
  .prose.vault-article {
    font-size: 1rem;
    line-height: 1.75;
  }
  .prose.vault-article p {
    margin-bottom: 1.5rem;
    text-align: left;
    hyphens: none;
  }
  .prose.vault-article p:first-of-type::first-letter {
    font-size: 2.75em;
  }
  .vault-header h1 {
    font-size: 1.5rem;
  }
  .vault-header .vault-meta {
    flex-direction: column;
    gap: 0.25rem;
  }
}

/* === PHASE 7c APPEND === */
/* Fix 1: Anchor-link version of tab toggle (same as button) */
.edge-tab-toggle a {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 999px;
    font-weight: 600;
    color: #049f82;
    text-decoration: none;
    transition: all 0.2s;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1;
}
.edge-tab-toggle a.active {
    background: #049f82;
    color: #fff;
}
.edge-tab-toggle a:hover:not(.active) {
    background: rgba(4, 159, 130, 0.08);
}

/* Fix 2: Update category filter pills */
.edge-filter-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}
.edge-filter-pill {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s;
}
.edge-filter-pill:hover {
    border-color: #049f82;
    color: #049f82;
}
.edge-filter-pill.active {
    background: #049f82;
    border-color: #049f82;
    color: #fff;
}

/* Archived badge on update cards */
.edge-archived-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #9ca3af;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Pagination wrapper */
.edge-pagination-wrap {
    padding: 32px 0 16px;
}
/* === END PHASE 7c APPEND === */
