/* Página link na bio — Instagram / divulgação */

body.links-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg-page);
  overflow-x: hidden;
}

.links-main {
  flex: 1;
  /* style.css define main { display:flex } em linha — sobrescreve para coluna única */
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  width: min(420px, 100%);
  max-width: 100%;
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
  box-sizing: border-box;
}

.links-hero {
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: 1.5rem;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.links-theme-slot {
  display: flex;
  justify-content: center;
  margin-top: 0.85rem;
}

.links-theme-slot .theme-toggle {
  color: var(--text-primary);
}

.links-hero .medhub-logo--auth {
  margin: 0 auto 0.85rem;
}

.links-tagline {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.links-badge {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--badge-guarantee-bg);
  color: var(--badge-guarantee-text);
  border: 1px solid var(--badge-guarantee-border);
}

.links-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.links-action {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  text-align: left;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  box-shadow: 0 2px 12px var(--shadow-sm);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.links-action:hover {
  border-color: var(--accent-soft);
  transform: translateY(-1px);
}

.links-action--primary {
  background: linear-gradient(135deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 82%, #22c55e) 100%);
  border-color: transparent;
  color: var(--text-on-accent);
}

.links-action--primary:hover {
  border-color: transparent;
}

.links-action--primary .links-action-sub {
  color: rgba(255, 255, 255, 0.88);
}

.links-action-title {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: inherit;
}

.links-action-sub {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--text-muted);
}

.links-secondary {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.88rem;
}

.links-secondary a {
  color: var(--text-accent);
  font-weight: 600;
  text-decoration: none;
}

.links-secondary a:hover {
  text-decoration: underline;
}

.links-footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.links-footer a {
  color: var(--text-accent);
}
