/* Advisorlink — portfolio / public page templates */

.bio-page {
  max-width: 440px;
  margin: 0 auto;
  padding: 0 0 64px;
}

.bio-page-shell {
  min-height: 100vh;
}

/* ── Header ── */
.bio-header-portfolio {
  position: relative;
  text-align: center;
  margin-bottom: 24px;
  padding: 0 20px;
}

.bio-header-accent {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: 520px;
  height: 140px;
  background: linear-gradient(165deg, var(--accent-soft) 0%, transparent 72%);
  border-radius: 0 0 40px 40px;
  z-index: 0;
  pointer-events: none;
}

.bio-header-inner {
  position: relative;
  z-index: 1;
  padding-top: 28px;
}

.bio-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  display: block;
  border: 4px solid var(--card);
  box-shadow: 0 4px 6px rgba(26, 35, 50, 0.06), 0 16px 40px rgba(26, 35, 50, 0.12);
}

.bio-avatar-fallback {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 32px;
  margin: 0 auto 16px;
  box-shadow: 0 16px 40px rgba(26, 35, 50, 0.12);
}

.bio-name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 1.2;
}

.bio-role {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  margin-top: 6px;
  letter-spacing: 0.02em;
}

.bio-tagline {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 340px;
  margin: 14px auto 0;
}

.bio-header-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--compliance);
}

.bio-header-minimal {
  padding: 40px 20px 28px;
  text-align: center;
}

.bio-header-minimal .bio-avatar,
.bio-header-minimal .bio-avatar-fallback.bio-avatar-lg {
  width: 112px;
  height: 112px;
  font-size: 36px;
}

.bio-header-minimal .bio-name {
  font-size: 26px;
}

/* ── Intro & compliance ── */
.bio-intro-card {
  margin: 0 20px 22px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.65;
  box-shadow: 0 2px 12px rgba(26, 35, 50, 0.04);
}

.bio-intro-card p { margin: 0; }

.bio-compliance-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  margin: 0 20px 20px;
  padding: 12px 14px;
  background: var(--compliance);
  color: #fff;
  font-size: 11px;
  line-height: 1.5;
  border-radius: 12px;
}

.bio-compliance-text { flex: 1; min-width: 180px; }
.bio-compliance-tag {
  background: rgba(255, 255, 255, 0.18);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Section headings ── */
.bio-section-head {
  margin: 32px 20px 14px;
}

.bio-section-label {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.2px;
  margin: 0;
  position: relative;
  padding-bottom: 8px;
}

.bio-section-label::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 3px;
  background: var(--accent);
  border-radius: 999px;
}

.bio-section-sub {
  font-size: 12.5px;
  color: var(--muted);
  margin: 8px 0 0;
  line-height: 1.45;
}

/* ── Stats ── */
.bio-stat-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 20px 8px;
  flex-wrap: wrap;
}

.bio-stat-banner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0 20px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(26, 35, 50, 0.06);
}

.bio-stat-banner .bio-stat {
  padding: 18px 10px;
  border-right: 1px solid var(--line);
}

.bio-stat-banner .bio-stat:last-child { border-right: none; }

.bio-stat-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
}

.bio-stat-label {
  font-size: 9.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  margin-top: 4px;
}

.bio-portfolio-banner {
  margin-bottom: 8px;
}

.bio-portfolio-banner .bio-stat-banner.inline {
  margin-top: 0;
}

/* ── Credentials ── */
.bio-credentials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 20px 8px;
}

.bio-credentials-grid.style-strip {
  grid-template-columns: repeat(2, 1fr);
}

.bio-credential-badge {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(26, 35, 50, 0.03);
}

.bio-credential-icon {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
}

.bio-credential-label {
  display: block;
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 700;
}

.bio-credential-value {
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-top: 5px;
  color: var(--accent);
}

/* ── Products ── */
.bio-product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 20px 8px;
  padding: 0;
}

.bio-product-grid.layout-wealth {
  gap: 10px;
}

