/**
 * Meus Dados — perfil moderno
 */

.wc-main-md {
  padding: 1.5rem 1.75rem 2rem;
  max-width: none;
  width: 100%;
}

.wc-md-card {
  margin-bottom: 0;
  width: 100%;
}

.wc-md-profile-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.25rem 0;
}

.wc-md-avatar {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-lg);
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  border: 1px solid var(--brand-primary-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}

.wc-md-profile-text h2 {
  margin: 0 0 0.2rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
}

.wc-md-profile-text p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.wc-md-section {
  margin-bottom: 1.25rem;
}

.wc-md-section:last-child {
  margin-bottom: 0;
}

.wc-md-section-title {
  margin: 0 0 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

.wc-md-link-hint {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.wc-md-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
}

.wc-md-link-row .wc-input {
  flex: 1 1 12rem;
  min-width: 0;
}

.wc-md-link-row .wc-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.wc-md-tabs {
  margin: 1rem 1.25rem 0;
  padding: 0.25rem;
  background: var(--surface-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: inline-flex;
  gap: 0.25rem;
}

.wc-md-tab {
  border-radius: calc(var(--radius-md) - 2px);
  padding: 0.45rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

.wc-md-body {
  padding-top: 1.25rem;
}

.wc-md-fields {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.wc-md-row {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.wc-md-row-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wc-md-row-4 {
  grid-template-columns: 1fr 1fr 1fr minmax(4.5rem, 0.15fr);
}

.wc-md-row .wc-form-row {
  margin-bottom: 0;
}

.wc-md-row .wc-form-row label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.wc-md-row .wc-input,
.wc-md-row .wc-md-input {
  width: 100%;
  box-sizing: border-box;
}

.wc-md-field-uf .wc-input {
  text-align: center;
  text-transform: uppercase;
}

.wc-md-cadastro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
  width: 100%;
}

@media (max-width: 768px) {
  .wc-main-md {
    padding: 1rem;
  }

  .wc-md-profile-head {
    padding: 1rem 1rem 0;
  }

  .wc-md-row-2,
  .wc-md-row-4 {
    grid-template-columns: 1fr;
  }

  .wc-md-cadastro-grid {
    grid-template-columns: 1fr;
  }
}