.bio-product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(26, 35, 50, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bio-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 35, 50, 0.08);
}

.bio-product-featured {
  margin: 0 20px 14px;
  grid-column: 1 / -1;
}

.bio-product-featured .bio-product-photo {
  aspect-ratio: 16 / 9;
}

.bio-product-photo {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
}

.bio-product-photo.gradient-navy {
  background: linear-gradient(145deg, #1B4965 0%, #2d6a8a 50%, #E8F0F7 100%);
}

.bio-product-photo.gradient-teal {
  background: linear-gradient(145deg, #0D7C7C 0%, #14b8a6 50%, #E0F5F4 100%);
}

.bio-product-photo.gradient-gold {
  background: linear-gradient(145deg, #92400E 0%, #D97706 40%, #FEF3C7 100%);
}

.bio-product-photo.gradient-slate {
  background: linear-gradient(145deg, #475569 0%, #64748B 50%, #F1F5F9 100%);
}

.bio-product-cat-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  font-size: 36px;
  opacity: 0.35;
  filter: grayscale(0.2);
}

.bio-product-photo[style*="background-image"] .bio-product-cat-icon {
  display: none;
}

.bio-product-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.bio-product-tag.alert-tag {
  background: var(--alert);
  color: #fff;
}

.bio-product-highlight {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(26, 35, 50, 0.88);
  color: #fff;
  backdrop-filter: blur(4px);
}

.bio-product-info {
  padding: 12px 14px 14px;
}

.bio-product-name {
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.3;
}

.bio-product-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.35;
}

/* Shield template */
.bio-shield-hero { margin-bottom: 16px; }

.bio-shield-explainer {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 0 20px 24px;
  padding: 16px;
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--card) 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.bio-shield-explainer-icon { font-size: 28px; line-height: 1; }
.bio-shield-explainer strong { display: block; font-size: 13px; margin-bottom: 4px; }
.bio-shield-explainer p { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 0; }

.bio-product-list {
  margin: 0 20px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bio-product-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.bio-list-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.bio-list-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 800;
  color: var(--success);
  white-space: nowrap;
}

/* Wealth template */
.tpl-wealth .tpl-wealth-intro {
  margin: 0 20px 20px;
  padding: 16px 18px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--accent) 100%);
  color: #fff;
  border-radius: 16px;
}

.tpl-wealth-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.tpl-wealth-intro p {
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.92;
  margin: 0;
}

.tpl-wealth .bio-product-featured .bio-product-photo.gradient-gold {
  background: linear-gradient(145deg, #78350F 0%, #D97706 35%, #FDE68A 100%);
}

/* Consultation template */
.bio-consult-card {
  margin: 0 20px 28px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(26, 35, 50, 0.1);
}

.bio-consult-card-head {
  background: linear-gradient(135deg, var(--accent) 0%, #0D7C7C 100%);
  color: #fff;
  padding: 22px 20px;
  text-align: center;
}

.bio-consult-badge {
  display: inline-block;
  background: var(--alert);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.bio-consult-card-head h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 0;
}

.bio-consult-card-sub {
  font-size: 13px;
  opacity: 0.9;
  margin: 6px 0 0;
}

.bio-consult-card-body {
  background: var(--card);
  padding: 18px 20px;
}

.bio-consult-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.bio-consult-row:last-of-type { border-bottom: none; }
.bio-consult-row span:first-child { font-size: 20px; }
.bio-consult-row strong { color: var(--accent); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
.bio-consult-note {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
}

/* Resources template */
.bio-resources-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 20px 8px;
}

.bio-resource-card.elevated {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  border-left: 4px solid var(--accent);
  box-shadow: 0 2px 12px rgba(26, 35, 50, 0.04);
  transition: transform 0.15s ease;
}

.bio-resource-card.elevated:hover {
  transform: translateX(4px);
}

.bio-resource-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.bio-resource-copy { flex: 1; min-width: 0; }
.bio-resource-title { font-size: 14px; font-weight: 800; }
.bio-resource-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.bio-resource-cta { font-size: 12px; font-weight: 800; color: var(--accent); white-space: nowrap; }

.bio-asks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 20px 8px;
}

.bio-ask-chip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.bio-ask-chip:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(27, 73, 101, 0.1);
}

.bio-ask-icon { font-size: 22px; }
.bio-ask-title { font-size: 12.5px; font-weight: 800; }
.bio-ask-sub { font-size: 10.5px; color: var(--muted); line-height: 1.35; }

/* Outcomes & testimonial */
.bio-outcomes-list {
  margin: 0 20px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bio-outcome-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.bio-outcome-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #E0F5F4;
  color: var(--success);
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bio-outcome-body { flex: 1; min-width: 0; }
.bio-outcome-name { font-size: 14px; font-weight: 800; }
.bio-outcome-meta { font-size: 12px; color: var(--accent); font-weight: 600; margin-top: 2px; }
.bio-outcome-detail { font-size: 11px; color: var(--muted); margin-top: 4px; }
.bio-outcome-result {
  font-size: 12px;
  font-weight: 800;
  color: var(--success);
  white-space: nowrap;
  padding: 4px 8px;
  background: #E0F5F4;
  border-radius: 6px;
}

.bio-testimonial-block {
  margin: 0 20px 8px;
  padding: 22px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  position: relative;
  box-shadow: 0 4px 20px rgba(26, 35, 50, 0.05);
}

.bio-quote-mark {
  position: absolute;
  top: 8px;
  left: 16px;
  font-size: 48px;
  line-height: 1;
  color: var(--accent-soft);
  font-family: Georgia, serif;
  font-weight: 700;
}

.bio-testimonial-block p {
  font-size: 14.5px;
  line-height: 1.65;
  font-style: italic;
  margin: 0;
  padding-top: 20px;
  position: relative;
  z-index: 1;
}

.bio-testimonial-block footer {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-top: 14px;
  font-style: normal;
}

/* Links */
.bio-links-stack {
  margin: 0 20px;
  padding-top: 8px;
}

.bio-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 18px;
  margin-bottom: 10px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(26, 35, 50, 0.04);
  transition: transform 0.12s ease;
}

.bio-link-btn:hover { transform: scale(1.01); }

.bio-link-btn.primary {
  background: var(--accent);
  color: #fff;
  border: none;
  box-shadow: 0 8px 24px rgba(27, 73, 101, 0.25);
}

.bio-link-btn.alert {
  background: var(--alert);
  color: #fff;
  border: none;
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.25);
}

.bio-link-icon { font-size: 18px; }

.bio-footer {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  margin: 36px 20px 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.bio-gallery {
  margin: 0 20px 22px;
}

/* Minimal template overrides */
.tpl-minimal .bio-compliance-bar {
  margin-top: 0;
  background: var(--accent-soft);
  color: var(--compliance);
}

.tpl-minimal .bio-intro-card {
  text-align: center;
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0 10px;
}

.tpl-minimal .bio-links-stack {
  max-width: 320px;
  margin: 0 auto;
}

.tpl-minimal .bio-link-btn {
  border-radius: 999px;
}

/* Protection hero band */
.tpl-protection .tpl-hero-band {
  height: 0;
}

/* Dark theme tweaks */
.bio-theme-dark .bio-product-photo.gradient-navy,
.bio-theme-dark .bio-product-photo.gradient-teal,
.bio-theme-dark .bio-product-photo.gradient-gold,
.bio-theme-dark .bio-product-photo.gradient-slate {
  opacity: 0.95;
}

.bio-theme-dark .bio-header-accent {
  background: linear-gradient(165deg, rgba(255,255,255,0.06) 0%, transparent 72%);
}

@media (max-width: 380px) {
  .bio-stat-banner { grid-template-columns: 1fr; }
  .bio-stat-banner .bio-stat { border-right: none; border-bottom: 1px solid var(--line); }
  .bio-stat-banner .bio-stat:last-child { border-bottom: none; }
  .bio-asks-grid { grid-template-columns: 1fr; }
}
